From f963b2796cae8262c66b5ba09ef300ff1715284c Mon Sep 17 00:00:00 2001 From: Pedro Juarez Date: Mon, 6 May 2024 10:04:06 -0700 Subject: [PATCH] Operator release 5.0.15 (#2099) Signed-off-by: pjuarezd --- README.md | 2 +- api/consts.go | 2 +- docs/policybinding_crd.adoc | 4 +- docs/templates/asciidoctor/gv_list.tpl | 4 +- docs/tenant_crd.adoc | 4 +- examples/kustomization/base/tenant.yaml | 4 +- .../tenant-certmanager-kes/tenant.yaml | 2 +- .../tenant-kes-encryption/tenant.yaml | 2 +- helm/operator/Chart.yaml | 4 +- helm/operator/values.yaml | 12 +- helm/tenant/Chart.yaml | 4 +- helm/tenant/values.yaml | 10 +- pkg/apis/job.min.io/v1alpha1/types.go | 2 +- pkg/apis/minio.min.io/v2/constants.go | 4 +- pkg/apis/minio.min.io/v2/types.go | 2 +- pkg/apis/sts.min.io/v1alpha1/types.go | 2 +- pkg/controller/operator.go | 2 +- resources/base/console-ui.yaml | 2 +- resources/base/deployment.yaml | 2 +- resources/kustomization.yaml | 2 +- testing/console-tenant+kes.sh | 2 +- web-app/build/asset-manifest.json | 146 +++++++++--------- web-app/build/index.html | 2 +- web-app/build/static/js/104.478cfff7.chunk.js | 2 + ...chunk.js.map => 104.478cfff7.chunk.js.map} | 2 +- web-app/build/static/js/112.1e62425a.chunk.js | 2 - web-app/build/static/js/112.1ea6a792.chunk.js | 2 + ...chunk.js.map => 112.1ea6a792.chunk.js.map} | 2 +- web-app/build/static/js/122.c782a33a.chunk.js | 2 + ...chunk.js.map => 122.c782a33a.chunk.js.map} | 2 +- web-app/build/static/js/140.49921fb9.chunk.js | 2 - web-app/build/static/js/145.96ed8557.chunk.js | 2 - web-app/build/static/js/162.58762974.chunk.js | 2 - web-app/build/static/js/204.3a5ec564.chunk.js | 2 + ...chunk.js.map => 204.3a5ec564.chunk.js.map} | 2 +- web-app/build/static/js/21.736e7ab9.chunk.js | 2 - .../build/static/js/21.736e7ab9.chunk.js.map | 1 - ...342a80b.chunk.js => 241.f827f4d6.chunk.js} | 4 +- ...chunk.js.map => 241.f827f4d6.chunk.js.map} | 2 +- web-app/build/static/js/260.0cefb6d3.chunk.js | 2 - web-app/build/static/js/298.3a4fcab3.chunk.js | 2 - web-app/build/static/js/301.d424161c.chunk.js | 2 + ...chunk.js.map => 301.d424161c.chunk.js.map} | 2 +- web-app/build/static/js/32.87cff5d2.chunk.js | 2 - .../build/static/js/32.87cff5d2.chunk.js.map | 1 - web-app/build/static/js/331.483c2ef9.chunk.js | 2 - web-app/build/static/js/332.577d2d47.chunk.js | 2 - web-app/build/static/js/350.8e4c2698.chunk.js | 2 - web-app/build/static/js/353.f19ed86f.chunk.js | 2 - web-app/build/static/js/361.970b063b.chunk.js | 2 + ...chunk.js.map => 361.970b063b.chunk.js.map} | 2 +- web-app/build/static/js/381.6e506d98.chunk.js | 2 + ...chunk.js.map => 381.6e506d98.chunk.js.map} | 2 +- web-app/build/static/js/384.1367a4bf.chunk.js | 2 - .../build/static/js/384.1367a4bf.chunk.js.map | 1 - web-app/build/static/js/405.6fef1560.chunk.js | 2 - web-app/build/static/js/414.f9770abf.chunk.js | 2 + ...chunk.js.map => 414.f9770abf.chunk.js.map} | 2 +- web-app/build/static/js/415.6349f8fe.chunk.js | 2 + ...chunk.js.map => 415.6349f8fe.chunk.js.map} | 2 +- web-app/build/static/js/426.32092f8a.chunk.js | 2 - web-app/build/static/js/450.be9d2e55.chunk.js | 2 + ...chunk.js.map => 450.be9d2e55.chunk.js.map} | 2 +- web-app/build/static/js/461.dbb22491.chunk.js | 2 + ...chunk.js.map => 461.dbb22491.chunk.js.map} | 2 +- web-app/build/static/js/463.39c0be1b.chunk.js | 2 - .../build/static/js/463.39c0be1b.chunk.js.map | 1 - web-app/build/static/js/481.f19f292a.chunk.js | 2 + ...chunk.js.map => 481.f19f292a.chunk.js.map} | 2 +- web-app/build/static/js/483.5d1963c6.chunk.js | 2 - web-app/build/static/js/495.b9506235.chunk.js | 2 - web-app/build/static/js/517.6b633ce9.chunk.js | 2 + .../build/static/js/517.6b633ce9.chunk.js.map | 1 + web-app/build/static/js/521.98426679.chunk.js | 2 - web-app/build/static/js/577.4e2f491e.chunk.js | 2 + ...chunk.js.map => 577.4e2f491e.chunk.js.map} | 2 +- web-app/build/static/js/585.cc390c26.chunk.js | 2 - web-app/build/static/js/600.c6adb136.chunk.js | 3 - .../build/static/js/600.c6adb136.chunk.js.map | 1 - web-app/build/static/js/619.87b2158f.chunk.js | 2 + ...chunk.js.map => 619.87b2158f.chunk.js.map} | 2 +- web-app/build/static/js/629.e9da79a6.chunk.js | 2 + ...chunk.js.map => 629.e9da79a6.chunk.js.map} | 2 +- web-app/build/static/js/637.7d691482.chunk.js | 2 - web-app/build/static/js/64.2066437f.chunk.js | 2 + .../build/static/js/64.2066437f.chunk.js.map | 1 + web-app/build/static/js/641.c69d9e22.chunk.js | 2 + ...chunk.js.map => 641.c69d9e22.chunk.js.map} | 2 +- ...c1551c2.chunk.js => 654.59b7c512.chunk.js} | 4 +- ...chunk.js.map => 654.59b7c512.chunk.js.map} | 2 +- web-app/build/static/js/666.3139236b.chunk.js | 2 + .../build/static/js/666.3139236b.chunk.js.map | 1 + web-app/build/static/js/682.2ebc8fc9.chunk.js | 2 + .../build/static/js/682.2ebc8fc9.chunk.js.map | 1 + web-app/build/static/js/692.59baf3b7.chunk.js | 2 - web-app/build/static/js/713.229d739a.chunk.js | 2 + .../build/static/js/713.229d739a.chunk.js.map | 1 + web-app/build/static/js/723.799b7760.chunk.js | 2 + ...chunk.js.map => 723.799b7760.chunk.js.map} | 2 +- web-app/build/static/js/728.2edde3f9.chunk.js | 2 + ...chunk.js.map => 728.2edde3f9.chunk.js.map} | 2 +- web-app/build/static/js/729.386ba038.chunk.js | 2 + ...chunk.js.map => 729.386ba038.chunk.js.map} | 2 +- web-app/build/static/js/732.33ddca24.chunk.js | 2 + ...chunk.js.map => 732.33ddca24.chunk.js.map} | 2 +- web-app/build/static/js/798.e6aa44c4.chunk.js | 2 - web-app/build/static/js/799.359bf5c9.chunk.js | 2 + .../build/static/js/799.359bf5c9.chunk.js.map | 1 + web-app/build/static/js/81.1a604fb2.chunk.js | 2 - .../build/static/js/81.1a604fb2.chunk.js.map | 1 - web-app/build/static/js/822.accdc1fc.chunk.js | 2 - web-app/build/static/js/829.67cb6474.chunk.js | 3 + ....txt => 829.67cb6474.chunk.js.LICENSE.txt} | 0 .../build/static/js/829.67cb6474.chunk.js.map | 1 + web-app/build/static/js/847.b5f043e4.chunk.js | 2 - web-app/build/static/js/859.d08bafc4.chunk.js | 2 - web-app/build/static/js/872.9de95914.chunk.js | 2 + ...chunk.js.map => 872.9de95914.chunk.js.map} | 2 +- web-app/build/static/js/890.17acf929.chunk.js | 2 + ...chunk.js.map => 890.17acf929.chunk.js.map} | 2 +- web-app/build/static/js/902.da2302f2.chunk.js | 2 - web-app/build/static/js/914.fc49dd65.chunk.js | 2 - web-app/build/static/js/934.d8f0ede0.chunk.js | 2 - web-app/build/static/js/941.a504f48a.chunk.js | 2 + ...chunk.js.map => 941.a504f48a.chunk.js.map} | 2 +- web-app/build/static/js/942.9aec736a.chunk.js | 2 - web-app/build/static/js/943.4c3f42c0.chunk.js | 2 + ...chunk.js.map => 943.4c3f42c0.chunk.js.map} | 2 +- web-app/build/static/js/97.54a85b9d.chunk.js | 2 - .../build/static/js/97.54a85b9d.chunk.js.map | 1 - web-app/build/static/js/977.74859670.chunk.js | 2 + ...chunk.js.map => 977.74859670.chunk.js.map} | 2 +- web-app/build/static/js/979.21101997.chunk.js | 2 + ...chunk.js.map => 979.21101997.chunk.js.map} | 2 +- web-app/build/static/js/main.bbc673b5.js | 3 + ...CENSE.txt => main.bbc673b5.js.LICENSE.txt} | 0 web-app/build/static/js/main.bbc673b5.js.map | 1 + web-app/build/static/js/main.d9e0fc5c.js | 3 - web-app/build/static/js/main.d9e0fc5c.js.map | 1 - .../Tenants/AddTenant/Steps/Images.tsx | 4 +- .../TenantDetails/TenantEncryption.tsx | 2 +- 141 files changed, 224 insertions(+), 224 deletions(-) create mode 100644 web-app/build/static/js/104.478cfff7.chunk.js rename web-app/build/static/js/{934.d8f0ede0.chunk.js.map => 104.478cfff7.chunk.js.map} (93%) delete mode 100644 web-app/build/static/js/112.1e62425a.chunk.js create mode 100644 web-app/build/static/js/112.1ea6a792.chunk.js rename web-app/build/static/js/{426.32092f8a.chunk.js.map => 112.1ea6a792.chunk.js.map} (98%) create mode 100644 web-app/build/static/js/122.c782a33a.chunk.js rename web-app/build/static/js/{859.d08bafc4.chunk.js.map => 122.c782a33a.chunk.js.map} (98%) delete mode 100644 web-app/build/static/js/140.49921fb9.chunk.js delete mode 100644 web-app/build/static/js/145.96ed8557.chunk.js delete mode 100644 web-app/build/static/js/162.58762974.chunk.js create mode 100644 web-app/build/static/js/204.3a5ec564.chunk.js rename web-app/build/static/js/{495.b9506235.chunk.js.map => 204.3a5ec564.chunk.js.map} (95%) delete mode 100644 web-app/build/static/js/21.736e7ab9.chunk.js delete mode 100644 web-app/build/static/js/21.736e7ab9.chunk.js.map rename web-app/build/static/js/{779.5342a80b.chunk.js => 241.f827f4d6.chunk.js} (99%) rename web-app/build/static/js/{779.5342a80b.chunk.js.map => 241.f827f4d6.chunk.js.map} (99%) delete mode 100644 web-app/build/static/js/260.0cefb6d3.chunk.js delete mode 100644 web-app/build/static/js/298.3a4fcab3.chunk.js create mode 100644 web-app/build/static/js/301.d424161c.chunk.js rename web-app/build/static/js/{260.0cefb6d3.chunk.js.map => 301.d424161c.chunk.js.map} (95%) delete mode 100644 web-app/build/static/js/32.87cff5d2.chunk.js delete mode 100644 web-app/build/static/js/32.87cff5d2.chunk.js.map delete mode 100644 web-app/build/static/js/331.483c2ef9.chunk.js delete mode 100644 web-app/build/static/js/332.577d2d47.chunk.js delete mode 100644 web-app/build/static/js/350.8e4c2698.chunk.js delete mode 100644 web-app/build/static/js/353.f19ed86f.chunk.js create mode 100644 web-app/build/static/js/361.970b063b.chunk.js rename web-app/build/static/js/{914.fc49dd65.chunk.js.map => 361.970b063b.chunk.js.map} (98%) create mode 100644 web-app/build/static/js/381.6e506d98.chunk.js rename web-app/build/static/js/{902.da2302f2.chunk.js.map => 381.6e506d98.chunk.js.map} (99%) delete mode 100644 web-app/build/static/js/384.1367a4bf.chunk.js delete mode 100644 web-app/build/static/js/384.1367a4bf.chunk.js.map delete mode 100644 web-app/build/static/js/405.6fef1560.chunk.js create mode 100644 web-app/build/static/js/414.f9770abf.chunk.js rename web-app/build/static/js/{331.483c2ef9.chunk.js.map => 414.f9770abf.chunk.js.map} (98%) create mode 100644 web-app/build/static/js/415.6349f8fe.chunk.js rename web-app/build/static/js/{822.accdc1fc.chunk.js.map => 415.6349f8fe.chunk.js.map} (99%) delete mode 100644 web-app/build/static/js/426.32092f8a.chunk.js create mode 100644 web-app/build/static/js/450.be9d2e55.chunk.js rename web-app/build/static/js/{140.49921fb9.chunk.js.map => 450.be9d2e55.chunk.js.map} (97%) create mode 100644 web-app/build/static/js/461.dbb22491.chunk.js rename web-app/build/static/js/{350.8e4c2698.chunk.js.map => 461.dbb22491.chunk.js.map} (98%) delete mode 100644 web-app/build/static/js/463.39c0be1b.chunk.js delete mode 100644 web-app/build/static/js/463.39c0be1b.chunk.js.map create mode 100644 web-app/build/static/js/481.f19f292a.chunk.js rename web-app/build/static/js/{145.96ed8557.chunk.js.map => 481.f19f292a.chunk.js.map} (99%) delete mode 100644 web-app/build/static/js/483.5d1963c6.chunk.js delete mode 100644 web-app/build/static/js/495.b9506235.chunk.js create mode 100644 web-app/build/static/js/517.6b633ce9.chunk.js create mode 100644 web-app/build/static/js/517.6b633ce9.chunk.js.map delete mode 100644 web-app/build/static/js/521.98426679.chunk.js create mode 100644 web-app/build/static/js/577.4e2f491e.chunk.js rename web-app/build/static/js/{162.58762974.chunk.js.map => 577.4e2f491e.chunk.js.map} (99%) delete mode 100644 web-app/build/static/js/585.cc390c26.chunk.js delete mode 100644 web-app/build/static/js/600.c6adb136.chunk.js delete mode 100644 web-app/build/static/js/600.c6adb136.chunk.js.map create mode 100644 web-app/build/static/js/619.87b2158f.chunk.js rename web-app/build/static/js/{798.e6aa44c4.chunk.js.map => 619.87b2158f.chunk.js.map} (99%) create mode 100644 web-app/build/static/js/629.e9da79a6.chunk.js rename web-app/build/static/js/{585.cc390c26.chunk.js.map => 629.e9da79a6.chunk.js.map} (98%) delete mode 100644 web-app/build/static/js/637.7d691482.chunk.js create mode 100644 web-app/build/static/js/64.2066437f.chunk.js create mode 100644 web-app/build/static/js/64.2066437f.chunk.js.map create mode 100644 web-app/build/static/js/641.c69d9e22.chunk.js rename web-app/build/static/js/{405.6fef1560.chunk.js.map => 641.c69d9e22.chunk.js.map} (99%) rename web-app/build/static/js/{223.5c1551c2.chunk.js => 654.59b7c512.chunk.js} (51%) rename web-app/build/static/js/{223.5c1551c2.chunk.js.map => 654.59b7c512.chunk.js.map} (98%) create mode 100644 web-app/build/static/js/666.3139236b.chunk.js create mode 100644 web-app/build/static/js/666.3139236b.chunk.js.map create mode 100644 web-app/build/static/js/682.2ebc8fc9.chunk.js create mode 100644 web-app/build/static/js/682.2ebc8fc9.chunk.js.map delete mode 100644 web-app/build/static/js/692.59baf3b7.chunk.js create mode 100644 web-app/build/static/js/713.229d739a.chunk.js create mode 100644 web-app/build/static/js/713.229d739a.chunk.js.map create mode 100644 web-app/build/static/js/723.799b7760.chunk.js rename web-app/build/static/js/{332.577d2d47.chunk.js.map => 723.799b7760.chunk.js.map} (99%) create mode 100644 web-app/build/static/js/728.2edde3f9.chunk.js rename web-app/build/static/js/{942.9aec736a.chunk.js.map => 728.2edde3f9.chunk.js.map} (99%) create mode 100644 web-app/build/static/js/729.386ba038.chunk.js rename web-app/build/static/js/{112.1e62425a.chunk.js.map => 729.386ba038.chunk.js.map} (97%) create mode 100644 web-app/build/static/js/732.33ddca24.chunk.js rename web-app/build/static/js/{521.98426679.chunk.js.map => 732.33ddca24.chunk.js.map} (98%) delete mode 100644 web-app/build/static/js/798.e6aa44c4.chunk.js create mode 100644 web-app/build/static/js/799.359bf5c9.chunk.js create mode 100644 web-app/build/static/js/799.359bf5c9.chunk.js.map delete mode 100644 web-app/build/static/js/81.1a604fb2.chunk.js delete mode 100644 web-app/build/static/js/81.1a604fb2.chunk.js.map delete mode 100644 web-app/build/static/js/822.accdc1fc.chunk.js create mode 100644 web-app/build/static/js/829.67cb6474.chunk.js rename web-app/build/static/js/{600.c6adb136.chunk.js.LICENSE.txt => 829.67cb6474.chunk.js.LICENSE.txt} (100%) create mode 100644 web-app/build/static/js/829.67cb6474.chunk.js.map delete mode 100644 web-app/build/static/js/847.b5f043e4.chunk.js delete mode 100644 web-app/build/static/js/859.d08bafc4.chunk.js create mode 100644 web-app/build/static/js/872.9de95914.chunk.js rename web-app/build/static/js/{637.7d691482.chunk.js.map => 872.9de95914.chunk.js.map} (99%) create mode 100644 web-app/build/static/js/890.17acf929.chunk.js rename web-app/build/static/js/{483.5d1963c6.chunk.js.map => 890.17acf929.chunk.js.map} (99%) delete mode 100644 web-app/build/static/js/902.da2302f2.chunk.js delete mode 100644 web-app/build/static/js/914.fc49dd65.chunk.js delete mode 100644 web-app/build/static/js/934.d8f0ede0.chunk.js create mode 100644 web-app/build/static/js/941.a504f48a.chunk.js rename web-app/build/static/js/{847.b5f043e4.chunk.js.map => 941.a504f48a.chunk.js.map} (99%) delete mode 100644 web-app/build/static/js/942.9aec736a.chunk.js create mode 100644 web-app/build/static/js/943.4c3f42c0.chunk.js rename web-app/build/static/js/{298.3a4fcab3.chunk.js.map => 943.4c3f42c0.chunk.js.map} (96%) delete mode 100644 web-app/build/static/js/97.54a85b9d.chunk.js delete mode 100644 web-app/build/static/js/97.54a85b9d.chunk.js.map create mode 100644 web-app/build/static/js/977.74859670.chunk.js rename web-app/build/static/js/{692.59baf3b7.chunk.js.map => 977.74859670.chunk.js.map} (99%) create mode 100644 web-app/build/static/js/979.21101997.chunk.js rename web-app/build/static/js/{353.f19ed86f.chunk.js.map => 979.21101997.chunk.js.map} (99%) create mode 100644 web-app/build/static/js/main.bbc673b5.js rename web-app/build/static/js/{main.d9e0fc5c.js.LICENSE.txt => main.bbc673b5.js.LICENSE.txt} (100%) create mode 100644 web-app/build/static/js/main.bbc673b5.js.map delete mode 100644 web-app/build/static/js/main.d9e0fc5c.js delete mode 100644 web-app/build/static/js/main.d9e0fc5c.js.map diff --git a/README.md b/README.md index b7afda2999c..8e52cfaef53 100644 --- a/README.md +++ b/README.md @@ -165,7 +165,7 @@ for [kustomize](https://kubernetes.io/docs/tasks/manage-kubernetes-objects/kusto use that to install MiniO Operator. ```sh -kubectl kustomize github.com/minio/operator\?ref=v5.0.14 +kubectl kustomize github.com/minio/operator\?ref=v5.0.15 ``` Run the following command to verify the status of the Operator: diff --git a/api/consts.go b/api/consts.go index 9023a2e403e..ba25fe015cc 100644 --- a/api/consts.go +++ b/api/consts.go @@ -28,7 +28,7 @@ const ( // Image versions - KESImageVersion = "minio/kes:2024-03-13T17-52-13Z" + KESImageVersion = "minio/kes:2024-04-12T13-50-00Z" // Constants for common configuration MinioImage = "OPERATOR_MINIO_IMAGE" diff --git a/docs/policybinding_crd.adoc b/docs/policybinding_crd.adoc index ef0bf3636e6..cef8cb1b8ba 100644 --- a/docs/policybinding_crd.adoc +++ b/docs/policybinding_crd.adoc @@ -4,8 +4,8 @@ [id="{p}-api-reference"] == API Reference -:minio-image: https://hub.docker.com/r/minio/minio/tags[minio/minio:RELEASE.2024-03-15T01-07-19Z] -:kes-image: https://hub.docker.com/r/minio/kes/tags[minio/kes:2024-03-13T17-52-13Z] +:minio-image: https://hub.docker.com/r/minio/minio/tags[minio/minio:RELEASE.2024-05-01T01-11-10Z] +:kes-image: https://hub.docker.com/r/minio/kes/tags[minio/kes:2024-04-12T13-50-00Z] [id="{anchor_prefix}-sts-min-io-v1alpha1"] diff --git a/docs/templates/asciidoctor/gv_list.tpl b/docs/templates/asciidoctor/gv_list.tpl index cef8160e764..c4d240154ba 100644 --- a/docs/templates/asciidoctor/gv_list.tpl +++ b/docs/templates/asciidoctor/gv_list.tpl @@ -7,8 +7,8 @@ [id="{p}-api-reference"] == API Reference -:minio-image: https://hub.docker.com/r/minio/minio/tags[minio/minio:RELEASE.2024-03-15T01-07-19Z] -:kes-image: https://hub.docker.com/r/minio/kes/tags[minio/kes:2024-03-13T17-52-13Z] +:minio-image: https://hub.docker.com/r/minio/minio/tags[minio/minio:RELEASE.2024-05-01T01-11-10Z] +:kes-image: https://hub.docker.com/r/minio/kes/tags[minio/kes:2024-04-12T13-50-00Z] {{ range $groupVersions }} {{ template "gvDetails" . }} diff --git a/docs/tenant_crd.adoc b/docs/tenant_crd.adoc index d2241ab0fa2..51e52b759eb 100644 --- a/docs/tenant_crd.adoc +++ b/docs/tenant_crd.adoc @@ -4,8 +4,8 @@ [id="{p}-api-reference"] == API Reference -:minio-image: https://hub.docker.com/r/minio/minio/tags[minio/minio:RELEASE.2024-03-15T01-07-19Z] -:kes-image: https://hub.docker.com/r/minio/kes/tags[minio/kes:2024-03-13T17-52-13Z] +:minio-image: https://hub.docker.com/r/minio/minio/tags[minio/minio:RELEASE.2024-05-01T01-11-10Z] +:kes-image: https://hub.docker.com/r/minio/kes/tags[minio/kes:2024-04-12T13-50-00Z] [id="{anchor_prefix}-minio-min-io-v2"] diff --git a/examples/kustomization/base/tenant.yaml b/examples/kustomization/base/tenant.yaml index b92a85bedf1..bf3195a353c 100644 --- a/examples/kustomization/base/tenant.yaml +++ b/examples/kustomization/base/tenant.yaml @@ -144,7 +144,7 @@ spec: ## https://github.com/minio/minio/tree/master/docs/tls/kubernetes#2-create-kubernetes-secret externalClientCertSecrets: [ ] ## Registry location and Tag to download MinIO Server image - image: quay.io/minio/minio:RELEASE.2024-03-15T01-07-19Z + image: quay.io/minio/minio:RELEASE.2024-05-01T01-11-10Z imagePullSecret: { } ## Mount path where PV will be mounted inside container(s). mountPath: /export @@ -253,7 +253,7 @@ spec: ## Audit Logs will be deprecated soon, commenting out for now!. ## LogSearch API setup for MinIO Tenant. # log: - # image: "" # defaults to minio/operator:v5.0.14 + # image: "" # defaults to minio/operator:v5.0.15 # env: [ ] # resources: { } # nodeSelector: { } diff --git a/examples/kustomization/tenant-certmanager-kes/tenant.yaml b/examples/kustomization/tenant-certmanager-kes/tenant.yaml index cc9fedc72ea..2d03e229481 100644 --- a/examples/kustomization/tenant-certmanager-kes/tenant.yaml +++ b/examples/kustomization/tenant-certmanager-kes/tenant.yaml @@ -14,7 +14,7 @@ spec: externalCertSecret: name: tenant-certmanager-2-tls type: cert-manager.io/v1 - image: minio/kes:2024-03-13T17-52-13Z + image: minio/kes:2024-04-12T13-50-00Z imagePullPolicy: IfNotPresent kesSecret: name: kes-configuration diff --git a/examples/kustomization/tenant-kes-encryption/tenant.yaml b/examples/kustomization/tenant-kes-encryption/tenant.yaml index 51a7dd1ea0f..870402844db 100644 --- a/examples/kustomization/tenant-kes-encryption/tenant.yaml +++ b/examples/kustomization/tenant-kes-encryption/tenant.yaml @@ -7,7 +7,7 @@ spec: ## Define configuration for KES (stateless and distributed key-management system) ## Refer https://github.com/minio/kes kes: - image: "" # minio/kes:2024-03-13T17-52-13Z + image: "" # minio/kes:2024-04-12T13-50-00Z env: [ ] replicas: 2 kesSecret: diff --git a/helm/operator/Chart.yaml b/helm/operator/Chart.yaml index 3d9bbc4bd9a..70764f45a72 100644 --- a/helm/operator/Chart.yaml +++ b/helm/operator/Chart.yaml @@ -1,8 +1,8 @@ apiVersion: v2 description: A Helm chart for MinIO Operator name: operator -version: 5.0.14 -appVersion: v5.0.14 +version: 5.0.15 +appVersion: v5.0.15 keywords: - storage - object-storage diff --git a/helm/operator/values.yaml b/helm/operator/values.yaml index e93458b29b8..b7e59c584d6 100644 --- a/helm/operator/values.yaml +++ b/helm/operator/values.yaml @@ -37,14 +37,14 @@ operator: ### # Specify the Operator container image to use for the deployment. # ``image.tag`` - # For example, the following sets the image to the ``quay.io/minio/operator`` repo and the v5.0.14 tag. + # For example, the following sets the image to the ``quay.io/minio/operator`` repo and the v5.0.15 tag. # The container pulls the image if not already present: # # .. code-block:: yaml # # image: # repository: quay.io/minio/operator - # tag: v5.0.14 + # tag: v5.0.15 # pullPolicy: IfNotPresent # # The chart also supports specifying an image based on digest value: @@ -58,7 +58,7 @@ operator: # image: repository: quay.io/minio/operator - tag: v5.0.14 + tag: v5.0.15 pullPolicy: IfNotPresent ### # @@ -184,14 +184,14 @@ console: ### # Specify the Operator Console container image to use for the deployment. # ``image.tag`` - # For example, the following sets the image to the ``quay.io/minio/operator`` repo and the v5.0.14 tag. + # For example, the following sets the image to the ``quay.io/minio/operator`` repo and the v5.0.15 tag. # The container pulls the image if not already present: # # .. code-block:: yaml # # image: # repository: quay.io/minio/operator - # tag: v5.0.14 + # tag: v5.0.15 # pullPolicy: IfNotPresent # # The chart also supports specifying an image based on digest value: @@ -206,7 +206,7 @@ console: # The specified values should match that of ``operator.image`` to ensure predictable operations. image: repository: quay.io/minio/operator - tag: v5.0.14 + tag: v5.0.15 pullPolicy: IfNotPresent ### # An array of environment variables to pass to the Operator Console deployment. diff --git a/helm/tenant/Chart.yaml b/helm/tenant/Chart.yaml index 313dca89197..31885cb5894 100644 --- a/helm/tenant/Chart.yaml +++ b/helm/tenant/Chart.yaml @@ -1,8 +1,8 @@ apiVersion: v2 description: A Helm chart for MinIO Operator name: tenant -version: 5.0.14 -appVersion: v5.0.14 +version: 5.0.15 +appVersion: v5.0.15 keywords: - storage - object-storage diff --git a/helm/tenant/values.yaml b/helm/tenant/values.yaml index 90cf5483659..d95cdd1a90c 100644 --- a/helm/tenant/values.yaml +++ b/helm/tenant/values.yaml @@ -48,14 +48,14 @@ tenant: ### # Specify the Operator container image to use for the deployment. # ``image.tag`` - # For example, the following sets the image to the ``quay.io/minio/operator`` repo and the v5.0.14 tag. + # For example, the following sets the image to the ``quay.io/minio/operator`` repo and the v5.0.15 tag. # The container pulls the image if not already present: # # .. code-block:: yaml # # image: # repository: quay.io/minio/minio - # tag: RELEASE.2024-03-15T01-07-19Z + # tag: RELEASE.2024-05-01T01-11-10Z # pullPolicy: IfNotPresent # # The chart also supports specifying an image based on digest value: @@ -70,7 +70,7 @@ tenant: # image: repository: quay.io/minio/minio - tag: RELEASE.2024-03-15T01-07-19Z + tag: RELEASE.2024-05-01T01-11-10Z pullPolicy: IfNotPresent ### # @@ -383,14 +383,14 @@ tenant: # # Image from tag (original behavior), for example: # # image: # # repository: quay.io/minio/kes - # # tag: 2024-03-13T17-52-13Z + # # tag: 2024-04-12T13-50-00Z # # Image from digest (added after original behavior), for example: # # image: # # repository: quay.io/minio/kes@sha256 # # digest: fb15af611149892f357a8a99d1bcd8bf5dae713bd64c15e6eb27fbdb88fc208b # image: # repository: quay.io/minio/kes - # tag: 2024-03-13T17-52-13Z + # tag: 2024-04-12T13-50-00Z # pullPolicy: IfNotPresent # env: [ ] # replicas: 2 diff --git a/pkg/apis/job.min.io/v1alpha1/types.go b/pkg/apis/job.min.io/v1alpha1/types.go index 43f842f56c9..a1a90f7c0ee 100644 --- a/pkg/apis/job.min.io/v1alpha1/types.go +++ b/pkg/apis/job.min.io/v1alpha1/types.go @@ -34,7 +34,7 @@ const ( // +kubebuilder:resource:scope=Namespaced,shortName=miniojob,singular=miniojob // +kubebuilder:printcolumn:name="Tenant",type=string,JSONPath=`.spec.tenant.name` // +kubebuilder:printcolumn:name="Phase",type=string,JSONPath=`.spec.status.phase` -// +kubebuilder:metadata:annotations=operator.min.io/version=v5.0.14 +// +kubebuilder:metadata:annotations=operator.min.io/version=v5.0.15 // MinIOJob is a top-level type. A client is created for it type MinIOJob struct { diff --git a/pkg/apis/minio.min.io/v2/constants.go b/pkg/apis/minio.min.io/v2/constants.go index 9a59ad26f5f..ccb26ffe402 100644 --- a/pkg/apis/minio.min.io/v2/constants.go +++ b/pkg/apis/minio.min.io/v2/constants.go @@ -97,7 +97,7 @@ const MinIOVolumeMountPath = "/export" const MinIOVolumeSubPath = "" // DefaultMinIOImage specifies the default MinIO Docker hub image -const DefaultMinIOImage = "minio/minio:RELEASE.2024-03-15T01-07-19Z" +const DefaultMinIOImage = "minio/minio:RELEASE.2024-05-01T01-11-10Z" // DefaultMinIOUpdateURL specifies the default MinIO URL where binaries are // pulled from during MinIO upgrades @@ -135,7 +135,7 @@ const ConsoleAdminPolicyName = "consoleAdmin" // KES Related Constants // DefaultKESImage specifies the latest KES Docker hub image -const DefaultKESImage = "minio/kes:2024-03-13T17-52-13Z" +const DefaultKESImage = "minio/kes:2024-04-12T13-50-00Z" // KESInstanceLabel is applied to the KES pods of a Tenant cluster const KESInstanceLabel = "v1.min.io/kes" diff --git a/pkg/apis/minio.min.io/v2/types.go b/pkg/apis/minio.min.io/v2/types.go index cc576deb59b..bb9ce62dae9 100644 --- a/pkg/apis/minio.min.io/v2/types.go +++ b/pkg/apis/minio.min.io/v2/types.go @@ -30,7 +30,7 @@ import ( // +kubebuilder:resource:scope=Namespaced,shortName=tenant,singular=tenant // +kubebuilder:printcolumn:name="State",type="string",JSONPath=".status.currentState" // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:metadata:annotations=operator.min.io/version=v5.0.14 +// +kubebuilder:metadata:annotations=operator.min.io/version=v5.0.15 // +kubebuilder:storageversion type Tenant struct { metav1.TypeMeta `json:",inline"` diff --git a/pkg/apis/sts.min.io/v1alpha1/types.go b/pkg/apis/sts.min.io/v1alpha1/types.go index 84971ce3f40..ba7113667a3 100644 --- a/pkg/apis/sts.min.io/v1alpha1/types.go +++ b/pkg/apis/sts.min.io/v1alpha1/types.go @@ -25,7 +25,7 @@ import ( // +kubebuilder:resource:scope=Namespaced,shortName=policybinding,singular=policybinding // +kubebuilder:printcolumn:name="State",type="string",JSONPath=".status.currentState" // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:metadata:annotations=operator.min.io/version=v5.0.14 +// +kubebuilder:metadata:annotations=operator.min.io/version=v5.0.15 // +kubebuilder:storageversion // PolicyBinding is a https://kubernetes.io/docs/concepts/overview/working-with-objects/kubernetes-objects/[Kubernetes object] describing a MinIO PolicyBinding. diff --git a/pkg/controller/operator.go b/pkg/controller/operator.go index 344d4ff4197..a8f19b95eb4 100644 --- a/pkg/controller/operator.go +++ b/pkg/controller/operator.go @@ -61,7 +61,7 @@ const ( // DefaultDeploymentName is the default name of the operator deployment DefaultDeploymentName = "minio-operator" // DefaultOperatorImage is the version fo the operator being used - DefaultOperatorImage = "minio/operator:v5.0.14" + DefaultOperatorImage = "minio/operator:v5.0.15" // DefaultOperatorImageEnv is the default image to minio instance DefaultOperatorImageEnv = "MINIO_OPERATOR_IMAGE" ) diff --git a/resources/base/console-ui.yaml b/resources/base/console-ui.yaml index 1dfe98b98ea..22e2ac41b92 100644 --- a/resources/base/console-ui.yaml +++ b/resources/base/console-ui.yaml @@ -289,7 +289,7 @@ spec: - args: - ui - --certs-dir=/tmp/certs - image: minio/operator:v5.0.14 + image: minio/operator:v5.0.15 imagePullPolicy: IfNotPresent name: console securityContext: diff --git a/resources/base/deployment.yaml b/resources/base/deployment.yaml index 59c477fab6d..16789a2d32a 100644 --- a/resources/base/deployment.yaml +++ b/resources/base/deployment.yaml @@ -23,7 +23,7 @@ spec: serviceAccountName: minio-operator containers: - name: minio-operator - image: minio/operator:v5.0.14 + image: minio/operator:v5.0.15 imagePullPolicy: IfNotPresent args: - controller diff --git a/resources/kustomization.yaml b/resources/kustomization.yaml index f0e5e5c6f17..81971bc4786 100644 --- a/resources/kustomization.yaml +++ b/resources/kustomization.yaml @@ -5,7 +5,7 @@ commonAnnotations: operator.min.io/authors: "MinIO, Inc." operator.min.io/license: "AGPLv3" operator.min.io/support: "https://subnet.min.io" - operator.min.io/version: v5.0.14 + operator.min.io/version: v5.0.15 commonLabels: app.kubernetes.io/name: operator resources: diff --git a/testing/console-tenant+kes.sh b/testing/console-tenant+kes.sh index f4ecbbc1098..426449c9e08 100755 --- a/testing/console-tenant+kes.sh +++ b/testing/console-tenant+kes.sh @@ -120,7 +120,7 @@ function test_kes_tenant() { sed -i -e 's/ROLE_ID/'"$ROLE_ID"'/g' "${SCRIPT_DIR}/kes-config.yaml" sed -i -e 's/SECRET_ID/'"$SECRET_ID"'/g' "${SCRIPT_DIR}/kes-config.yaml" cp "${SCRIPT_DIR}/kes-config.yaml" "${SCRIPT_DIR}/../examples/kustomization/tenant-kes-encryption/kes-configuration-secret.yaml" - yq e -i '.spec.kes.image = "minio/kes:2024-03-13T17-52-13Z"' "${SCRIPT_DIR}/../examples/kustomization/tenant-kes-encryption/tenant.yaml" + yq e -i '.spec.kes.image = "minio/kes:2024-04-12T13-50-00Z"' "${SCRIPT_DIR}/../examples/kustomization/tenant-kes-encryption/tenant.yaml" kubectl apply -k "${SCRIPT_DIR}/../examples/kustomization/tenant-kes-encryption" echo "Check Tenant Status in tenant-kms-encrypted namespace for myminio:" diff --git a/web-app/build/asset-manifest.json b/web-app/build/asset-manifest.json index 928828f26ee..bbf451002cf 100644 --- a/web-app/build/asset-manifest.json +++ b/web-app/build/asset-manifest.json @@ -1,42 +1,42 @@ { "files": { "main.css": "./static/css/main.110caa22.css", - "main.js": "./static/js/main.d9e0fc5c.js", - "static/js/260.0cefb6d3.chunk.js": "./static/js/260.0cefb6d3.chunk.js", - "static/js/914.fc49dd65.chunk.js": "./static/js/914.fc49dd65.chunk.js", - "static/js/140.49921fb9.chunk.js": "./static/js/140.49921fb9.chunk.js", - "static/js/97.54a85b9d.chunk.js": "./static/js/97.54a85b9d.chunk.js", - "static/js/162.58762974.chunk.js": "./static/js/162.58762974.chunk.js", - "static/js/483.5d1963c6.chunk.js": "./static/js/483.5d1963c6.chunk.js", - "static/js/637.7d691482.chunk.js": "./static/js/637.7d691482.chunk.js", - "static/js/585.cc390c26.chunk.js": "./static/js/585.cc390c26.chunk.js", - "static/js/902.da2302f2.chunk.js": "./static/js/902.da2302f2.chunk.js", - "static/js/847.b5f043e4.chunk.js": "./static/js/847.b5f043e4.chunk.js", - "static/js/692.59baf3b7.chunk.js": "./static/js/692.59baf3b7.chunk.js", - "static/js/798.e6aa44c4.chunk.js": "./static/js/798.e6aa44c4.chunk.js", - "static/js/859.d08bafc4.chunk.js": "./static/js/859.d08bafc4.chunk.js", - "static/js/353.f19ed86f.chunk.js": "./static/js/353.f19ed86f.chunk.js", - "static/js/145.96ed8557.chunk.js": "./static/js/145.96ed8557.chunk.js", - "static/js/822.accdc1fc.chunk.js": "./static/js/822.accdc1fc.chunk.js", - "static/js/331.483c2ef9.chunk.js": "./static/js/331.483c2ef9.chunk.js", - "static/js/426.32092f8a.chunk.js": "./static/js/426.32092f8a.chunk.js", - "static/js/298.3a4fcab3.chunk.js": "./static/js/298.3a4fcab3.chunk.js", - "static/js/521.98426679.chunk.js": "./static/js/521.98426679.chunk.js", - "static/js/495.b9506235.chunk.js": "./static/js/495.b9506235.chunk.js", - "static/js/934.d8f0ede0.chunk.js": "./static/js/934.d8f0ede0.chunk.js", - "static/js/942.9aec736a.chunk.js": "./static/js/942.9aec736a.chunk.js", - "static/js/21.736e7ab9.chunk.js": "./static/js/21.736e7ab9.chunk.js", - "static/js/332.577d2d47.chunk.js": "./static/js/332.577d2d47.chunk.js", - "static/js/32.87cff5d2.chunk.js": "./static/js/32.87cff5d2.chunk.js", - "static/js/350.8e4c2698.chunk.js": "./static/js/350.8e4c2698.chunk.js", - "static/js/384.1367a4bf.chunk.js": "./static/js/384.1367a4bf.chunk.js", - "static/js/405.6fef1560.chunk.js": "./static/js/405.6fef1560.chunk.js", - "static/js/223.5c1551c2.chunk.js": "./static/js/223.5c1551c2.chunk.js", - "static/js/112.1e62425a.chunk.js": "./static/js/112.1e62425a.chunk.js", - "static/js/779.5342a80b.chunk.js": "./static/js/779.5342a80b.chunk.js", - "static/js/600.c6adb136.chunk.js": "./static/js/600.c6adb136.chunk.js", - "static/js/463.39c0be1b.chunk.js": "./static/js/463.39c0be1b.chunk.js", - "static/js/81.1a604fb2.chunk.js": "./static/js/81.1a604fb2.chunk.js", + "main.js": "./static/js/main.bbc673b5.js", + "static/js/301.d424161c.chunk.js": "./static/js/301.d424161c.chunk.js", + "static/js/361.970b063b.chunk.js": "./static/js/361.970b063b.chunk.js", + "static/js/450.be9d2e55.chunk.js": "./static/js/450.be9d2e55.chunk.js", + "static/js/799.359bf5c9.chunk.js": "./static/js/799.359bf5c9.chunk.js", + "static/js/577.4e2f491e.chunk.js": "./static/js/577.4e2f491e.chunk.js", + "static/js/890.17acf929.chunk.js": "./static/js/890.17acf929.chunk.js", + "static/js/872.9de95914.chunk.js": "./static/js/872.9de95914.chunk.js", + "static/js/629.e9da79a6.chunk.js": "./static/js/629.e9da79a6.chunk.js", + "static/js/381.6e506d98.chunk.js": "./static/js/381.6e506d98.chunk.js", + "static/js/941.a504f48a.chunk.js": "./static/js/941.a504f48a.chunk.js", + "static/js/977.74859670.chunk.js": "./static/js/977.74859670.chunk.js", + "static/js/619.87b2158f.chunk.js": "./static/js/619.87b2158f.chunk.js", + "static/js/122.c782a33a.chunk.js": "./static/js/122.c782a33a.chunk.js", + "static/js/979.21101997.chunk.js": "./static/js/979.21101997.chunk.js", + "static/js/481.f19f292a.chunk.js": "./static/js/481.f19f292a.chunk.js", + "static/js/415.6349f8fe.chunk.js": "./static/js/415.6349f8fe.chunk.js", + "static/js/414.f9770abf.chunk.js": "./static/js/414.f9770abf.chunk.js", + "static/js/112.1ea6a792.chunk.js": "./static/js/112.1ea6a792.chunk.js", + "static/js/943.4c3f42c0.chunk.js": "./static/js/943.4c3f42c0.chunk.js", + "static/js/732.33ddca24.chunk.js": "./static/js/732.33ddca24.chunk.js", + "static/js/204.3a5ec564.chunk.js": "./static/js/204.3a5ec564.chunk.js", + "static/js/104.478cfff7.chunk.js": "./static/js/104.478cfff7.chunk.js", + "static/js/728.2edde3f9.chunk.js": "./static/js/728.2edde3f9.chunk.js", + "static/js/682.2ebc8fc9.chunk.js": "./static/js/682.2ebc8fc9.chunk.js", + "static/js/723.799b7760.chunk.js": "./static/js/723.799b7760.chunk.js", + "static/js/713.229d739a.chunk.js": "./static/js/713.229d739a.chunk.js", + "static/js/461.dbb22491.chunk.js": "./static/js/461.dbb22491.chunk.js", + "static/js/666.3139236b.chunk.js": "./static/js/666.3139236b.chunk.js", + "static/js/641.c69d9e22.chunk.js": "./static/js/641.c69d9e22.chunk.js", + "static/js/654.59b7c512.chunk.js": "./static/js/654.59b7c512.chunk.js", + "static/js/729.386ba038.chunk.js": "./static/js/729.386ba038.chunk.js", + "static/js/241.f827f4d6.chunk.js": "./static/js/241.f827f4d6.chunk.js", + "static/js/829.67cb6474.chunk.js": "./static/js/829.67cb6474.chunk.js", + "static/js/64.2066437f.chunk.js": "./static/js/64.2066437f.chunk.js", + "static/js/517.6b633ce9.chunk.js": "./static/js/517.6b633ce9.chunk.js", "static/media/videoBG.mp4": "./static/media/videoBG.17363418b3c2246a0e27.mp4", "static/media/loginAnimationPoster.png": "./static/media/loginAnimationPoster.9aa924bfe619e71d5d29.png", "static/media/Inter-BoldItalic.woff": "./static/media/Inter-BoldItalic.b376885042f6c961a541.woff", @@ -59,45 +59,45 @@ "static/media/Inter-Regular.woff2": "./static/media/Inter-Regular.c8ba52b05a9ef10f4758.woff2", "index.html": "./index.html", "main.110caa22.css.map": "./static/css/main.110caa22.css.map", - "main.d9e0fc5c.js.map": "./static/js/main.d9e0fc5c.js.map", - "260.0cefb6d3.chunk.js.map": "./static/js/260.0cefb6d3.chunk.js.map", - "914.fc49dd65.chunk.js.map": "./static/js/914.fc49dd65.chunk.js.map", - "140.49921fb9.chunk.js.map": "./static/js/140.49921fb9.chunk.js.map", - "97.54a85b9d.chunk.js.map": "./static/js/97.54a85b9d.chunk.js.map", - "162.58762974.chunk.js.map": "./static/js/162.58762974.chunk.js.map", - "483.5d1963c6.chunk.js.map": "./static/js/483.5d1963c6.chunk.js.map", - "637.7d691482.chunk.js.map": "./static/js/637.7d691482.chunk.js.map", - "585.cc390c26.chunk.js.map": "./static/js/585.cc390c26.chunk.js.map", - "902.da2302f2.chunk.js.map": "./static/js/902.da2302f2.chunk.js.map", - "847.b5f043e4.chunk.js.map": "./static/js/847.b5f043e4.chunk.js.map", - "692.59baf3b7.chunk.js.map": "./static/js/692.59baf3b7.chunk.js.map", - "798.e6aa44c4.chunk.js.map": "./static/js/798.e6aa44c4.chunk.js.map", - "859.d08bafc4.chunk.js.map": "./static/js/859.d08bafc4.chunk.js.map", - "353.f19ed86f.chunk.js.map": "./static/js/353.f19ed86f.chunk.js.map", - "145.96ed8557.chunk.js.map": "./static/js/145.96ed8557.chunk.js.map", - "822.accdc1fc.chunk.js.map": "./static/js/822.accdc1fc.chunk.js.map", - "331.483c2ef9.chunk.js.map": "./static/js/331.483c2ef9.chunk.js.map", - "426.32092f8a.chunk.js.map": "./static/js/426.32092f8a.chunk.js.map", - "298.3a4fcab3.chunk.js.map": "./static/js/298.3a4fcab3.chunk.js.map", - "521.98426679.chunk.js.map": "./static/js/521.98426679.chunk.js.map", - "495.b9506235.chunk.js.map": "./static/js/495.b9506235.chunk.js.map", - "934.d8f0ede0.chunk.js.map": "./static/js/934.d8f0ede0.chunk.js.map", - "942.9aec736a.chunk.js.map": "./static/js/942.9aec736a.chunk.js.map", - "21.736e7ab9.chunk.js.map": "./static/js/21.736e7ab9.chunk.js.map", - "332.577d2d47.chunk.js.map": "./static/js/332.577d2d47.chunk.js.map", - "32.87cff5d2.chunk.js.map": "./static/js/32.87cff5d2.chunk.js.map", - "350.8e4c2698.chunk.js.map": "./static/js/350.8e4c2698.chunk.js.map", - "384.1367a4bf.chunk.js.map": "./static/js/384.1367a4bf.chunk.js.map", - "405.6fef1560.chunk.js.map": "./static/js/405.6fef1560.chunk.js.map", - "223.5c1551c2.chunk.js.map": "./static/js/223.5c1551c2.chunk.js.map", - "112.1e62425a.chunk.js.map": "./static/js/112.1e62425a.chunk.js.map", - "779.5342a80b.chunk.js.map": "./static/js/779.5342a80b.chunk.js.map", - "600.c6adb136.chunk.js.map": "./static/js/600.c6adb136.chunk.js.map", - "463.39c0be1b.chunk.js.map": "./static/js/463.39c0be1b.chunk.js.map", - "81.1a604fb2.chunk.js.map": "./static/js/81.1a604fb2.chunk.js.map" + "main.bbc673b5.js.map": "./static/js/main.bbc673b5.js.map", + "301.d424161c.chunk.js.map": "./static/js/301.d424161c.chunk.js.map", + "361.970b063b.chunk.js.map": "./static/js/361.970b063b.chunk.js.map", + "450.be9d2e55.chunk.js.map": "./static/js/450.be9d2e55.chunk.js.map", + "799.359bf5c9.chunk.js.map": "./static/js/799.359bf5c9.chunk.js.map", + "577.4e2f491e.chunk.js.map": "./static/js/577.4e2f491e.chunk.js.map", + "890.17acf929.chunk.js.map": "./static/js/890.17acf929.chunk.js.map", + "872.9de95914.chunk.js.map": "./static/js/872.9de95914.chunk.js.map", + "629.e9da79a6.chunk.js.map": "./static/js/629.e9da79a6.chunk.js.map", + "381.6e506d98.chunk.js.map": "./static/js/381.6e506d98.chunk.js.map", + "941.a504f48a.chunk.js.map": "./static/js/941.a504f48a.chunk.js.map", + "977.74859670.chunk.js.map": "./static/js/977.74859670.chunk.js.map", + "619.87b2158f.chunk.js.map": "./static/js/619.87b2158f.chunk.js.map", + "122.c782a33a.chunk.js.map": "./static/js/122.c782a33a.chunk.js.map", + "979.21101997.chunk.js.map": "./static/js/979.21101997.chunk.js.map", + "481.f19f292a.chunk.js.map": "./static/js/481.f19f292a.chunk.js.map", + "415.6349f8fe.chunk.js.map": "./static/js/415.6349f8fe.chunk.js.map", + "414.f9770abf.chunk.js.map": "./static/js/414.f9770abf.chunk.js.map", + "112.1ea6a792.chunk.js.map": "./static/js/112.1ea6a792.chunk.js.map", + "943.4c3f42c0.chunk.js.map": "./static/js/943.4c3f42c0.chunk.js.map", + "732.33ddca24.chunk.js.map": "./static/js/732.33ddca24.chunk.js.map", + "204.3a5ec564.chunk.js.map": "./static/js/204.3a5ec564.chunk.js.map", + "104.478cfff7.chunk.js.map": "./static/js/104.478cfff7.chunk.js.map", + "728.2edde3f9.chunk.js.map": "./static/js/728.2edde3f9.chunk.js.map", + "682.2ebc8fc9.chunk.js.map": "./static/js/682.2ebc8fc9.chunk.js.map", + "723.799b7760.chunk.js.map": "./static/js/723.799b7760.chunk.js.map", + "713.229d739a.chunk.js.map": "./static/js/713.229d739a.chunk.js.map", + "461.dbb22491.chunk.js.map": "./static/js/461.dbb22491.chunk.js.map", + "666.3139236b.chunk.js.map": "./static/js/666.3139236b.chunk.js.map", + "641.c69d9e22.chunk.js.map": "./static/js/641.c69d9e22.chunk.js.map", + "654.59b7c512.chunk.js.map": "./static/js/654.59b7c512.chunk.js.map", + "729.386ba038.chunk.js.map": "./static/js/729.386ba038.chunk.js.map", + "241.f827f4d6.chunk.js.map": "./static/js/241.f827f4d6.chunk.js.map", + "829.67cb6474.chunk.js.map": "./static/js/829.67cb6474.chunk.js.map", + "64.2066437f.chunk.js.map": "./static/js/64.2066437f.chunk.js.map", + "517.6b633ce9.chunk.js.map": "./static/js/517.6b633ce9.chunk.js.map" }, "entrypoints": [ "static/css/main.110caa22.css", - "static/js/main.d9e0fc5c.js" + "static/js/main.bbc673b5.js" ] } \ No newline at end of file diff --git a/web-app/build/index.html b/web-app/build/index.html index a8b01daea79..43ecfc6ea9f 100644 --- a/web-app/build/index.html +++ b/web-app/build/index.html @@ -1 +1 @@ -MinIO Operator
\ No newline at end of file +MinIO Operator
\ No newline at end of file diff --git a/web-app/build/static/js/104.478cfff7.chunk.js b/web-app/build/static/js/104.478cfff7.chunk.js new file mode 100644 index 00000000000..97fc2fee6d3 --- /dev/null +++ b/web-app/build/static/js/104.478cfff7.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[104],{104:(e,t,a)=>{a.r(t),a.d(t,{default:()=>x});var s=a(5043),n=a(3216),r=a(9923),c=a(4574),p=a(9161),i=a(579);const o=c.Ay.iframe((()=>({border:"0px",flex:"1 1 auto",minHeight:"800px",width:"100%"}))),x=()=>{const{tenantName:e,tenantNamespace:t}=(0,n.g)(),[a,c]=(0,s.useState)(!0);return(0,i.jsxs)(s.Fragment,{children:[(0,i.jsx)(r._xt,{separator:!0,sx:{marginBottom:15},children:"Metrics"}),a&&(0,i.jsx)("div",{style:{marginTop:"80px"},children:(0,i.jsx)(r.z21,{})}),(0,i.jsx)(o,{title:"metrics",src:"/api/proxy/".concat(t||"","/").concat(e||"").concat(p.zZ.TOOLS_TRACE,"?cp=y"),onLoad:()=>{c(!1)}})]})}}}]); +//# sourceMappingURL=104.478cfff7.chunk.js.map \ No newline at end of file diff --git a/web-app/build/static/js/934.d8f0ede0.chunk.js.map b/web-app/build/static/js/104.478cfff7.chunk.js.map similarity index 93% rename from web-app/build/static/js/934.d8f0ede0.chunk.js.map rename to web-app/build/static/js/104.478cfff7.chunk.js.map index 8d1caaed2ea..2007e7da6c2 100644 --- a/web-app/build/static/js/934.d8f0ede0.chunk.js.map +++ b/web-app/build/static/js/104.478cfff7.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/934.d8f0ede0.chunk.js","mappings":"8LAsBA,MAAMA,EAAkBC,EAAAA,GAAOC,QAAO,MACpCC,OAAQ,MACRC,KAAM,WACNC,UAAW,QACXC,MAAO,WA+BT,EA5BoBC,KAClB,MAAM,WAAEC,EAAU,gBAAEC,IAAoBC,EAAAA,EAAAA,OAEjCC,EAASC,IAAcC,EAAAA,EAAAA,WAAkB,GAEhD,OACEC,EAAAA,EAAAA,MAACC,EAAAA,SAAQ,CAAAC,SAAA,EACPC,EAAAA,EAAAA,KAACC,EAAAA,IAAY,CAACC,WAAS,EAACC,GAAI,CAAEC,aAAc,IAAKL,SAAC,YAGjDL,IACCM,EAAAA,EAAAA,KAAA,OAAKK,MAAO,CAAEC,UAAW,QAASP,UAChCC,EAAAA,EAAAA,KAACO,EAAAA,IAAW,OAGhBP,EAAAA,EAAAA,KAACjB,EAAe,CACdyB,MAAO,UACPC,IAAG,cAAAC,OAAgBlB,GAAmB,GAAE,KAAAkB,OAAInB,GAAc,IAAEmB,OAC1DC,EAAAA,GAAUC,YAAW,SAEvBC,OAAQA,KACNlB,GAAW,EAAM,MAGZ,C","sources":["screens/Console/Tenants/TenantDetails/TenantTrace.tsx"],"sourcesContent":["// This file is part of MinIO Operator\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { useState, Fragment } from \"react\";\nimport { useParams } from \"react-router-dom\";\nimport { ProgressBar, SectionTitle } from \"mds\";\nimport styled from \"styled-components\";\nimport { IAM_PAGES } from \"../../../../common/SecureComponent/permissions\";\n\nconst IFrameContainer = styled.iframe(() => ({\n border: \"0px\",\n flex: \"1 1 auto\",\n minHeight: \"800px\",\n width: \"100%\",\n}));\n\nconst TenantTrace = () => {\n const { tenantName, tenantNamespace } = useParams();\n\n const [loading, setLoading] = useState(true);\n\n return (\n \n \n Metrics\n \n {loading && (\n
\n \n
\n )}\n {\n setLoading(false);\n }}\n />\n
\n );\n};\n\nexport default TenantTrace;\n"],"names":["IFrameContainer","styled","iframe","border","flex","minHeight","width","TenantTrace","tenantName","tenantNamespace","useParams","loading","setLoading","useState","_jsxs","Fragment","children","_jsx","SectionTitle","separator","sx","marginBottom","style","marginTop","ProgressBar","title","src","concat","IAM_PAGES","TOOLS_TRACE","onLoad"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/104.478cfff7.chunk.js","mappings":"6LAsBA,MAAMA,EAAkBC,EAAAA,GAAOC,QAAO,MACpCC,OAAQ,MACRC,KAAM,WACNC,UAAW,QACXC,MAAO,WA+BT,EA5BoBC,KAClB,MAAM,WAAEC,EAAU,gBAAEC,IAAoBC,EAAAA,EAAAA,MAEjCC,EAASC,IAAcC,EAAAA,EAAAA,WAAkB,GAEhD,OACEC,EAAAA,EAAAA,MAACC,EAAAA,SAAQ,CAAAC,SAAA,EACPC,EAAAA,EAAAA,KAACC,EAAAA,IAAY,CAACC,WAAS,EAACC,GAAI,CAAEC,aAAc,IAAKL,SAAC,YAGjDL,IACCM,EAAAA,EAAAA,KAAA,OAAKK,MAAO,CAAEC,UAAW,QAASP,UAChCC,EAAAA,EAAAA,KAACO,EAAAA,IAAW,OAGhBP,EAAAA,EAAAA,KAACjB,EAAe,CACdyB,MAAO,UACPC,IAAG,cAAAC,OAAgBlB,GAAmB,GAAE,KAAAkB,OAAInB,GAAc,IAAEmB,OAC1DC,EAAAA,GAAUC,YAAW,SAEvBC,OAAQA,KACNlB,GAAW,EAAM,MAGZ,C","sources":["screens/Console/Tenants/TenantDetails/TenantTrace.tsx"],"sourcesContent":["// This file is part of MinIO Operator\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { useState, Fragment } from \"react\";\nimport { useParams } from \"react-router-dom\";\nimport { ProgressBar, SectionTitle } from \"mds\";\nimport styled from \"styled-components\";\nimport { IAM_PAGES } from \"../../../../common/SecureComponent/permissions\";\n\nconst IFrameContainer = styled.iframe(() => ({\n border: \"0px\",\n flex: \"1 1 auto\",\n minHeight: \"800px\",\n width: \"100%\",\n}));\n\nconst TenantTrace = () => {\n const { tenantName, tenantNamespace } = useParams();\n\n const [loading, setLoading] = useState(true);\n\n return (\n \n \n Metrics\n \n {loading && (\n
\n \n
\n )}\n {\n setLoading(false);\n }}\n />\n
\n );\n};\n\nexport default TenantTrace;\n"],"names":["IFrameContainer","styled","iframe","border","flex","minHeight","width","TenantTrace","tenantName","tenantNamespace","useParams","loading","setLoading","useState","_jsxs","Fragment","children","_jsx","SectionTitle","separator","sx","marginBottom","style","marginTop","ProgressBar","title","src","concat","IAM_PAGES","TOOLS_TRACE","onLoad"],"sourceRoot":""} \ No newline at end of file diff --git a/web-app/build/static/js/112.1e62425a.chunk.js b/web-app/build/static/js/112.1e62425a.chunk.js deleted file mode 100644 index f4e3a080431..00000000000 --- a/web-app/build/static/js/112.1e62425a.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[112],{9505:(e,n,t)=>{t.d(n,{Z:()=>o});var a=t(2791),s=t(1207);const o=(e,n)=>{const[t,o]=(0,a.useState)(!1);return[t,(t,a,r,c)=>{o(!0),s.Z.invoke(t,a,r,c).then((n=>{o(!1),e(n)})).catch((e=>{o(!1),n(e)}))}]}},2112:(e,n,t)=>{t.r(n),t.d(n,{default:()=>p});var a=t(2791),s=t(9945),o=t(9505),r=t(3508),c=t(7995),i=t(1320),l=t(184);const p=e=>{let{deleteOpen:n,selectedPVC:t,closeDeleteModalAndRefresh:p}=e;const d=(0,i.TL)(),[m,h]=(0,a.useState)(""),[u,C]=(0,o.Z)((()=>p(!0)),(e=>d((0,c.Ih)(e))));return(0,l.jsx)(r.Z,{title:"Delete PVC",confirmText:"Delete",isOpen:n,titleIcon:(0,l.jsx)(s.NvT,{}),isLoading:u,onConfirm:()=>{m===t.name?C("DELETE","/api/v1/namespaces/".concat(t.namespace,"/tenants/").concat(t.tenant,"/pvc/").concat(t.name)):d((0,c.Ih)({errorMessage:"PVC name is incorrect",detailedError:""}))},onClose:()=>p(!1),confirmButtonProps:{disabled:m!==t.name||u},confirmationContent:(0,l.jsxs)(a.Fragment,{children:["To continue please type ",(0,l.jsx)("b",{children:t.name})," in the box.",(0,l.jsx)(s.rjZ,{item:!0,xs:12,sx:{marginTop:15},children:(0,l.jsx)(s.Wzg,{id:"retype-PVC",name:"retype-PVC",onChange:e=>{h(e.target.value)},label:"",value:m})})]})})}}}]); -//# sourceMappingURL=112.1e62425a.chunk.js.map \ No newline at end of file diff --git a/web-app/build/static/js/112.1ea6a792.chunk.js b/web-app/build/static/js/112.1ea6a792.chunk.js new file mode 100644 index 00000000000..7c435cc823f --- /dev/null +++ b/web-app/build/static/js/112.1ea6a792.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[112],{112:(e,n,s)=>{s.r(n),s.d(n,{default:()=>h});var t=s(5043),r=s(9456),a=s(9923),c=s(3216),o=s(6483),l=s(2961),d=s(4159),i=s(649),x=s(6746),j=s(579);const h=()=>{const e=(0,l.jL)(),n=(0,c.g)(),s=(0,r.d4)((e=>e.tenants.loadingTenant)),[h,g]=(0,t.useState)([]),[p,m]=(0,t.useState)(!0),u=n.tenantName||"",A=n.tenantNamespace||"";return(0,t.useEffect)((()=>{s&&m(!0)}),[s]),(0,t.useEffect)((()=>{p&&i.A.invoke("GET","/api/v1/namespaces/".concat(A,"/tenants/").concat(u,"/events")).then((e=>{for(let n=0;n{e((0,d.C9)(n)),m(!1)}))}),[p,A,u,e]),(0,j.jsxs)(t.Fragment,{children:[(0,j.jsx)(a._xt,{separator:!0,sx:{marginBottom:15},children:"Events"}),(0,j.jsx)(a.xA9,{item:!0,xs:12,children:(0,j.jsx)(x.A,{events:h,loading:p})})]})}},6746:(e,n,s)=>{s.d(n,{A:()=>o});var t=s(5043),r=s(9923),a=s(579);const c=e=>{const{event:n}=e,[s,c]=t.useState(!1);return(0,a.jsxs)(t.Fragment,{children:[(0,a.jsxs)(r.Hjg,{sx:{cursor:"pointer"},children:[(0,a.jsx)(r.TlP,{scope:"row",onClick:()=>c(!s),sx:{borderBottom:0},children:n.event_type}),(0,a.jsx)(r.nA6,{onClick:()=>c(!s),sx:{borderBottom:0},children:n.reason}),(0,a.jsx)(r.nA6,{onClick:()=>c(!s),sx:{borderBottom:0},children:n.seen}),(0,a.jsx)(r.nA6,{onClick:()=>c(!s),sx:{borderBottom:0},children:n.message.length>=30?"".concat(n.message.slice(0,30),"..."):n.message}),(0,a.jsx)(r.nA6,{onClick:()=>c(!s),sx:{borderBottom:0},children:s?(0,a.jsx)(r.FUY,{}):(0,a.jsx)(r.QpL,{})})]}),(0,a.jsx)(r.Hjg,{children:(0,a.jsx)(r.nA6,{style:{paddingBottom:0,paddingTop:0},colSpan:5,children:s&&(0,a.jsx)(r.azJ,{useBackground:!0,sx:{padding:10,marginBottom:10},children:n.message})})})]})},o=e=>{let{events:n,loading:s}=e;return s?(0,a.jsx)(r.z21,{}):(0,a.jsx)(r.azJ,{withBorders:!0,customBorderPadding:"0px",children:(0,a.jsxs)(r.XIK,{"aria-label":"collapsible table",children:[(0,a.jsx)(r.ndF,{children:(0,a.jsxs)(r.Hjg,{children:[(0,a.jsx)(r.nA6,{children:"Type"}),(0,a.jsx)(r.nA6,{children:"Reason"}),(0,a.jsx)(r.nA6,{children:"Age"}),(0,a.jsx)(r.nA6,{children:"Message"}),(0,a.jsx)(r.nA6,{})]})}),(0,a.jsx)(r.BFY,{children:n.map((e=>(0,a.jsx)(c,{event:e},"".concat(e.event_type,"-").concat(e.seen))))})]})})}}}]); +//# sourceMappingURL=112.1ea6a792.chunk.js.map \ No newline at end of file diff --git a/web-app/build/static/js/426.32092f8a.chunk.js.map b/web-app/build/static/js/112.1ea6a792.chunk.js.map similarity index 98% rename from web-app/build/static/js/426.32092f8a.chunk.js.map rename to web-app/build/static/js/112.1ea6a792.chunk.js.map index 3daf2ce0bfa..76fba7db3ea 100644 --- a/web-app/build/static/js/426.32092f8a.chunk.js.map +++ b/web-app/build/static/js/112.1ea6a792.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/426.32092f8a.chunk.js","mappings":"qOA4BA,MAsDA,EAtDqBA,KACnB,MAAMC,GAAWC,EAAAA,EAAAA,MACXC,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AA,IAAW,KAGnBpC,EAAAA,EAAAA,KAACgC,EAAAA,IAAG,CAACK,aAAW,EAACC,oBAAqB,MAAMvC,UAC1CF,EAAAA,EAAAA,MAAC0C,EAAAA,IAAK,CAAC,aAAW,oBAAmBxC,SAAA,EACnCC,EAAAA,EAAAA,KAACwC,EAAAA,IAAS,CAAAzC,UACRF,EAAAA,EAAAA,MAACkB,EAAAA,IAAQ,CAAAhB,SAAA,EACPC,EAAAA,EAAAA,KAACsB,EAAAA,IAAS,CAAAvB,SAAC,UACXC,EAAAA,EAAAA,KAACsB,EAAAA,IAAS,CAAAvB,SAAC,YACXC,EAAAA,EAAAA,KAACsB,EAAAA,IAAS,CAAAvB,SAAC,SACXC,EAAAA,EAAAA,KAACsB,EAAAA,IAAS,CAAAvB,SAAC,aACXC,EAAAA,EAAAA,KAACsB,EAAAA,IAAS,UAGdtB,EAAAA,EAAAA,KAACyC,EAAAA,IAAS,CAAA1C,SACP3B,EAAOsE,KAAK/B,IACXX,EAAAA,EAAAA,KAACS,EAAK,CAA2CE,MAAOA,GAAM,GAAA7B,OAA/C6B,EAAMU,WAAU,KAAAvC,OAAI6B,EAAMrB,eAI3C,C","sources":["screens/Console/Tenants/TenantDetails/TenantEvents.tsx","screens/Console/Tenants/TenantDetails/events/EventsList.tsx"],"sourcesContent":["// This file is part of MinIO Operator\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useEffect, useState } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { Grid, SectionTitle } from \"mds\";\nimport { useParams } from \"react-router-dom\";\nimport { IEvent } from \"../ListTenants/types\";\nimport { niceDays } from \"../../../../common/utils\";\nimport { ErrorResponseHandler } from \"../../../../common/types\";\nimport { AppState, useAppDispatch } from \"../../../../store\";\nimport { setErrorSnackMessage } from \"../../../../systemSlice\";\nimport api from \"../../../../common/api\";\nimport EventsList from \"./events/EventsList\";\n\nconst TenantEvents = () => {\n const dispatch = useAppDispatch();\n const params = useParams();\n\n const loadingTenant = useSelector(\n (state: AppState) => state.tenants.loadingTenant,\n );\n\n const [events, setEvents] = useState([]);\n const [loading, setLoading] = useState(true);\n const tenantName = params.tenantName || \"\";\n const tenantNamespace = params.tenantNamespace || \"\";\n\n useEffect(() => {\n if (loadingTenant) {\n setLoading(true);\n }\n }, [loadingTenant]);\n\n useEffect(() => {\n if (loading) {\n api\n .invoke(\n \"GET\",\n `/api/v1/namespaces/${tenantNamespace}/tenants/${tenantName}/events`,\n )\n .then((res: IEvent[]) => {\n for (let i = 0; i < res.length; i++) {\n let currentTime = (Date.now() / 1000) | 0;\n\n res[i].seen = niceDays((currentTime - res[i].last_seen).toString());\n }\n setEvents(res);\n setLoading(false);\n })\n .catch((err: ErrorResponseHandler) => {\n dispatch(setErrorSnackMessage(err));\n setLoading(false);\n });\n }\n }, [loading, tenantNamespace, tenantName, dispatch]);\n\n return (\n \n \n Events\n \n \n \n \n \n );\n};\n\nexport default TenantEvents;\n","// This file is part of MinIO Operator\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport {\n ProgressBar,\n Table,\n TableBody,\n TableHeadCell,\n TableCell,\n TableHead,\n TableRow,\n Box,\n ExpandCaret,\n CollapseCaret,\n} from \"mds\";\nimport { IEvent } from \"../../ListTenants/types\";\n\ninterface IEventsListProps {\n events: IEvent[];\n loading: boolean;\n}\n\nconst Event = (props: { event: IEvent }) => {\n const { event } = props;\n const [open, setOpen] = React.useState(false);\n\n return (\n \n \n setOpen(!open)}\n sx={{ borderBottom: 0 }}\n >\n {event.event_type}\n \n setOpen(!open)} sx={{ borderBottom: 0 }}>\n {event.reason}\n \n setOpen(!open)} sx={{ borderBottom: 0 }}>\n {event.seen}\n \n setOpen(!open)} sx={{ borderBottom: 0 }}>\n {event.message.length >= 30\n ? `${event.message.slice(0, 30)}...`\n : event.message}\n \n setOpen(!open)} sx={{ borderBottom: 0 }}>\n {open ? : }\n \n \n \n \n {open && (\n \n {event.message}\n \n )}\n \n \n \n );\n};\n\nconst EventsList = ({ events, loading }: IEventsListProps) => {\n if (loading) {\n return ;\n }\n return (\n \n \n \n \n Type\n Reason\n Age\n Message\n \n \n \n \n {events.map((event) => (\n \n ))}\n \n
\n
\n );\n};\n\nexport default EventsList;\n"],"names":["TenantEvents","dispatch","useAppDispatch","params","useParams","loadingTenant","useSelector","state","tenants","events","setEvents","useState","loading","setLoading","tenantName","tenantNamespace","useEffect","api","invoke","concat","then","res","i","length","currentTime","Date","now","seen","niceDays","last_seen","toString","catch","err","setErrorSnackMessage","_jsxs","Fragment","children","_jsx","SectionTitle","separator","sx","marginBottom","Grid","item","xs","EventsList","Event","props","event","open","setOpen","React","TableRow","cursor","TableHeadCell","scope","onClick","borderBottom","event_type","TableCell","reason","message","slice","CollapseCaret","ExpandCaret","style","paddingBottom","paddingTop","colSpan","Box","useBackground","padding","_ref","ProgressBar","withBorders","customBorderPadding","Table","TableHead","TableBody","map"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/112.1ea6a792.chunk.js","mappings":"oOA4BA,MAsDA,EAtDqBA,KACnB,MAAMC,GAAWC,EAAAA,EAAA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ACoC,EAAAA,IAAW,KAGnBpC,EAAAA,EAAAA,KAACgC,EAAAA,IAAG,CAACK,aAAW,EAACC,oBAAqB,MAAMvC,UAC1CF,EAAAA,EAAAA,MAAC0C,EAAAA,IAAK,CAAC,aAAW,oBAAmBxC,SAAA,EACnCC,EAAAA,EAAAA,KAACwC,EAAAA,IAAS,CAAAzC,UACRF,EAAAA,EAAAA,MAACkB,EAAAA,IAAQ,CAAAhB,SAAA,EACPC,EAAAA,EAAAA,KAACsB,EAAAA,IAAS,CAAAvB,SAAC,UACXC,EAAAA,EAAAA,KAACsB,EAAAA,IAAS,CAAAvB,SAAC,YACXC,EAAAA,EAAAA,KAACsB,EAAAA,IAAS,CAAAvB,SAAC,SACXC,EAAAA,EAAAA,KAACsB,EAAAA,IAAS,CAAAvB,SAAC,aACXC,EAAAA,EAAAA,KAACsB,EAAAA,IAAS,UAGdtB,EAAAA,EAAAA,KAACyC,EAAAA,IAAS,CAAA1C,SACP3B,EAAOsE,KAAK/B,IACXX,EAAAA,EAAAA,KAACS,EAAK,CAA2CE,MAAOA,GAAM,GAAA7B,OAA/C6B,EAAMU,WAAU,KAAAvC,OAAI6B,EAAMrB,eAI3C,C","sources":["screens/Console/Tenants/TenantDetails/TenantEvents.tsx","screens/Console/Tenants/TenantDetails/events/EventsList.tsx"],"sourcesContent":["// This file is part of MinIO Operator\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useEffect, useState } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { Grid, SectionTitle } from \"mds\";\nimport { useParams } from \"react-router-dom\";\nimport { IEvent } from \"../ListTenants/types\";\nimport { niceDays } from \"../../../../common/utils\";\nimport { ErrorResponseHandler } from \"../../../../common/types\";\nimport { AppState, useAppDispatch } from \"../../../../store\";\nimport { setErrorSnackMessage } from \"../../../../systemSlice\";\nimport api from \"../../../../common/api\";\nimport EventsList from \"./events/EventsList\";\n\nconst TenantEvents = () => {\n const dispatch = useAppDispatch();\n const params = useParams();\n\n const loadingTenant = useSelector(\n (state: AppState) => state.tenants.loadingTenant,\n );\n\n const [events, setEvents] = useState([]);\n const [loading, setLoading] = useState(true);\n const tenantName = params.tenantName || \"\";\n const tenantNamespace = params.tenantNamespace || \"\";\n\n useEffect(() => {\n if (loadingTenant) {\n setLoading(true);\n }\n }, [loadingTenant]);\n\n useEffect(() => {\n if (loading) {\n api\n .invoke(\n \"GET\",\n `/api/v1/namespaces/${tenantNamespace}/tenants/${tenantName}/events`,\n )\n .then((res: IEvent[]) => {\n for (let i = 0; i < res.length; i++) {\n let currentTime = (Date.now() / 1000) | 0;\n\n res[i].seen = niceDays((currentTime - res[i].last_seen).toString());\n }\n setEvents(res);\n setLoading(false);\n })\n .catch((err: ErrorResponseHandler) => {\n dispatch(setErrorSnackMessage(err));\n setLoading(false);\n });\n }\n }, [loading, tenantNamespace, tenantName, dispatch]);\n\n return (\n \n \n Events\n \n \n \n \n \n );\n};\n\nexport default TenantEvents;\n","// This file is part of MinIO Operator\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport {\n ProgressBar,\n Table,\n TableBody,\n TableHeadCell,\n TableCell,\n TableHead,\n TableRow,\n Box,\n ExpandCaret,\n CollapseCaret,\n} from \"mds\";\nimport { IEvent } from \"../../ListTenants/types\";\n\ninterface IEventsListProps {\n events: IEvent[];\n loading: boolean;\n}\n\nconst Event = (props: { event: IEvent }) => {\n const { event } = props;\n const [open, setOpen] = React.useState(false);\n\n return (\n \n \n setOpen(!open)}\n sx={{ borderBottom: 0 }}\n >\n {event.event_type}\n \n setOpen(!open)} sx={{ borderBottom: 0 }}>\n {event.reason}\n \n setOpen(!open)} sx={{ borderBottom: 0 }}>\n {event.seen}\n \n setOpen(!open)} sx={{ borderBottom: 0 }}>\n {event.message.length >= 30\n ? `${event.message.slice(0, 30)}...`\n : event.message}\n \n setOpen(!open)} sx={{ borderBottom: 0 }}>\n {open ? : }\n \n \n \n \n {open && (\n \n {event.message}\n \n )}\n \n \n \n );\n};\n\nconst EventsList = ({ events, loading }: IEventsListProps) => {\n if (loading) {\n return ;\n }\n return (\n \n \n \n \n Type\n Reason\n Age\n Message\n \n \n \n \n {events.map((event) => (\n \n ))}\n \n
\n
\n );\n};\n\nexport default EventsList;\n"],"names":["TenantEvents","dispatch","useAppDispatch","params","useParams","loadingTenant","useSelector","state","tenants","events","setEvents","useState","loading","setLoading","tenantName","tenantNamespace","useEffect","api","invoke","concat","then","res","i","length","currentTime","Date","now","seen","niceDays","last_seen","toString","catch","err","setErrorSnackMessage","_jsxs","Fragment","children","_jsx","SectionTitle","separator","sx","marginBottom","Grid","item","xs","EventsList","Event","props","event","open","setOpen","React","TableRow","cursor","TableHeadCell","scope","onClick","borderBottom","event_type","TableCell","reason","message","slice","CollapseCaret","ExpandCaret","style","paddingBottom","paddingTop","colSpan","Box","useBackground","padding","_ref","ProgressBar","withBorders","customBorderPadding","Table","TableHead","TableBody","map"],"sourceRoot":""} \ No newline at end of file diff --git a/web-app/build/static/js/122.c782a33a.chunk.js b/web-app/build/static/js/122.c782a33a.chunk.js new file mode 100644 index 00000000000..28a997e5689 --- /dev/null +++ b/web-app/build/static/js/122.c782a33a.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[122],{8122:(e,t,a)=>{a.r(t),a.d(t,{default:()=>x});var n=a(5043),s=a(9456),c=a(3216),i=a(9923),l=a(649),r=a(4159),o=a(2961),m=a(8296),d=a(579);const x=()=>{const e=(0,o.jL)(),t=(0,c.Zp)(),a=(0,s.d4)((e=>e.tenants.currentTenant)),x=(0,s.d4)((e=>e.tenants.currentNamespace)),[u,p]=(0,n.useState)(!1),[h,f]=(0,n.useState)(!1),[j,y]=(0,n.useState)(""),[v,b]=(0,n.useState)("");(0,n.useEffect)((()=>{x&&a&&l.A.invoke("GET","/api/v1/namespaces/".concat(x,"/tenants/").concat(a,"/yaml")).then((e=>{f(!1),y(e.yaml)})).catch((t=>{f(!1),e((0,r.Dy)(t))}))}),[a,x,e]),(0,n.useEffect)((()=>{}),[]);const g=""!==j.trim();return(0,d.jsxs)(n.Fragment,{children:[u||h&&(0,d.jsx)(i.xA9,{item:!0,xs:12,children:(0,d.jsx)(i.z21,{})}),!h&&(0,d.jsx)("form",{noValidate:!0,autoComplete:"off",onSubmit:n=>{n.preventDefault(),n.preventDefault(),u||(p(!0),b(""),l.A.invoke("PUT","/api/v1/namespaces/".concat(x,"/tenants/").concat(a,"/yaml"),{yaml:j}).then((()=>{p(!1),e((0,m.X)()),b(""),t("/namespaces/".concat(x,"/tenants/").concat(a,"/summary"))})).catch((e=>{p(!1);const t=(null===e||void 0===e?void 0:e.message)||e.errorMessage;b(t)})))},children:(0,d.jsxs)(i.xA9,{container:!0,children:[(0,d.jsx)(i.xA9,{item:!0,xs:12,children:(0,d.jsx)(i._xt,{children:"Tenant Specification"})}),v?(0,d.jsx)(i.xA9,{item:!0,xs:12,children:(0,d.jsx)(i.Wei,{title:"Error",message:v,variant:"error"})}):null,(0,d.jsx)(i.xA9,{item:!0,xs:12,children:(0,d.jsx)(i.BYM,{value:j,mode:"yaml",onChange:e=>{y(e)},editorHeight:"550px"})}),(0,d.jsxs)(i.xA9,{item:!0,xs:12,style:{display:"flex",justifyContent:"flex-end",paddingTop:16},children:[(0,d.jsx)(i.$nd,{id:"cancel-tenant-yaml",type:"button",variant:"regular",disabled:u,onClick:()=>{t("/namespaces/".concat(x,"/tenants/").concat(a,"/summary"))},label:"Cancel"}),(0,d.jsx)(i.$nd,{id:"save-tenant-yaml",type:"submit",variant:"callAction",disabled:u||!g,style:{marginLeft:8},label:"Save"})]})]})})]})}}}]); +//# sourceMappingURL=122.c782a33a.chunk.js.map \ No newline at end of file diff --git a/web-app/build/static/js/859.d08bafc4.chunk.js.map b/web-app/build/static/js/122.c782a33a.chunk.js.map similarity index 98% rename from web-app/build/static/js/859.d08bafc4.chunk.js.map rename to web-app/build/static/js/122.c782a33a.chunk.js.map index 8c7f980816b..c5a0783dcfa 100644 --- a/web-app/build/static/js/859.d08bafc4.chunk.js.map +++ b/web-app/build/static/js/122.c782a33a.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/859.d08bafc4.chunk.js","mappings":"4NAqCA,MAuIA,EAvImBA,KACjB,MAAMC,GAAWC,EAAAA,EAAAA,MACXC,GAAWC,EAAAA,EAAAA,MAEXC,GAASC,EAAAA,EAAAA,KAAaC,GAAoBA,EAAMC,QAAQC,gBACxDC,GAAYJ,EAAAA,EAAAA,KACfC,GAAoBA,EAAMC,QAAQG,oBAG9BC,EAAYC,IAAiBC,EAAAA,EAAAA,WAAkB,IAC/CC,EAASC,IAAcF,EAAAA,EAAAA,WAAkB,IACzCG,EAAYC,IAAiBJ,EAAAA,EAAAA,UAAiB,KAC9CK,EAAcC,IAAmBN,EAAAA,EAAAA,UAAiB,KA0BzDO,EAAAA,EAAAA,YAAU,KACJX,GAAaL,GACfiB,EAAAA,EACGC,OAAO,MAAM,sBAADC,OAAwBd,EAAS,aAAAc,OAAYnB,EAAM,UAC/DoB,MAAMC,IACLV,GAAW,GACXE,EAAcQ,EA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J,QAAS7B,EACTkC,QAAS,YAGX,MACJjB,EAAAA,EAAAA,KAACC,EAAAA,IAAI,CAACC,MAAI,EAACC,GAAI,GAAGJ,UAChBC,EAAAA,EAAAA,KAACkB,EAAAA,IAAU,CACTC,MAAOtC,EACPuC,KAAM,OACNC,SAAWF,IACTrC,EAAcqC,EAAM,EAEtBG,aAAc,aAGlBzB,EAAAA,EAAAA,MAACI,EAAAA,IAAI,CACHC,MAAI,EACJC,GAAI,GACJoB,MAAO,CACLC,QAAS,OACTC,eAAgB,WAChBC,WAAY,IACZ3B,SAAA,EAEFC,EAAAA,EAAAA,KAAC2B,EAAAA,IAAM,CACLC,GAAI,qBACJC,KAAK,SACLZ,QAAQ,UACRa,SAAUtD,EACVuD,QAASA,KACPhE,EAAS,eAADqB,OACSd,EAAS,aAAAc,OAAYnB,EAAM,YAC3C,EAEH+D,MAAO,YAEThC,EAAAA,EAAAA,KAAC2B,EAAAA,IAAM,CACLC,GAAI,mBACJC,KAAK,SACLZ,QAAQ,aACRa,SAAUtD,IAAemB,EACzB4B,MAAO,CAAEU,WAAY,GACrBD,MAAO,mBAMR,C","sources":["screens/Console/Tenants/TenantDetails/TenantYAML.tsx"],"sourcesContent":["// This file is part of MinIO Operator\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useEffect, useState } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { useNavigate } from \"react-router-dom\";\nimport {\n Button,\n CodeEditor,\n Grid,\n InformativeMessage,\n ProgressBar,\n SectionTitle,\n} from \"mds\";\nimport api from \"../../../../common/api\";\nimport { ErrorResponseHandler } from \"../../../../common/types\";\nimport { setModalErrorSnackMessage } from \"../../../../systemSlice\";\nimport { AppState, useAppDispatch } from \"../../../../store\";\nimport { getTenantAsync } from \"../thunks/tenantDetailsAsync\";\n\ninterface ITenantYAML {\n yaml: string;\n}\n\nconst TenantYAML = () => {\n const dispatch = useAppDispatch();\n const navigate = useNavigate();\n\n const tenant = useSelector((state: AppState) => state.tenants.currentTenant);\n const namespace = useSelector(\n (state: AppState) => state.tenants.currentNamespace,\n );\n\n const [addLoading, setAddLoading] = useState(false);\n const [loading, setLoading] = useState(false);\n const [tenantYaml, setTenantYaml] = useState(\"\");\n const [errorMessage, setErrorMessage] = useState(\"\");\n\n const updateTenant = (event: React.FormEvent) => {\n event.preventDefault();\n if (addLoading) {\n return;\n }\n setAddLoading(true);\n setErrorMessage(\"\");\n api\n .invoke(\"PUT\", `/api/v1/namespaces/${namespace}/tenants/${tenant}/yaml`, {\n yaml: tenantYaml,\n })\n .then(() => {\n setAddLoading(false);\n dispatch(getTenantAsync());\n setErrorMessage(\"\");\n navigate(`/namespaces/${namespace}/tenants/${tenant}/summary`);\n })\n .catch((err: ErrorResponseHandler) => {\n setAddLoading(false);\n const errMessage = err?.message || \"\" || err.errorMessage;\n setErrorMessage(errMessage);\n });\n };\n\n useEffect(() => {\n if (namespace && tenant) {\n api\n .invoke(\"GET\", `/api/v1/namespaces/${namespace}/tenants/${tenant}/yaml`)\n .then((res: ITenantYAML) => {\n setLoading(false);\n setTenantYaml(res.yaml);\n })\n .catch((err: ErrorResponseHandler) => {\n setLoading(false);\n dispatch(setModalErrorSnackMessage(err));\n });\n }\n }, [tenant, namespace, dispatch]);\n\n useEffect(() => {}, []);\n\n const validSave = tenantYaml.trim() !== \"\";\n\n return (\n \n {addLoading ||\n (loading && (\n \n \n \n ))}\n\n {!loading && (\n ) => {\n e.preventDefault();\n updateTenant(e);\n }}\n >\n \n \n Tenant Specification\n \n {errorMessage ? (\n \n \n \n ) : null}\n \n {\n setTenantYaml(value);\n }}\n editorHeight={\"550px\"}\n />\n \n \n {\n navigate(\n `/namespaces/${namespace}/tenants/${tenant}/summary`,\n );\n }}\n label={\"Cancel\"}\n />\n \n \n \n \n )}\n \n );\n};\n\nexport default TenantYAML;\n"],"names":["TenantYAML","dispatch","useAppDispatch","navigate","useNavigate","tenant","useSelector","state","tenants","currentTenant","namespace","currentNamespace","addLoading","setAddLoading","useState","loading","setLoading","tenantYaml","setTenantYaml","errorMessage","setErrorMessage","useEffect","api","invoke","concat","then","res","yaml","catch","err","setModalErrorSnackMessage","validSave","trim","_jsxs","Fragment","children","_jsx","Grid","item","xs","ProgressBar","noValidate","autoComplete","onSubmit","e","preventDefault","getTenantAsync","errMessage","message","container","SectionTitle","InformativeMessage","title","variant","CodeEditor","value","mode","onChange","editorHeight","style","display","justifyContent","paddingTop","Button","id","type","disabled","onClick","label","marginLeft"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/122.c782a33a.chunk.js","mappings":"2NAqCA,MAuIA,EAvImBA,KACjB,MAAMC,GAAWC,EAAAA,EAAAA,MACXC,GAAWC,EAAAA,EAAAA,MAEXC,GAASC,EAAAA,EAAAA,KAAaC,GAAoBA,EAAMC,QAAQC,gBACxDC,GAAYJ,EAAAA,EAAAA,KACfC,GAAoBA,EAAMC,QAAQG,oBAG9BC,EAAYC,IAAiBC,EAAAA,EAAAA,WAAkB,IAC/CC,EAASC,IAAcF,EAAAA,EAAAA,WAAkB,IACzCG,EAAYC,IAAiBJ,EAAAA,EAAAA,UAAiB,KAC9CK,EAAcC,IAAmBN,EAAAA,EAAAA,UAAiB,KA0BzDO,EAAAA,EAAAA,YAAU,KACJX,GAAaL,GACfiB,EAAAA,EACGC,OAAO,MAAM,sBAADC,OAAwBd,EAAS,aAAAc,OAAYnB,EAAM,UAC/DoB,MAAMC,IACLV,GAAW,GACXE,EAAcQ,EAAIC,KAAK,IAExBC,OAAOC,IACNb,GAAW,GACXf,GAAS6B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A,KAACC,EAAAA,IAAI,CAACC,MAAI,EAACC,GAAI,GAAGJ,UAChBC,EAAAA,EAAAA,KAACkB,EAAAA,IAAU,CACTC,MAAOtC,EACPuC,KAAM,OACNC,SAAWF,IACTrC,EAAcqC,EAAM,EAEtBG,aAAc,aAGlBzB,EAAAA,EAAAA,MAACI,EAAAA,IAAI,CACHC,MAAI,EACJC,GAAI,GACJoB,MAAO,CACLC,QAAS,OACTC,eAAgB,WAChBC,WAAY,IACZ3B,SAAA,EAEFC,EAAAA,EAAAA,KAAC2B,EAAAA,IAAM,CACLC,GAAI,qBACJC,KAAK,SACLZ,QAAQ,UACRa,SAAUtD,EACVuD,QAASA,KACPhE,EAAS,eAADqB,OACSd,EAAS,aAAAc,OAAYnB,EAAM,YAC3C,EAEH+D,MAAO,YAEThC,EAAAA,EAAAA,KAAC2B,EAAAA,IAAM,CACLC,GAAI,mBACJC,KAAK,SACLZ,QAAQ,aACRa,SAAUtD,IAAemB,EACzB4B,MAAO,CAAEU,WAAY,GACrBD,MAAO,mBAMR,C","sources":["screens/Console/Tenants/TenantDetails/TenantYAML.tsx"],"sourcesContent":["// This file is part of MinIO Operator\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useEffect, useState } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { useNavigate } from \"react-router-dom\";\nimport {\n Button,\n CodeEditor,\n Grid,\n InformativeMessage,\n ProgressBar,\n SectionTitle,\n} from \"mds\";\nimport api from \"../../../../common/api\";\nimport { ErrorResponseHandler } from \"../../../../common/types\";\nimport { setModalErrorSnackMessage } from \"../../../../systemSlice\";\nimport { AppState, useAppDispatch } from \"../../../../store\";\nimport { getTenantAsync } from \"../thunks/tenantDetailsAsync\";\n\ninterface ITenantYAML {\n yaml: string;\n}\n\nconst TenantYAML = () => {\n const dispatch = useAppDispatch();\n const navigate = useNavigate();\n\n const tenant = useSelector((state: AppState) => state.tenants.currentTenant);\n const namespace = useSelector(\n (state: AppState) => state.tenants.currentNamespace,\n );\n\n const [addLoading, setAddLoading] = useState(false);\n const [loading, setLoading] = useState(false);\n const [tenantYaml, setTenantYaml] = useState(\"\");\n const [errorMessage, setErrorMessage] = useState(\"\");\n\n const updateTenant = (event: React.FormEvent) => {\n event.preventDefault();\n if (addLoading) {\n return;\n }\n setAddLoading(true);\n setErrorMessage(\"\");\n api\n .invoke(\"PUT\", `/api/v1/namespaces/${namespace}/tenants/${tenant}/yaml`, {\n yaml: tenantYaml,\n })\n .then(() => {\n setAddLoading(false);\n dispatch(getTenantAsync());\n setErrorMessage(\"\");\n navigate(`/namespaces/${namespace}/tenants/${tenant}/summary`);\n })\n .catch((err: ErrorResponseHandler) => {\n setAddLoading(false);\n const errMessage = err?.message || \"\" || err.errorMessage;\n setErrorMessage(errMessage);\n });\n };\n\n useEffect(() => {\n if (namespace && tenant) {\n api\n .invoke(\"GET\", `/api/v1/namespaces/${namespace}/tenants/${tenant}/yaml`)\n .then((res: ITenantYAML) => {\n setLoading(false);\n setTenantYaml(res.yaml);\n })\n .catch((err: ErrorResponseHandler) => {\n setLoading(false);\n dispatch(setModalErrorSnackMessage(err));\n });\n }\n }, [tenant, namespace, dispatch]);\n\n useEffect(() => {}, []);\n\n const validSave = tenantYaml.trim() !== \"\";\n\n return (\n \n {addLoading ||\n (loading && (\n \n \n \n ))}\n\n {!loading && (\n ) => {\n e.preventDefault();\n updateTenant(e);\n }}\n >\n \n \n Tenant Specification\n \n {errorMessage ? (\n \n \n \n ) : null}\n \n {\n setTenantYaml(value);\n }}\n editorHeight={\"550px\"}\n />\n \n \n {\n navigate(\n `/namespaces/${namespace}/tenants/${tenant}/summary`,\n );\n }}\n label={\"Cancel\"}\n />\n \n \n \n \n )}\n \n );\n};\n\nexport default TenantYAML;\n"],"names":["TenantYAML","dispatch","useAppDispatch","navigate","useNavigate","tenant","useSelector","state","tenants","currentTenant","namespace","currentNamespace","addLoading","setAddLoading","useState","loading","setLoading","tenantYaml","setTenantYaml","errorMessage","setErrorMessage","useEffect","api","invoke","concat","then","res","yaml","catch","err","setModalErrorSnackMessage","validSave","trim","_jsxs","Fragment","children","_jsx","Grid","item","xs","ProgressBar","noValidate","autoComplete","onSubmit","e","preventDefault","getTenantAsync","errMessage","message","container","SectionTitle","InformativeMessage","title","variant","CodeEditor","value","mode","onChange","editorHeight","style","display","justifyContent","paddingTop","Button","id","type","disabled","onClick","label","marginLeft"],"sourceRoot":""} \ No newline at end of file diff --git a/web-app/build/static/js/140.49921fb9.chunk.js b/web-app/build/static/js/140.49921fb9.chunk.js deleted file mode 100644 index 5736f54539d..00000000000 --- a/web-app/build/static/js/140.49921fb9.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[140],{5140:(e,n,t)=>{t.r(n),t.d(n,{default:()=>p});var c=t(2791),a=t(9945),o=t(7689),s=t(1087),r=t(6181),l=t.n(r),i=t(6444),u=t(9435),d=t(184);const h=i.ZP.div((e=>{let{theme:n}=e;return{position:"absolute",left:0,top:80,height:"calc(100vh - 81px)",width:"100%",borderTop:"1px solid ".concat(l()(n,"borderColor","#E2E2E2")),"& .loader":{width:100,margin:"auto",marginTop:80},"& .iframeStyle":{border:0,position:"absolute",height:"calc(100vh - 77px)",width:"100%"}}})),p=()=>{const e=(0,o.s0)(),n=(0,o.UO)(),[t,r]=(0,c.useState)(!0),l=n.tenantName||"",i=n.tenantNamespace||"",p=c.useRef(null);return(0,d.jsxs)(c.Fragment,{children:[(0,d.jsx)(u.Z,{label:(0,d.jsxs)(c.Fragment,{children:[(0,d.jsx)(s.rU,{to:"/tenants",children:"Tenants"})," > ",(0,d.jsx)(s.rU,{to:"/namespaces/".concat(i,"/tenants/").concat(l),children:l})," > Management"]}),actions:(0,d.jsxs)(c.Fragment,{children:[(0,d.jsx)(a.hU,{onClick:()=>{if(null!==p&&null!==p.current&&null!==p.current.contentDocument){const e=p.current.contentDocument.location.toString();let n="&";if(e.indexOf("?")<0&&(n="?"),e.indexOf("cp=y")<0){const t="".concat(e).concat(n,"cp=y");p.current.contentDocument.location.replace(t)}else p.current.contentDocument.location.reload()}},size:"large",children:(0,d.jsx)(a.DuK,{})}),(0,d.jsx)(a.hU,{onClick:()=>{e("/namespaces/".concat(i,"/tenants/").concat(l))},size:"large",children:(0,d.jsx)(a.wXn,{})})]})}),(0,d.jsxs)(h,{children:[t&&(0,d.jsx)(a.xuv,{className:"loader",children:(0,d.jsx)(a.aNw,{})}),(0,d.jsx)("iframe",{ref:p,className:"iframeStyle",title:"metrics",src:"/api/hop/".concat(i,"/").concat(l,"/?cp=y"),onLoad:e=>{r(!1)}})]})]})}}}]); -//# sourceMappingURL=140.49921fb9.chunk.js.map \ No newline at end of file diff --git a/web-app/build/static/js/145.96ed8557.chunk.js b/web-app/build/static/js/145.96ed8557.chunk.js deleted file mode 100644 index 2fa87a3958e..00000000000 --- a/web-app/build/static/js/145.96ed8557.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[145],{9145:(e,n,t)=>{t.r(n),t.d(n,{default:()=>b});var i=t(2791),s=t(9945),o=t(9434),a=t(1320),c=t(6444),l=t(9779),r=t(1087),x=t(6181),d=t.n(x),m=t(5248),u=t(7454),f=t(184);const h=c.ZP.div((e=>{let{theme:n}=e;return{"& .licenseInfoValue":{textTransform:"none",fontSize:14,fontWeight:"bold"},"&.licenseContainer":{position:"relative",padding:"20px 52px 0px 28px",background:d()(n,"signalColors.info","#2781B0"),boxShadow:"0px 3px 7px #00000014","& h2":{color:d()(n,"bgColor","#fff"),marginBottom:67},"& a":{textDecoration:"none"},"& h3":{color:d()(n,"bgColor","#fff"),marginBottom:"30px",fontWeight:"bold"},"& h6":{color:"#FFFFFF !important"}},"& .licenseInfo":{color:d()(n,"bgColor","#fff"),position:"relative"},"& .licenseInfoTitle":{textTransform:"none",color:d()(n,"mutedText","#87888d"),fontSize:11},"& .verifiedIcon":{width:96,position:"absolute",right:0,bottom:29},"& .noUnderLine":{textDecoration:"none"}}})),v=e=>{var n,t;let{tenant:o,loadingActivateProduct:a,loadingLicenseInfo:c,licenseInfo:x,activateProduct:d}=e;const v=null!==o&&void 0!==o&&o.subnet_license?l.ou.fromISO(null===(n=o.subnet_license)||void 0===n?void 0:n.expires_at):l.ou.now();return(0,f.jsx)(h,{className:o&&o.subnet_license?"licenseContainer":"",children:o&&o.subnet_license?(0,f.jsx)(i.Fragment,{children:(0,f.jsxs)(s.rjZ,{container:!0,className:"licenseInfo",children:[(0,f.jsxs)(s.rjZ,{item:!0,xs:6,children:[(0,f.jsx)(s.xuv,{sx:{marginBottom:12},className:"licenseInfoTitle",children:"License"}),(0,f.jsx)(s.xuv,{sx:{marginBottom:12},className:"licenseInfoValue",children:"Commercial License"}),(0,f.jsx)(s.xuv,{sx:{marginBottom:12},className:"licenseInfoTitle",children:"Organization"}),(0,f.jsx)(s.xuv,{sx:{marginBottom:12},className:"licenseInfoValue",children:o.subnet_license.organization}),(0,f.jsx)(s.xuv,{sx:{marginBottom:12},className:"licenseInfoTitle",children:"Registered Capacity"}),(0,f.jsx)(s.xuv,{sx:{marginBottom:12},className:"licenseInfoValue",children:(0,m.ae)((1099511627776*((null===(t=o.subnet_license)||void 0===t?void 0:t.storage_capacity)||0)).toString(10))}),(0,f.jsx)(s.xuv,{sx:{marginBottom:12},className:"licenseInfoTitle",children:"Expiry Date"}),(0,f.jsx)(s.xuv,{sx:{marginBottom:12},className:"licenseInfoValue",children:v.toFormat("yyyy-MM-dd")})]}),(0,f.jsxs)(s.rjZ,{item:!0,xs:6,children:[(0,f.jsx)(s.xuv,{sx:{marginBottom:12},className:"licenseInfoTitle",children:"Subscription Plan"}),(0,f.jsx)(s.xuv,{sx:{marginBottom:12},className:"licenseInfoValue",children:o.subnet_license.plan}),(0,f.jsx)(s.xuv,{sx:{marginBottom:12},className:"licenseInfoTitle",children:"Requestor"}),(0,f.jsx)(s.xuv,{sx:{marginBottom:12},className:"licenseInfoValue",children:o.subnet_license.email})]}),(0,f.jsx)("img",{className:"verifiedIcon",src:"/verified.svg",alt:"verified"})]})}):!c&&(0,f.jsxs)(s.xuv,{withBorders:!0,sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:[!x&&(0,f.jsx)(r.rU,{to:"/license",onClick:e=>{e.stopPropagation()},className:"noUnderLine",children:(0,f.jsx)(u.Z,{tooltip:"Activate Product",children:(0,f.jsx)(s.zxk,{id:"activate-product",label:"Activate Product",onClick:()=>!1,variant:"callAction"})})}),x&&o&&(0,f.jsx)(u.Z,{tooltip:"Attach License",children:(0,f.jsx)(s.zxk,{id:"attach-license",disabled:a,label:"Attach License",onClick:()=>d(o.namespace,o.name),variant:"callAction"})})]})})};var g=t(1207),p=t(7995),j=t(7238);const b=()=>{const e=(0,a.TL)(),n=(0,o.v9)((e=>e.tenants.loadingTenant)),t=(0,o.v9)((e=>e.tenants.tenantInfo)),[c,l]=(0,i.useState)(),[r,x]=(0,i.useState)(!0),[d,m]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{r&&g.Z.invoke("GET","/api/v1/subscription/info").then((e=>{l(e),x(!1)})).catch((e=>{x(!1)}))}),[r]),(0,f.jsxs)(i.Fragment,{children:[(0,f.jsx)(s.NZf,{separator:!0,sx:{marginBottom:15},children:"License"}),n?(0,f.jsx)(s.xuv,{sx:{textAlign:"center"},children:(0,f.jsx)(s.aNw,{})}):(0,f.jsx)(i.Fragment,{children:t&&(0,f.jsx)(s.rjZ,{container:!0,children:(0,f.jsx)(s.rjZ,{item:!0,xs:12,children:(0,f.jsx)(v,{tenant:t,loadingLicenseInfo:r,loadingActivateProduct:d,licenseInfo:c,activateProduct:(n,t)=>{d||(m(!0),g.Z.invoke("POST","/api/v1/subscription/namespaces/".concat(n,"/tenants/").concat(t,"/activate"),{}).then((()=>{m(!1),e((0,j.V2)(!0)),x(!0)})).catch((n=>{m(!1),e((0,p.Ih)(n))})))}})})})})]})}}}]); -//# sourceMappingURL=145.96ed8557.chunk.js.map \ No newline at end of file diff --git a/web-app/build/static/js/162.58762974.chunk.js b/web-app/build/static/js/162.58762974.chunk.js deleted file mode 100644 index 906ccef304a..00000000000 --- a/web-app/build/static/js/162.58762974.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[162],{4162:(e,t,n)=>{n.r(t),n.d(t,{default:()=>ae});var a=n(2791),r=n(6181),i=n.n(r),s=n(9945),l=n(9434),o=n(7689),c=n(5884),d=n(6078),u=n(6773),m=n(1320),p=n(6444),g=n(4741),x=n(968),h=n(7),v=n(184);const y=p.ZP.div((()=>({"& .configSectionItem":{marginRight:15,marginBottom:15},"& .containerItem":{marginRight:15},"& .responsiveSectionItem":{"&.doubleElement":{display:"flex","& div":{flexGrow:1}},"@media (max-width: 900px)":{flexFlow:"column",alignItems:"flex-start","& div > div":{marginBottom:5,marginRight:0}}},"& .wrapperContainer":{display:"flex",alignItems:"center"},"& .envVarRow":{display:"flex",alignItems:"center",justifyContent:"flex-start","&:last-child":{borderBottom:0},"@media (max-width: 900px)":{flex:1,"& div label":{minWidth:50}}},"& .fileItem":{marginRight:10,display:"flex","& div label":{minWidth:50},"@media (max-width: 900px)":{flexFlow:"column"}},"& .rowActions":{display:"flex",justifyContent:"flex-end","@media (max-width: 900px)":{flex:1}},"& .overlayAction":{marginLeft:10,marginBottom:15}}))),f=()=>{const e=(0,m.TL)(),t=(0,l.v9)((e=>e.createTenant.fields.configure.exposeMinIO)),n=(0,l.v9)((e=>e.createTenant.fields.configure.exposeConsole)),r=(0,l.v9)((e=>e.createTenant.fields.configure.exposeSFTP)),i=(0,l.v9)((e=>e.createTenant.fields.configure.setDomains)),o=(0,l.v9)((e=>e.createTenant.fields.configure.consoleDomain)),c=(0,l.v9)((e=>e.createTenant.fields.configure.minioDomains)),d=(0,l.v9)((e=>e.createTenant.fields.configure.tenantCustom)),p=(0,l.v9)((e=>e.createTenant.fields.configure.envVars)),f=(0,l.v9)((e=>e.createTenant.fields.configure.tenantSecurityContext)),j=(0,l.v9)((e=>e.createTenant.fields.configure.customRuntime)),C=(0,l.v9)((e=>e.createTenant.fields.configure.runtimeClassName)),[b,_]=(0,a.useState)({}),S=(0,a.useCallback)(((t,n)=>{e((0,u.HM)({pageName:"configure",field:t,value:n}))}),[e]);(0,a.useEffect)((()=>{let t=[];if(d&&(t=[{fieldKey:"tenant_securityContext_runAsUser",required:!0,value:f.runAsUser,customValidation:""===f.runAsUser||parseInt(f.runAsUser)<0,customValidationMessage:"runAsUser must be present and be 0 or more"},{fieldKey:"tenant_securityContext_runAsGroup",required:!0,value:f.runAsGroup,customValidation:""===f.runAsGroup||parseInt(f.runAsGroup)<0,customValidationMessage:"runAsGroup must be present and be 0 or more"},{fieldKey:"tenant_securityContext_fsGroup",required:!0,value:f.fsGroup,customValidation:""===f.fsGroup||parseInt(f.fsGroup)<0,customValidationMessage:"fsGroup must be present and be 0 or more"}]),i){const e=c.map(((e,t)=>({fieldKey:"minio-domain-".concat(t.toString()),required:!1,value:e,pattern:/^(https?):\/\/([a-zA-Z0-9\-.]+)(:[0-9]+)?$/,customPatternMessage:"MinIO domain is not in the form of http|https://subdomain.domain"})));t=[...t,...e,{fieldKey:"console_domain",required:!1,value:o,pattern:/^(https?):\/\/([a-zA-Z0-9\-.]+)(:[0-9]+)?(\/[a-zA-Z0-9\-./]*)?$/,customPatternMessage:"Console domain is not in the form of http|https://subdomain.domain:port/subpath1/subpath2"}]}const n=(0,x.R)(t);e((0,u.NO)({pageName:"configure",valid:0===Object.keys(n).length})),_(n)}),[e,d,f,i,o,c]);const k=e=>{_((0,g.h)(b,e))};return(0,v.jsx)(y,{children:(0,v.jsxs)(s.ltY,{withBorders:!1,containerPadding:!1,children:[(0,v.jsxs)(s.xuv,{className:"inputItem",children:[(0,v.jsx)(h.Z,{children:"Configure"}),(0,v.jsx)("span",{className:"muted",children:"Basic configurations for tenant management"})]}),(0,v.jsxs)(s.xuv,{className:"inputItem",children:[(0,v.jsx)("h4",{style:{margin:"10px 0px 0px"},children:"Services"}),(0,v.jsx)("span",{className:"muted",children:"Whether the tenant's services should request an external IP via LoadBalancer service type."})]}),(0,v.jsx)(s.rsf,{value:"expose_minio",id:"expose_minio",name:"expose_minio",checked:t,onChange:e=>{const t=e.target.checked;S("exposeMinIO",t)},label:"Expose MinIO Service"}),(0,v.jsx)(s.rsf,{value:"expose_console",id:"expose_console",name:"expose_console",checked:n,onChange:e=>{const t=e.target.checked;S("exposeConsole",t)},label:"Expose Console Service"}),(0,v.jsx)(s.rsf,{value:"expose_sftp",id:"expose_sftp",name:"expose_sftp",checked:r,onChange:e=>{const t=e.target.checked;S("exposeSFTP",t)},label:"Expose SFTP Service"}),(0,v.jsx)(s.rsf,{value:"custom_domains",id:"custom_domains",name:"custom_domains",checked:i,onChange:e=>{const t=e.target.checked;S("setDomains",t)},label:"Set Custom Domains"}),i&&(0,v.jsx)(s.rjZ,{item:!0,xs:12,className:"inputItem",children:(0,v.jsxs)("fieldset",{children:[(0,v.jsx)("legend",{children:"Custom Domains for MinIO"}),(0,v.jsxs)(s.rjZ,{item:!0,xs:12,className:"configSectionItem",children:[(0,v.jsx)(s.xuv,{className:"inputItem",children:(0,v.jsx)(s.Wzg,{id:"console_domain",name:"console_domain",onChange:e=>{S("consoleDomain",e.target.value),k("tenant_securityContext_runAsUser")},label:"Console Domain",value:o,placeholder:"Eg. http://subdomain.domain:port/subpath1/subpath2",error:b.console_domain||""})}),(0,v.jsxs)(s.xuv,{children:[(0,v.jsx)("h4",{children:"MinIO Domains"}),(0,v.jsx)(s.xuv,{className:"responsiveSectionItem",children:c.map(((t,n)=>(0,v.jsxs)(s.xuv,{className:"containerItem wrapperContainer",children:[(0,v.jsx)(s.Wzg,{id:"minio-domain-".concat(n.toString()),name:"minio-domain-".concat(n.toString()),onChange:e=>{((e,t)=>{const n=[...c];n[t]=e,S("minioDomains",n)})(e.target.value,n)},label:"MinIO Domain ".concat(n+1),value:t,placeholder:"Eg. http://subdomain.domain",error:b["minio-domain-".concat(n.toString())]||""}),(0,v.jsx)(s.xuv,{className:"overlayAction",children:(0,v.jsx)(s.hU,{size:"small",onClick:()=>e((0,u.x_)()),disabled:n!==c.length-1,children:(0,v.jsx)(s.dtP,{})})}),(0,v.jsx)(s.xuv,{className:"overlayAction",children:(0,v.jsx)(s.hU,{size:"small",onClick:()=>e((0,u.JL)(n)),disabled:c.length<=1,children:(0,v.jsx)(s.HFL,{})})})]},"minio-domain-key-".concat(n.toString()))))})]})]})]})}),(0,v.jsx)(s.rsf,{value:"tenantConfig",id:"tenant_configuration",name:"tenant_configuration",checked:d,onChange:e=>{const t=e.target.checked;S("tenantCustom",t)},label:"Security Context"}),d&&(0,v.jsx)(s.rjZ,{item:!0,xs:12,className:"inputItem",children:(0,v.jsxs)("fieldset",{children:[(0,v.jsx)("legend",{children:"Security Context for MinIO"}),(0,v.jsx)(s.rjZ,{item:!0,xs:12,className:"configSectionItem",children:(0,v.jsxs)(s.xuv,{className:"responsiveSectionItem doubleElement",children:[(0,v.jsx)(s.xuv,{className:"containerItem",children:(0,v.jsx)(s.Wzg,{type:"number",id:"tenant_securityContext_runAsUser",name:"tenant_securityContext_runAsUser",onChange:e=>{S("tenantSecurityContext",{...f,runAsUser:e.target.value}),k("tenant_securityContext_runAsUser")},label:"Run As User",value:f.runAsUser,required:!0,error:b.tenant_securityContext_runAsUser||"",min:"0"})}),(0,v.jsx)(s.xuv,{className:"containerItem",children:(0,v.jsx)(s.Wzg,{type:"number",id:"tenant_securityContext_runAsGroup",name:"tenant_securityContext_runAsGroup",onChange:e=>{S("tenantSecurityContext",{...f,runAsGroup:e.target.value}),k("tenant_securityContext_runAsGroup")},label:"Run As Group",value:f.runAsGroup,required:!0,error:b.tenant_securityContext_runAsGroup||"",min:"0"})})]})}),(0,v.jsx)("br",{}),(0,v.jsx)(s.rjZ,{item:!0,xs:12,className:"configSectionItem",children:(0,v.jsxs)(s.xuv,{className:"responsiveSectionItem doubleElement",children:[(0,v.jsx)(s.xuv,{className:"containerItem",children:(0,v.jsx)(s.Wzg,{type:"number",id:"tenant_securityContext_fsGroup",name:"tenant_securityContext_fsGroup",onChange:e=>{S("tenantSecurityContext",{...f,fsGroup:e.target.value}),k("tenant_securityContext_fsGroup")},label:"FsGroup",value:f.fsGroup,required:!0,error:b.tenant_securityContext_fsGroup||"",min:"0"})}),(0,v.jsx)(s.xuv,{className:"containerItem",children:(0,v.jsx)(s.PhF,{label:"FsGroupChangePolicy",id:"securityContext_fsGroupChangePolicy",name:"securityContext_fsGroupChangePolicy",value:f.fsGroupChangePolicy,onChange:e=>{S("tenantSecurityContext",{...f,fsGroupChangePolicy:e})},options:[{label:"Always",value:"Always"},{label:"OnRootMismatch",value:"OnRootMismatch"}]})})]})}),(0,v.jsx)("br",{}),(0,v.jsx)(s.rjZ,{item:!0,xs:12,className:"configSectionItem",children:(0,v.jsx)(s.rsf,{value:"tenantSecurityContextRunAsNonRoot",id:"tenant_securityContext_runAsNonRoot",name:"tenant_securityContext_runAsNonRoot",checked:f.runAsNonRoot,onChange:e=>{const t=e.target.checked;S("tenantSecurityContext",{...f,runAsNonRoot:t})},label:"Do not run as Root"})})]})}),(0,v.jsx)(s.rsf,{value:"customRuntime",id:"tenant_custom_runtime",name:"tenant_custom_runtime",checked:j,onChange:e=>{const t=e.target.checked;S("customRuntime",t)},label:"Custom Runtime Configurations"}),j&&(0,v.jsx)(s.rjZ,{item:!0,xs:12,className:"inputItem",children:(0,v.jsxs)("fieldset",{children:[(0,v.jsx)("legend",{children:"Custom Runtime Configurations"}),(0,v.jsx)(s.Wzg,{id:"tenant_runtime_runtimeClassName",name:"tenant_runtime_runtimeClassName",onChange:e=>{S("runtimeClassName",e.target.value),k("tenant_runtime_runtimeClassName")},label:"Runtime Class Name",value:C,error:b.tenant_runtime_runtimeClassName||""})]})}),(0,v.jsx)("hr",{}),(0,v.jsxs)(s.xuv,{className:"inputItem",children:[(0,v.jsx)(h.Z,{children:"Additional Environment Variables"}),(0,v.jsx)("span",{className:"muted",children:"Define additional environment variables to be used by your MinIO pods"})]}),(0,v.jsx)(s.rjZ,{container:!0,children:p.map(((t,n)=>(0,v.jsxs)(s.rjZ,{item:!0,xs:12,className:"formFieldRow envVarRow",children:[(0,v.jsx)(s.rjZ,{item:!0,xs:5,className:"fileItem",children:(0,v.jsx)(s.Wzg,{id:"env_var_key",name:"env_var_key",label:"Key",value:t.key,onChange:t=>{const a=[...p];e((0,u.Ct)(a.map(((e,a)=>a===n?{key:t.target.value,value:e.value}:e))))},index:n},"env_var_key_".concat(n.toString()))}),(0,v.jsx)(s.rjZ,{item:!0,xs:5,className:"fileItem",children:(0,v.jsx)(s.Wzg,{id:"env_var_value",name:"env_var_value",label:"Value",value:t.value,onChange:t=>{const a=[...p];e((0,u.Ct)(a.map(((e,a)=>a===n?{key:e.key,value:t.target.value}:e))))},index:n},"env_var_value_".concat(n.toString()))}),(0,v.jsxs)(s.rjZ,{item:!0,xs:2,className:"rowActions",children:[(0,v.jsx)(s.xuv,{className:"overlayAction",children:(0,v.jsx)(s.hU,{size:"small",onClick:()=>{const t=[...p];t.push({key:"",value:""}),e((0,u.Ct)(t))},disabled:n!==p.length-1,children:(0,v.jsx)(s.dtP,{})})}),(0,v.jsx)(s.xuv,{className:"overlayAction",children:(0,v.jsx)(s.hU,{size:"small",onClick:()=>{const t=p.filter(((e,t)=>t!==n));e((0,u.Ct)(t))},disabled:p.length<=1,children:(0,v.jsx)(s.HFL,{})})})]})]},"tenant-envVar-".concat(n.toString()))))})]})})},j=()=>{const e=(0,m.TL)(),t=(0,l.v9)((e=>e.createTenant.fields.identityProvider.idpSelection)),n=(0,l.v9)((e=>e.createTenant.fields.identityProvider.ADURL)),r=(0,l.v9)((e=>e.createTenant.fields.identityProvider.ADSkipTLS)),i=(0,l.v9)((e=>e.createTenant.fields.identityProvider.ADServerInsecure)),o=(0,l.v9)((e=>e.createTenant.fields.identityProvider.ADGroupSearchBaseDN)),c=(0,l.v9)((e=>e.createTenant.fields.identityProvider.ADGroupSearchFilter)),d=(0,l.v9)((e=>e.createTenant.fields.identityProvider.ADUserDNs)),p=(0,l.v9)((e=>e.createTenant.fields.identityProvider.ADGroupDNs)),h=(0,l.v9)((e=>e.createTenant.fields.identityProvider.ADLookupBindDN)),y=(0,l.v9)((e=>e.createTenant.fields.identityProvider.ADLookupBindPassword)),f=(0,l.v9)((e=>e.createTenant.fields.identityProvider.ADUserDNSearchBaseDN)),j=(0,l.v9)((e=>e.createTenant.fields.identityProvider.ADUserDNSearchFilter)),C=(0,l.v9)((e=>e.createTenant.fields.identityProvider.ADServerStartTLS)),[b,_]=(0,a.useState)({}),S=(0,a.useCallback)(((t,n)=>{e((0,u.HM)({pageName:"identityProvider",field:t,value:n}))}),[e]),k=e=>{_((0,g.h)(b,e))};return(0,a.useEffect)((()=>{let a=[];"AD"===t&&(a=[...a,{fieldKey:"AD_URL",required:!0,value:n},{fieldKey:"ad_lookupBindDN",required:!0,value:h}]);const r=(0,x.R)(a);e((0,u.NO)({pageName:"identityProvider",valid:0===Object.keys(r).length})),_(r)}),[h,t,n,o,c,d,p,e]),(0,v.jsxs)(s.ltY,{withBorders:!1,containerPadding:!1,sx:{"& .adUserDnRows":{display:"flex"},"& .buttonTray":{display:"flex",gap:10,alignItems:"center",marginLeft:10,marginBottom:10}},children:[(0,v.jsx)(s.Wzg,{id:"AD_URL",name:"AD_URL",onChange:e=>{S("ADURL",e.target.value),k("AD_URL")},label:"LDAP Server Address",value:n,placeholder:"ldap-server:636",error:b.AD_URL||"",required:!0}),(0,v.jsx)(s.rsf,{value:"ad_skipTLS",id:"ad_skipTLS",name:"ad_skipTLS",checked:r,onChange:e=>{const t=e.target.checked;S("ADSkipTLS",t)},label:"Skip TLS Verification"}),(0,v.jsx)(s.rsf,{value:"ad_serverInsecure",id:"ad_serverInsecure",name:"ad_serverInsecure",checked:i,onChange:e=>{const t=e.target.checked;S("ADServerInsecure",t)},label:"Server Insecure"}),i?(0,v.jsxs)(s.xuv,{className:"inputItem",children:[(0,v.jsx)("span",{className:"error",children:"Warning: All traffic with Active Directory will be unencrypted"}),(0,v.jsx)("br",{})]}):null,(0,v.jsx)(s.rsf,{value:"ad_serverStartTLS",id:"ad_serverStartTLS",name:"ad_serverStartTLS",checked:C,onChange:e=>{const t=e.target.checked;S("ADServerStartTLS",t)},label:"Start TLS connection to AD/LDAP server"}),(0,v.jsx)(s.Wzg,{id:"ad_lookupBindDN",name:"ad_lookupBindDN",onChange:e=>{S("ADLookupBindDN",e.target.value),k("ad_lookupBindDN")},label:"Lookup Bind DN",value:h,placeholder:"cn=admin,dc=min,dc=io",error:b.ad_lookupBindDN||"",required:!0}),(0,v.jsx)(s.Wzg,{id:"ad_lookupBindPassword",name:"ad_lookupBindPassword",onChange:e=>{S("ADLookupBindPassword",e.target.value)},label:"Lookup Bind Password",value:y,placeholder:"admin"}),(0,v.jsx)(s.Wzg,{id:"ad_userDNSearchBaseDN",name:"ad_userDNSearchBaseDN",onChange:e=>{S("ADUserDNSearchBaseDN",e.target.value)},label:"User DN Search Base DN",value:f,placeholder:"dc=min,dc=io"}),(0,v.jsx)(s.Wzg,{id:"ad_userDNSearchFilter",name:"ad_userDNSearchFilter",onChange:e=>{S("ADUserDNSearchFilter",e.target.value)},label:"User DN Search Filter",value:j,placeholder:"(sAMAcountName=%s)"}),(0,v.jsx)(s.Wzg,{id:"ad_groupSearchBaseDN",name:"ad_groupSearchBaseDN",onChange:e=>{S("ADGroupSearchBaseDN",e.target.value)},label:"Group Search Base DN",value:o,placeholder:"ou=hwengg,dc=min,dc=io;ou=swengg,dc=min,dc=io"}),(0,v.jsx)(s.Wzg,{id:"ad_groupSearchFilter",name:"ad_groupSearchFilter",onChange:e=>{S("ADGroupSearchFilter",e.target.value)},label:"Group Search Filter",value:c,placeholder:"(&(objectclass=groupOfNames)(member=%s))"}),(0,v.jsxs)("fieldset",{className:"inputItem",style:{marginTop:10},children:[(0,v.jsx)("legend",{children:"List of user DNs (Distinguished Names) to be Tenant Administrators"}),d.map(((t,n)=>(0,v.jsx)(a.Fragment,{children:(0,v.jsxs)(s.xuv,{className:"adUserDnRows",children:[(0,v.jsx)(s.Wzg,{id:"ad-userdn-".concat(n.toString()),label:"",placeholder:"",name:"ad-userdn-".concat(n.toString()),value:d[n],onChange:t=>{e((0,u.hK)({index:n,userDN:t.target.value})),k("ad-userdn-".concat(n.toString()))},index:n,error:b["ad-userdn-".concat(n.toString())]||""},"csv-ad-userdn-".concat(n.toString())),(0,v.jsxs)(s.xuv,{className:"buttonTray",children:[(0,v.jsx)(s.ua7,{tooltip:"Add User","aria-label":"add",children:(0,v.jsx)(s.hU,{size:"small",onClick:()=>{e((0,u.Y$)())},children:(0,v.jsx)(s.dtP,{})})}),(0,v.jsx)(s.ua7,{tooltip:"Remove","aria-label":"add",children:(0,v.jsx)(s.hU,{size:"small",onClick:()=>{d.length>1&&e((0,u.GU)(n))},children:(0,v.jsx)(s.HFL,{})})})]})]})},"identityField-".concat(n.toString()))))]}),(0,v.jsxs)("fieldset",{className:"inputItem",children:[(0,v.jsx)("legend",{children:"List of group DNs (Distinguished Names) to be Tenant Administrators"}),p.map(((t,n)=>(0,v.jsx)(a.Fragment,{children:(0,v.jsxs)(s.xuv,{className:"adUserDnRows",children:[(0,v.jsx)(s.Wzg,{id:"ad-groupdn-".concat(n.toString()),label:"",placeholder:"",name:"ad-groupdn-".concat(n.toString()),value:p[n],onChange:t=>{e((0,u.in)({index:n,userDN:t.target.value})),k("ad-groupdn-".concat(n.toString()))},index:n,error:b["ad-groupdn-".concat(n.toString())]||""},"csv-ad-groupdn-".concat(n.toString())),(0,v.jsxs)(s.xuv,{className:"buttonTray",children:[(0,v.jsx)(s.ua7,{tooltip:"Add Group","aria-label":"add",children:(0,v.jsx)(s.hU,{size:"small",onClick:()=>{e((0,u.Fe)())},children:(0,v.jsx)(s.dtP,{})})}),(0,v.jsx)(s.ua7,{tooltip:"Remove","aria-label":"add",children:(0,v.jsx)(s.hU,{size:"small",onClick:()=>{p.length>1&&e((0,u.Hu)(n))},children:(0,v.jsx)(s.HFL,{})})})]})]})},"identityField-".concat(n.toString()))))]})]})},C=()=>{const e=(0,m.TL)(),t=(0,l.v9)((e=>e.createTenant.fields.identityProvider.idpSelection)),n=(0,l.v9)((e=>e.createTenant.fields.identityProvider.openIDConfigurationURL)),r=(0,l.v9)((e=>e.createTenant.fields.identityProvider.openIDClientID)),i=(0,l.v9)((e=>e.createTenant.fields.identityProvider.openIDSecretID)),o=(0,l.v9)((e=>e.createTenant.fields.identityProvider.openIDClaimName)),c=(0,l.v9)((e=>e.createTenant.fields.identityProvider.openIDScopes)),[d,p]=(0,a.useState)({}),h=(0,a.useCallback)(((t,n)=>{e((0,u.HM)({pageName:"identityProvider",field:t,value:n}))}),[e]),y=e=>{p((0,g.h)(d,e))};return(0,a.useEffect)((()=>{let a=[];"OpenID"===t&&(a=[...a,{fieldKey:"openID_CONFIGURATION_URL",required:!0,value:n},{fieldKey:"openID_clientID",required:!0,value:r},{fieldKey:"openID_secretID",required:!0,value:i},{fieldKey:"openID_claimName",required:!1,value:o}]);const s=(0,x.R)(a);e((0,u.NO)({pageName:"identityProvider",valid:0===Object.keys(s).length})),p(s)}),[t,r,i,n,o,e]),(0,v.jsxs)(s.ltY,{withBorders:!1,containerPadding:!1,children:[(0,v.jsx)(s.Wzg,{id:"openID_CONFIGURATION_URL",name:"openID_CONFIGURATION_URL",onChange:e=>{h("openIDConfigurationURL",e.target.value),y("openID_CONFIGURATION_URL")},label:"Configuration URL",value:n,placeholder:"https://your-identity-provider.com/.well-known/openid-configuration",error:d.openID_CONFIGURATION_URL||"",required:!0}),(0,v.jsx)(s.Wzg,{id:"openID_clientID",name:"openID_clientID",onChange:e=>{h("openIDClientID",e.target.value),y("openID_clientID")},label:"Client ID",value:r,error:d.openID_clientID||"",required:!0}),(0,v.jsx)(s.Wzg,{id:"openID_secretID",name:"openID_secretID",onChange:e=>{h("openIDSecretID",e.target.value),y("openID_secretID")},label:"Secret ID",value:i,error:d.openID_secretID||"",required:!0}),(0,v.jsx)(s.Wzg,{id:"openID_claimName",name:"openID_claimName",onChange:e=>{h("openIDClaimName",e.target.value),y("openID_claimName")},label:"Claim Name",value:o,placeholder:"policy",error:d.openID_claimName||""}),(0,v.jsx)(s.Wzg,{id:"openID_scopes",name:"openID_scopes",onChange:e=>{h("openIDScopes",e.target.value),y("openID_scopes")},label:"Scopes",value:c})]})},b=()=>{const e=(0,m.TL)(),t=(0,l.v9)((e=>e.createTenant.fields.identityProvider.idpSelection)),n=(0,l.v9)((e=>e.createTenant.fields.identityProvider.accessKeys)),r=(0,l.v9)((e=>e.createTenant.fields.identityProvider.secretKeys)),[i,o]=(0,a.useState)({}),c=e=>{o((0,g.h)(i,e))};return(0,a.useEffect)((()=>{let a=[];if("Built-in"===t){a=[...a];for(var i=0;i(0,v.jsx)(a.Fragment,{children:(0,v.jsxs)(s.xuv,{sx:{gridTemplateColumns:"auto auto 50px 50px",display:"grid",gap:10,marginBottom:10},children:[(0,v.jsx)(s.Wzg,{id:"accesskey-".concat(l.toString()),label:"",placeholder:"Access Key",name:"accesskey-".concat(l.toString()),value:n[l],onChange:t=>{e((0,u.ys)({index:l,accessKey:t.target.value})),c("accesskey-".concat(l.toString()))},index:l,error:i["accesskey-".concat(l.toString())]||""},"csv-accesskey-".concat(l.toString())),(0,v.jsx)(s.Wzg,{id:"secretkey-".concat(l.toString()),label:"",placeholder:"Secret Key",name:"secretkey-".concat(l.toString()),value:r[l],onChange:t=>{e((0,u.OL)({index:l,secretKey:t.target.value})),c("secretkey-".concat(l.toString()))},index:l,error:i["secretkey-".concat(l.toString())]||""},"csv-secretkey-".concat(l.toString())),(0,v.jsxs)(s.xuv,{sx:{display:"flex",alignItems:"center",gap:10,height:38},children:[(0,v.jsx)(s.hU,{size:"small",onClick:()=>{e((0,u.x$)())},disabled:l!==n.length-1,children:(0,v.jsx)(s.dtP,{})}),(0,v.jsx)(s.hU,{size:"small",onClick:()=>{e((0,u.iA)(l))},disabled:n.length<=1,children:(0,v.jsx)(s.HFL,{})}),(0,v.jsx)(s.ua7,{tooltip:"Randomize Credentials","aria-label":"add",children:(0,v.jsx)(s.hU,{onClick:()=>{e((0,u.ys)({index:l,accessKey:(0,g.z)(16)})),e((0,u.OL)({index:l,secretKey:(0,g.z)(16)}))},size:"small",children:(0,v.jsx)(s.jH6,{})})})]})]})},"identityField-".concat(l.toString()))))]})},_=()=>{const e=(0,m.TL)(),t=(0,l.v9)((e=>e.createTenant.fields.identityProvider.idpSelection));return(0,v.jsxs)(s.ltY,{withBorders:!1,containerPadding:!1,children:[(0,v.jsxs)(s.xuv,{className:"inputItem",children:[(0,v.jsx)(h.Z,{children:"Identity Provider"}),(0,v.jsx)("span",{className:"muted",children:"Access to the tenant can be controlled via an external Identity Manager."})]}),(0,v.jsx)(s.rjZ,{item:!0,xs:12,sx:{padding:10},children:(0,v.jsx)(s.Eep,{currentValue:t,id:"idp-options",name:"idp-options",label:"Protocol",onChange:t=>{e((0,u.BH)(t.target.value))},selectorOptions:[{label:"Built-in",value:"Built-in",icon:(0,v.jsx)(s.oyc,{})},{label:"Open ID",value:"OpenID",icon:(0,v.jsx)(s.gyG,{})},{label:"LDAP / Active Directory",value:"AD",icon:(0,v.jsx)(s.vcZ,{})}]})}),"Built-in"===t&&(0,v.jsx)(b,{}),"OpenID"===t&&(0,v.jsx)(C,{}),"AD"===t&&(0,v.jsx)(j,{})]})};var S=n(8070);const k=p.ZP.div((e=>{let{theme:t}=e;return{display:"flex",alignItems:"center",justifyContent:"flex-start",padding:8,borderBottom:"1px solid ".concat(i()(t,"borderColor","#E2E2E2")),"& .fileItem":{display:"flex","& .inputItem:not(:last-of-type)":{marginBottom:0},["@media (max-width: ".concat(s.Egj.md,"px)")]:{flexFlow:"column","& .inputItem:not(:last-of-type)":{marginBottom:10}}},"& .rowActions":{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:10,"@media (max-width: 900px)":{flex:1}}}})),T=()=>{const e=(0,m.TL)(),t=(0,l.v9)((e=>e.createTenant.fields.security.enableTLS)),n=(0,l.v9)((e=>e.createTenant.fields.security.enableAutoCert)),r=(0,l.v9)((e=>e.createTenant.fields.security.enableCustomCerts)),i=(0,l.v9)((e=>e.createTenant.certificates.minioServerCertificates)),o=(0,l.v9)((e=>e.createTenant.certificates.minioClientCertificates)),c=(0,l.v9)((e=>e.createTenant.certificates.minioCAsCertificates)),d=(0,a.useCallback)(((t,n)=>{e((0,u.HM)({pageName:"security",field:t,value:n}))}),[e]);return(0,a.useEffect)((()=>{e(t?n||r?(0,u.NO)({pageName:"security",valid:!0}):(0,u.NO)({pageName:"security",valid:!1}):(0,u.NO)({pageName:"security",valid:!0}))}),[t,n,r,e]),(0,v.jsxs)(s.ltY,{withBorders:!1,containerPadding:!1,children:[(0,v.jsx)(s.xuv,{className:"inputItem",children:(0,v.jsx)(h.Z,{children:"Security"})}),(0,v.jsx)(s.rsf,{value:"enableTLS",id:"enableTLS",name:"enableTLS",checked:t,onChange:e=>{const t=e.target.checked;d("enableTLS",t)},label:"TLS",description:"Securing all the traffic using TLS. This is required for Encryption Configuration"}),t&&(0,v.jsxs)(a.Fragment,{children:[(0,v.jsx)(s.rsf,{value:"enableAutoCert",id:"enableAutoCert",name:"enableAutoCert",checked:n,onChange:e=>{const t=e.target.checked;d("enableAutoCert",t)},label:"AutoCert",description:"The internode certificates will be generated and managed by MinIO Operator"}),(0,v.jsx)(s.rsf,{value:"enableCustomCerts",id:"enableCustomCerts",name:"enableCustomCerts",checked:r,onChange:e=>{const t=e.target.checked;d("enableCustomCerts",t)},label:"Custom Certificates",description:"Certificates used to terminated TLS at MinIO"}),r&&(0,v.jsxs)(a.Fragment,{children:[!n&&(0,v.jsx)(S.Z,{}),(0,v.jsxs)("fieldset",{className:"inputItem",children:[(0,v.jsx)("legend",{children:"MinIO Server Certificates"}),i.map(((t,n)=>(0,v.jsxs)(k,{children:[(0,v.jsxs)(s.rjZ,{item:!0,xs:10,className:"fileItem",children:[(0,v.jsx)(s.F5R,{onChange:(n,a,r)=>{r&&e((0,u.aN)({id:t.id,key:"cert",fileName:a,value:r}))},accept:".cer,.crt,.cert,.pem",id:"tlsCert",name:"tlsCert",label:"Cert",value:t.cert,returnEncodedData:!0}),(0,v.jsx)(s.F5R,{onChange:(n,a,r)=>{r&&e((0,u.aN)({id:t.id,key:"key",fileName:a,value:r}))},accept:".key,.pem",id:"tlsKey",name:"tlsKey",label:"Key",value:t.key,returnEncodedData:!0})]}),(0,v.jsxs)(s.rjZ,{item:!0,xs:2,className:"rowActions",children:[(0,v.jsx)(s.hU,{size:"small",onClick:()=>{e((0,u.Mg)())},disabled:n!==i.length-1,children:(0,v.jsx)(s.dtP,{})}),(0,v.jsx)(s.hU,{size:"small",onClick:()=>{e((0,u.XX)(t.id))},disabled:i.length<=1,children:(0,v.jsx)(s.HFL,{})})]})]},"minio-certs-".concat(t.id))))]}),(0,v.jsxs)("fieldset",{className:"inputItem",children:[(0,v.jsx)("legend",{children:"MinIO Client Certificates"}),o.map(((t,n)=>(0,v.jsxs)(k,{children:[(0,v.jsxs)(s.rjZ,{item:!0,xs:10,className:"fileItem",children:[(0,v.jsx)(s.F5R,{onChange:(n,a,r)=>{r&&e((0,u.fE)({id:t.id,key:"cert",fileName:a,value:r}))},accept:".cer,.crt,.cert,.pem",id:"tlsCert",name:"tlsCert",label:"Cert",value:t.cert,returnEncodedData:!0}),(0,v.jsx)(s.F5R,{onChange:(n,a,r)=>{r&&e((0,u.fE)({id:t.id,key:"key",fileName:a,value:r}))},accept:".key,.pem",id:"tlsKey",name:"tlsKey",label:"Key",value:t.key,returnEncodedData:!0})]}),(0,v.jsxs)(s.rjZ,{item:!0,xs:2,className:"rowActions",children:[(0,v.jsx)(s.hU,{size:"small",onClick:()=>{e((0,u.ee)())},disabled:n!==o.length-1,children:(0,v.jsx)(s.dtP,{})}),(0,v.jsx)(s.hU,{size:"small",onClick:()=>{e((0,u.o_)(t.id))},disabled:o.length<=1,children:(0,v.jsx)(s.HFL,{})})]})]},"minio-certs-".concat(t.id))))]}),(0,v.jsxs)("fieldset",{className:"inputItem",children:[(0,v.jsx)("legend",{children:"MinIO CA Certificates"}),c.map(((t,n)=>(0,v.jsxs)(k,{children:[(0,v.jsx)(s.rjZ,{item:!0,xs:6,className:"fileItem",children:(0,v.jsx)(s.F5R,{onChange:(n,a,r)=>{r&&e((0,u.Eq)({id:t.id,key:"cert",fileName:a,value:r}))},accept:".cer,.crt,.cert,.pem",id:"tlsCert",name:"tlsCert",label:"Cert",value:t.cert,returnEncodedData:!0})}),(0,v.jsx)(s.rjZ,{item:!0,xs:6,children:(0,v.jsxs)("div",{className:"rowActions",children:[(0,v.jsx)(s.hU,{size:"small",onClick:()=>{e((0,u.fK)())},disabled:n!==c.length-1,children:(0,v.jsx)(s.dtP,{})}),(0,v.jsx)(s.hU,{size:"small",onClick:()=>{e((0,u.IG)(t.id))},disabled:c.length<=1,children:(0,v.jsx)(s.HFL,{})})]})})]},"minio-CA-certs-".concat(t.id))))]})]})]})]})},N=()=>{const e=(0,m.TL)(),t=(0,l.v9)((e=>e.createTenant.fields.encryption.encryptionTab)),n=(0,l.v9)((e=>e.createTenant.fields.encryption.vaultEndpoint)),r=(0,l.v9)((e=>e.createTenant.fields.encryption.vaultEngine)),i=(0,l.v9)((e=>e.createTenant.fields.encryption.vaultNamespace)),o=(0,l.v9)((e=>e.createTenant.fields.encryption.vaultPrefix)),c=(0,l.v9)((e=>e.createTenant.fields.encryption.vaultAppRoleEngine)),d=(0,l.v9)((e=>e.createTenant.fields.encryption.vaultId)),p=(0,l.v9)((e=>e.createTenant.fields.encryption.vaultSecret)),h=(0,l.v9)((e=>e.createTenant.fields.encryption.vaultRetry)),y=(0,l.v9)((e=>e.createTenant.fields.encryption.vaultPing)),[f,j]=(0,a.useState)({});(0,a.useEffect)((()=>{let a=[];t||(a=[...a,{fieldKey:"vault_endpoint",required:!0,value:n},{fieldKey:"vault_id",required:!0,value:d},{fieldKey:"vault_secret",required:!0,value:p},{fieldKey:"vault_ping",required:!1,value:y,customValidation:parseInt(y)<0,customValidationMessage:"Value needs to be 0 or greater"},{fieldKey:"vault_retry",required:!1,value:h,customValidation:parseInt(h)<0,customValidationMessage:"Value needs to be 0 or greater"}]);const r=(0,x.R)(a);e((0,u.NO)({pageName:"encryption",valid:0===Object.keys(r).length})),j(r)}),[t,n,r,d,p,y,h,e]);const C=(0,a.useCallback)(((t,n)=>{e((0,u.HM)({pageName:"encryption",field:t,value:n}))}),[e]),b=e=>{j((0,g.h)(f,e))};return(0,v.jsxs)(a.Fragment,{children:[(0,v.jsx)(s.Wzg,{id:"vault_endpoint",name:"vault_endpoint",onChange:e=>{C("vaultEndpoint",e.target.value),b("vault_endpoint")},label:"Endpoint",tooltip:"Endpoint is the Hashicorp Vault endpoint",value:n,error:f.vault_endpoint||"",required:!0}),(0,v.jsx)(s.Wzg,{id:"vault_engine",name:"vault_engine",onChange:e=>{C("vaultEngine",e.target.value),b("vault_engine")},label:"Engine",tooltip:"Engine is the Hashicorp Vault K/V engine path. If empty, defaults to 'kv'",value:r}),(0,v.jsx)(s.Wzg,{id:"vault_namespace",name:"vault_namespace",onChange:e=>{C("vaultNamespace",e.target.value)},label:"Namespace",tooltip:"Namespace is an optional Hashicorp Vault namespace. An empty namespace means no particular namespace is used.",value:i}),(0,v.jsx)(s.Wzg,{id:"vault_prefix",name:"vault_prefix",onChange:e=>{C("vaultPrefix",e.target.value)},label:"Prefix",tooltip:"Prefix is an optional prefix / directory within the K/V engine. If empty, keys will be stored at the K/V engine top level",value:o}),(0,v.jsxs)("fieldset",{className:"inputItem",children:[(0,v.jsx)("legend",{children:"App Role"}),(0,v.jsx)(s.Wzg,{id:"vault_approle_engine",name:"vault_approle_engine",onChange:e=>{C("vaultAppRoleEngine",e.target.value)},label:"Engine",tooltip:"AppRoleEngine is the AppRole authentication engine path. If empty, defaults to 'approle'",value:c}),(0,v.jsx)(s.Wzg,{id:"vault_id",name:"vault_id",onChange:e=>{C("vaultId",e.target.value),b("vault_id")},label:"AppRole ID",tooltip:"AppRoleSecret is the AppRole access secret for authenticating to Hashicorp Vault via the AppRole method",value:d,error:f.vault_id||"",required:!0}),(0,v.jsx)(s.Wzg,{id:"vault_secret",name:"vault_secret",onChange:e=>{C("vaultSecret",e.target.value),b("vault_secret")},label:"AppRole Secret",tooltip:"AppRoleSecret is the AppRole access secret for authenticating to Hashicorp Vault via the AppRole method",value:p,error:f.vault_secret||"",required:!0}),(0,v.jsx)(s.Wzg,{type:"number",min:"0",id:"vault_retry",name:"vault_retry",onChange:e=>{C("vaultRetry",e.target.value),b("vault_retry")},label:"Retry (Seconds)",value:h,error:f.vault_retry||""})]}),(0,v.jsxs)("fieldset",{className:"inputItem",children:[(0,v.jsx)("legend",{children:"Status"}),(0,v.jsx)(s.Wzg,{type:"number",min:"0",id:"vault_ping",name:"vault_ping",onChange:e=>{C("vaultPing",e.target.value),b("vault_ping")},label:"Ping (Seconds)",value:y,error:f.vault_ping||""})]})]})},I=()=>{const e=(0,m.TL)(),t=(0,l.v9)((e=>e.createTenant.fields.encryption.encryptionTab)),n=(0,l.v9)((e=>e.createTenant.fields.encryption.azureEndpoint)),r=(0,l.v9)((e=>e.createTenant.fields.encryption.azureTenantID)),i=(0,l.v9)((e=>e.createTenant.fields.encryption.azureClientID)),o=(0,l.v9)((e=>e.createTenant.fields.encryption.azureClientSecret)),[c,d]=(0,a.useState)({});(0,a.useEffect)((()=>{let a=[];t||(a=[...a,{fieldKey:"azure_endpoint",required:!0,value:n},{fieldKey:"azure_tenant_id",required:!0,value:r},{fieldKey:"azure_client_id",required:!0,value:i},{fieldKey:"azure_client_secret",required:!0,value:o}]);const s=(0,x.R)(a);e((0,u.NO)({pageName:"encryption",valid:0===Object.keys(s).length})),d(s)}),[t,n,r,i,o,e]);const p=(0,a.useCallback)(((t,n)=>{e((0,u.HM)({pageName:"encryption",field:t,value:n}))}),[e]),h=e=>{d((0,g.h)(c,e))};return(0,v.jsxs)(a.Fragment,{children:[(0,v.jsx)(s.Wzg,{id:"azure_endpoint",name:"azure_endpoint",onChange:e=>{p("azureEndpoint",e.target.value),h("azure_endpoint")},label:"Endpoint",tooltip:"Endpoint is the Azure KeyVault endpoint",value:n,error:c.azure_endpoint||""}),(0,v.jsxs)("fieldset",{className:"inputItem",children:[(0,v.jsx)("legend",{children:"Credentials"}),(0,v.jsx)(s.Wzg,{id:"azure_tenant_id",name:"azure_tenant_id",onChange:e=>{p("azureTenantID",e.target.value),h("azure_tenant_id")},label:"Tenant ID",tooltip:"TenantID is the ID of the Azure KeyVault tenant",value:r,error:c.azure_tenant_id||""}),(0,v.jsx)(s.Wzg,{id:"azure_client_id",name:"azure_client_id",onChange:e=>{p("azureClientID",e.target.value),h("azure_client_id")},label:"Client ID",tooltip:"ClientID is the ID of the client accessing Azure KeyVault",value:i,error:c.azure_client_id||""}),(0,v.jsx)(s.Wzg,{id:"azure_client_secret",name:"azure_client_secret",onChange:e=>{p("azureClientSecret",e.target.value),h("azure_client_secret")},label:"Client Secret",tooltip:"ClientSecret is the client secret accessing the Azure KeyVault",value:o,error:c.azure_client_secret||""})]})]})},A=()=>{const e=(0,m.TL)(),t=(0,l.v9)((e=>e.createTenant.fields.encryption.gcpProjectID)),n=(0,l.v9)((e=>e.createTenant.fields.encryption.gcpEndpoint)),r=(0,l.v9)((e=>e.createTenant.fields.encryption.gcpClientEmail)),i=(0,l.v9)((e=>e.createTenant.fields.encryption.gcpClientID)),o=(0,l.v9)((e=>e.createTenant.fields.encryption.gcpPrivateKeyID)),c=(0,l.v9)((e=>e.createTenant.fields.encryption.gcpPrivateKey)),d=(0,a.useCallback)(((t,n)=>{e((0,u.HM)({pageName:"encryption",field:t,value:n}))}),[e]);return(0,v.jsxs)(a.Fragment,{children:[(0,v.jsx)(s.Wzg,{id:"gcp_project_id",name:"gcp_project_id",onChange:e=>{d("gcpProjectID",e.target.value)},label:"Project ID",tooltip:"ProjectID is the GCP project ID.",value:t}),(0,v.jsx)(s.Wzg,{id:"gcp_endpoint",name:"gcp_endpoint",onChange:e=>{d("gcpEndpoint",e.target.value)},label:"Endpoint",tooltip:"Endpoint is the GCP project ID. If empty defaults to: secretmanager.googleapis.com:443",value:n}),(0,v.jsxs)("fieldset",{className:"inputItem",children:[(0,v.jsx)("legend",{children:"Credentials"}),(0,v.jsx)(s.Wzg,{id:"gcp_client_email",name:"gcp_client_email",onChange:e=>{d("gcpClientEmail",e.target.value)},label:"Client Email",tooltip:"Is the Client email of the GCP service account used to access the SecretManager",value:r}),(0,v.jsx)(s.Wzg,{id:"gcp_client_id",name:"gcp_client_id",onChange:e=>{d("gcpClientID",e.target.value)},label:"Client ID",tooltip:"Is the Client ID of the GCP service account used to access the SecretManager",value:i}),(0,v.jsx)(s.Wzg,{id:"gcp_private_key_id",name:"gcp_private_key_id",onChange:e=>{d("gcpPrivateKeyID",e.target.value)},label:"Private Key ID",tooltip:"Is the private key ID of the GCP service account used to access the SecretManager",value:o}),(0,v.jsx)(s.Wzg,{id:"gcp_private_key",name:"gcp_private_key",onChange:e=>{d("gcpPrivateKey",e.target.value)},label:"Private Key",tooltip:"Is the private key of the GCP service account used to access the SecretManager",value:c})]})]})},D=()=>{const e=(0,m.TL)(),t=(0,l.v9)((e=>e.createTenant.fields.encryption.encryptionTab)),n=(0,l.v9)((e=>e.createTenant.fields.encryption.gemaltoEndpoint)),r=(0,l.v9)((e=>e.createTenant.fields.encryption.gemaltoToken)),i=(0,l.v9)((e=>e.createTenant.fields.encryption.gemaltoDomain)),o=(0,l.v9)((e=>e.createTenant.fields.encryption.gemaltoRetry)),[c,d]=(0,a.useState)({});(0,a.useEffect)((()=>{let a=[];t||(a=[...a,{fieldKey:"gemalto_endpoint",required:!0,value:n},{fieldKey:"gemalto_token",required:!0,value:r},{fieldKey:"gemalto_domain",required:!0,value:i},{fieldKey:"gemalto_retry",required:!1,value:o,customValidation:parseInt(o)<0,customValidationMessage:"Value needs to be 0 or greater"}]);const s=(0,x.R)(a);e((0,u.NO)({pageName:"encryption",valid:0===Object.keys(s).length})),d(s)}),[t,n,r,i,o,e]);const p=(0,a.useCallback)(((t,n)=>{e((0,u.HM)({pageName:"encryption",field:t,value:n}))}),[e]),h=e=>{d((0,g.h)(c,e))};return(0,v.jsxs)(a.Fragment,{children:[(0,v.jsx)(s.Wzg,{id:"gemalto_endpoint",name:"gemalto_endpoint",onChange:e=>{p("gemaltoEndpoint",e.target.value),h("gemalto_endpoint")},label:"Endpoint",tooltip:"Endpoint is the endpoint to the KeySecure server",value:n,error:c.gemalto_endpoint||"",required:!0}),(0,v.jsxs)("fieldset",{className:"inputItem",children:[(0,v.jsx)("legend",{children:"Credentials"}),(0,v.jsx)(s.Wzg,{id:"gemalto_token",name:"gemalto_token",onChange:e=>{p("gemaltoToken",e.target.value),h("gemalto_token")},label:"Token",tooltip:"Token is the refresh authentication token to access the KeySecure server",value:r,error:c.gemalto_token||"",required:!0}),(0,v.jsx)(s.Wzg,{id:"gemalto_domain",name:"gemalto_domain",onChange:e=>{p("gemaltoDomain",e.target.value),h("gemalto_domain")},label:"Domain",tooltip:"Domain is the isolated namespace within the KeySecure server. If empty, defaults to the top-level / root domain",value:i,error:c.gemalto_domain||"",required:!0}),(0,v.jsx)(s.Wzg,{type:"number",min:"0",id:"gemalto_retry",name:"gemalto_retry",onChange:e=>{p("gemaltoRetry",e.target.value),h("gemalto_retry")},label:"Retry (seconds)",value:o,error:c.gemalto_retry||""})]})]})},w=()=>{const e=(0,m.TL)(),t=(0,l.v9)((e=>e.createTenant.fields.encryption.encryptionTab)),n=(0,l.v9)((e=>e.createTenant.fields.encryption.awsEndpoint)),r=(0,l.v9)((e=>e.createTenant.fields.encryption.awsRegion)),i=(0,l.v9)((e=>e.createTenant.fields.encryption.awsKMSKey)),o=(0,l.v9)((e=>e.createTenant.fields.encryption.awsAccessKey)),c=(0,l.v9)((e=>e.createTenant.fields.encryption.awsSecretKey)),d=(0,l.v9)((e=>e.createTenant.fields.encryption.awsToken)),[p,h]=(0,a.useState)({});(0,a.useEffect)((()=>{let a=[];t||(a=[...a,{fieldKey:"aws_endpoint",required:!0,value:n},{fieldKey:"aws_region",required:!0,value:r},{fieldKey:"aws_accessKey",required:!0,value:o},{fieldKey:"aws_secretKey",required:!0,value:c}]);const i=(0,x.R)(a);e((0,u.NO)({pageName:"encryption",valid:0===Object.keys(i).length})),h(i)}),[t,n,r,c,o,e]);const y=(0,a.useCallback)(((t,n)=>{e((0,u.HM)({pageName:"encryption",field:t,value:n}))}),[e]),f=e=>{h((0,g.h)(p,e))};return(0,v.jsxs)(a.Fragment,{children:[(0,v.jsx)(s.Wzg,{id:"aws_endpoint",name:"aws_endpoint",onChange:e=>{y("awsEndpoint",e.target.value),f("aws_endpoint")},label:"Endpoint",tooltip:"Endpoint is the AWS SecretsManager endpoint. AWS SecretsManager endpoints have the following schema: secrestmanager[-fips]..amanzonaws.com",value:n,error:p.aws_endpoint||"",required:!0}),(0,v.jsx)(s.Wzg,{id:"aws_region",name:"aws_region",onChange:e=>{y("awsRegion",e.target.value),f("aws_region")},label:"Region",tooltip:"Region is the AWS region the SecretsManager is located",value:r,error:p.aws_region||"",required:!0}),(0,v.jsx)(s.Wzg,{id:"aws_kmsKey",name:"aws_kmsKey",onChange:e=>{y("awsKMSKey",e.target.value)},label:"KMS Key",tooltip:"KMSKey is the AWS-KMS key ID (CMK-ID) used to en/decrypt secrets managed by the SecretsManager. If empty, the default AWS KMS key is used",value:i}),(0,v.jsxs)("fieldset",{className:"inputItem",children:[(0,v.jsx)("legend",{children:"Credentials"}),(0,v.jsx)(s.Wzg,{id:"aws_accessKey",name:"aws_accessKey",onChange:e=>{y("awsAccessKey",e.target.value),f("aws_accessKey")},label:"Access Key",tooltip:"AccessKey is the access key for authenticating to AWS",value:o,error:p.aws_accessKey||"",required:!0}),(0,v.jsx)(s.Wzg,{id:"aws_secretKey",name:"aws_secretKey",onChange:e=>{y("awsSecretKey",e.target.value),f("aws_secretKey")},label:"Secret Key",tooltip:"SecretKey is the secret key for authenticating to AWS",value:c,error:p.aws_secretKey||"",required:!0}),(0,v.jsx)(s.Wzg,{id:"aws_token",name:"aws_token",tooltip:"SessionToken is an optional session token for authenticating to AWS when using STS",onChange:e=>{y("awsToken",e.target.value)},label:"Token",value:d})]})]})},z=()=>{const e=(0,m.TL)(),t=(0,l.v9)((e=>e.createTenant.fields.encryption.replicas)),n=(0,l.v9)((e=>e.createTenant.fields.encryption.rawConfiguration)),r=(0,l.v9)((e=>e.createTenant.fields.encryption.encryptionTab)),i=(0,l.v9)((e=>e.createTenant.fields.encryption.enableEncryption)),o=(0,l.v9)((e=>e.createTenant.fields.encryption.encryptionType)),c=(0,l.v9)((e=>e.createTenant.fields.encryption.gcpProjectID)),d=(0,l.v9)((e=>e.createTenant.fields.encryption.gcpEndpoint)),p=(0,l.v9)((e=>e.createTenant.fields.encryption.gcpClientEmail)),y=(0,l.v9)((e=>e.createTenant.fields.encryption.gcpClientID)),f=(0,l.v9)((e=>e.createTenant.fields.encryption.gcpPrivateKeyID)),j=(0,l.v9)((e=>e.createTenant.fields.encryption.gcpPrivateKey)),C=(0,l.v9)((e=>e.createTenant.fields.encryption.enableCustomCertsForKES)),b=(0,l.v9)((e=>e.createTenant.fields.security.enableAutoCert)),_=(0,l.v9)((e=>e.createTenant.fields.security.enableTLS)),S=(0,l.v9)((e=>e.createTenant.certificates.minioServerCertificates)),k=(0,l.v9)((e=>e.createTenant.certificates.kesServerCertificate)),T=(0,l.v9)((e=>e.createTenant.certificates.minioMTLSCertificate)),z=(0,l.v9)((e=>e.createTenant.certificates.kmsMTLSCertificate)),P=(0,l.v9)((e=>e.createTenant.certificates.kmsCA)),R=(0,l.v9)((e=>e.createTenant.fields.security.enableCustomCerts)),K=(0,l.v9)((e=>e.createTenant.fields.encryption.kesSecurityContext)),[E,L]=(0,a.useState)({});let F=!1;_&&(b||S&&S.filter((e=>e.encoded_key&&e.encoded_cert)).length>0)&&(F=!0);const U=(0,a.useCallback)(((t,n)=>{e((0,u.HM)({pageName:"encryption",field:t,value:n}))}),[e]),O=e=>{L((0,g.h)(E,e))};return(0,a.useEffect)((()=>{let a=[];i&&(a=[{fieldKey:"rawConfiguration",required:"kms-raw-configuration"===r,value:n},{fieldKey:"replicas",required:!0,value:t,customValidation:parseInt(t)<1,customValidationMessage:"Replicas needs to be 1 or greater"},{fieldKey:"kes_securityContext_runAsUser",required:!0,value:K.runAsUser,customValidation:""===K.runAsUser||parseInt(K.runAsUser)<0,customValidationMessage:"runAsUser must be present and be 0 or more"},{fieldKey:"kes_securityContext_runAsGroup",required:!0,value:K.runAsGroup,customValidation:""===K.runAsGroup||parseInt(K.runAsGroup)<0,customValidationMessage:"runAsGroup must be present and be 0 or more"},{fieldKey:"kes_securityContext_fsGroup",required:!0,value:K.fsGroup,customValidation:""===K.fsGroup||parseInt(K.fsGroup)<0,customValidationMessage:"fsGroup must be present and be 0 or more"}],R&&(a=[...a,{fieldKey:"serverKey",required:!b,value:k.encoded_key},{fieldKey:"serverCert",required:!b,value:k.encoded_cert},{fieldKey:"clientKey",required:!b,value:T.encoded_key},{fieldKey:"clientCert",required:!b,value:T.encoded_cert}]));const s=(0,x.R)(a);e((0,u.NO)({pageName:"encryption",valid:0===Object.keys(s).length})),L(s)}),[n,r,i,o,c,d,p,y,f,j,e,b,R,k.encoded_key,k.encoded_cert,T.encoded_key,T.encoded_cert,K,t]),(0,v.jsxs)(s.ltY,{withBorders:!1,containerPadding:!1,sx:{"& .tabs-container":{height:"inherit"},"& .rightSpacer":{marginRight:15},"& .responsiveContainer":{"@media (max-width: 900px)":{display:"flex",flexFlow:"column"}},"& .multiContainer":{display:"flex",alignItems:"center",justifyContent:"flex-start"}},children:[(0,v.jsxs)(s.xuv,{className:"inputItem",sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,v.jsx)(h.Z,{children:"Encryption"}),(0,v.jsx)(s.rsf,{label:"",indicatorLabels:["Enabled","Disabled"],checked:i,value:"tenant_encryption",id:"tenant-encryption",name:"tenant-encryption",onChange:e=>{const t=e.target.checked;U("enableEncryption",t)},description:"",disabled:!F})]}),(0,v.jsx)(s.xuv,{className:"muted inputItem",children:"MinIO Server-Side Encryption (SSE) protects objects as part of write operations, allowing clients to take advantage of server processing power to secure objects at the storage layer (encryption-at-rest). SSE also provides key functionality to regulatory and compliance requirements around secure locking and erasure."}),(0,v.jsx)("hr",{}),i&&(0,v.jsxs)(a.Fragment,{children:[(0,v.jsx)(s.mQc,{horizontal:!0,currentTabOrPath:r,onTabClick:e=>{U("encryptionTab",e)},sx:{height:"initial"},options:[{tabConfig:{label:"Options",id:"kms-options"},content:(0,v.jsxs)(a.Fragment,{children:[(0,v.jsx)(s.Eep,{currentValue:o,id:"encryptionType",name:"encryptionType",label:"KMS",onChange:e=>{U("encryptionType",e.target.value)},selectorOptions:[{label:"Vault",value:"vault"},{label:"AWS",value:"aws"},{label:"Gemalto",value:"gemalto"},{label:"GCP",value:"gcp"},{label:"Azure",value:"azure"}]}),"vault"===o&&(0,v.jsx)(N,{}),"azure"===o&&(0,v.jsx)(I,{}),"gcp"===o&&(0,v.jsx)(A,{}),"aws"===o&&(0,v.jsx)(w,{}),"gemalto"===o&&(0,v.jsx)(D,{})]})},{tabConfig:{label:"Raw Edit",id:"kms-raw-configuration"},content:(0,v.jsx)(a.Fragment,{children:(0,v.jsx)(s.rjZ,{item:!0,xs:12,children:(0,v.jsx)(s.pq4,{value:n,mode:"yaml",onChange:e=>{U("rawConfiguration",e)},editorHeight:"550px"})})})}]}),(0,v.jsx)(s.AG2,{label:"Additional Configurations",sx:{margin:"0px 0px 10px"}}),(0,v.jsx)(s.rsf,{value:"enableCustomCertsForKES",id:"enableCustomCertsForKES",name:"enableCustomCertsForKES",checked:C||!b,onChange:e=>{const t=e.target.checked;U("enableCustomCertsForKES",t)},label:"Custom Certificates",disabled:!b}),(C||!b)&&(0,v.jsxs)(a.Fragment,{children:[(0,v.jsxs)("fieldset",{className:"inputItem",children:[(0,v.jsx)("legend",{children:"Encryption server certificates"}),(0,v.jsx)(s.F5R,{onChange:(t,n,a)=>{a&&(e((0,u.uN)({key:"key",fileName:n,value:a})),O("serverKey"))},accept:".key,.pem",id:"serverKey",name:"serverKey",label:"Key",error:E.serverKey||"",value:k.key,required:!b,returnEncodedData:!0}),(0,v.jsx)(s.F5R,{onChange:(t,n,a)=>{a&&(e((0,u.uN)({key:"cert",fileName:n,value:a})),O("serverCert"))},accept:".cer,.crt,.cert,.pem",id:"serverCert",name:"serverCert",label:"Cert",error:E.serverCert||"",value:k.cert,required:!b,returnEncodedData:!0})]}),(0,v.jsxs)("fieldset",{className:"inputItem",children:[(0,v.jsx)("legend",{children:"MinIO mTLS certificates (connection between MinIO and the Encryption server)"}),(0,v.jsx)(s.F5R,{onChange:(t,n,a)=>{a&&(e((0,u.Ud)({key:"key",fileName:n,value:a})),O("clientKey"))},accept:".key,.pem",id:"clientKey",name:"clientKey",label:"Key",error:E.clientKey||"",value:T.key,required:!b,returnEncodedData:!0}),(0,v.jsx)(s.F5R,{onChange:(t,n,a)=>{a&&(e((0,u.Ud)({key:"cert",fileName:n,value:a})),O("clientCert"))},accept:".cer,.crt,.cert,.pem",id:"clientCert",name:"clientCert",label:"Cert",error:E.clientCert||"",value:T.cert,required:!b,returnEncodedData:!0})]}),(0,v.jsxs)("fieldset",{className:"inputItem",children:[(0,v.jsx)("legend",{children:"KMS mTLS certificates (connection between the Encryption server and the KMS)"}),(0,v.jsx)(s.F5R,{onChange:(t,n,a)=>{a&&(e((0,u.Tr)({key:"key",fileName:n,value:a})),O("vault_key"))},accept:".key,.pem",id:"vault_key",name:"vault_key",label:"Key",value:z.key,returnEncodedData:!0}),(0,v.jsx)(s.F5R,{onChange:(t,n,a)=>{a&&(e((0,u.Tr)({key:"cert",fileName:n,value:a})),O("vault_cert"))},accept:".cer,.crt,.cert,.pem",id:"vault_cert",name:"vault_cert",label:"Cert",value:z.cert,returnEncodedData:!0}),(0,v.jsx)(s.F5R,{onChange:(t,n,a)=>{a&&(e((0,u.b9)({fileName:n,value:a})),O("vault_ca"))},accept:".cer,.crt,.cert,.pem",id:"vault_ca",name:"vault_ca",label:"CA",value:P.cert,returnEncodedData:!0})]})]}),(0,v.jsx)(s.Wzg,{type:"number",min:"1",id:"replicas",name:"replicas",onChange:e=>{U("replicas",e.target.value),O("replicas")},label:"Replicas",value:t,required:!0,error:E.replicas||"",sx:{marginBottom:10}}),(0,v.jsxs)("fieldset",{className:"inputItem",children:[(0,v.jsx)("legend",{children:"SecurityContext for KES pods"}),(0,v.jsx)(s.rjZ,{item:!0,xs:12,children:(0,v.jsxs)("div",{className:"multiContainer responsiveContainer",children:[(0,v.jsx)("div",{className:"rightSpacer",children:(0,v.jsx)(s.Wzg,{type:"number",id:"kes_securityContext_runAsUser",name:"kes_securityContext_runAsUser",onChange:e=>{U("kesSecurityContext",{...K,runAsUser:e.target.value}),O("kes_securityContext_runAsUser")},label:"Run As User",value:K.runAsUser,required:!0,error:E.kes_securityContext_runAsUser||"",min:"0"})}),(0,v.jsx)("div",{className:"rightSpacer",children:(0,v.jsx)(s.Wzg,{type:"number",id:"kes_securityContext_runAsGroup",name:"kes_securityContext_runAsGroup",onChange:e=>{U("kesSecurityContext",{...K,runAsGroup:e.target.value}),O("kes_securityContext_runAsGroup")},label:"Run As Group",value:K.runAsGroup,required:!0,error:E.kes_securityContext_runAsGroup||"",min:"0"})})]})}),(0,v.jsx)("br",{}),(0,v.jsx)(s.rjZ,{item:!0,xs:12,children:(0,v.jsxs)("div",{className:"multiContainer responsiveContainer",children:[(0,v.jsx)("div",{className:"rightSpacer",children:(0,v.jsx)(s.Wzg,{type:"number",id:"kes_securityContext_fsGroup",name:"kes_securityContext_fsGroup",onChange:e=>{U("kesSecurityContext",{...K,fsGroup:e.target.value}),O("kes_securityContext_fsGroup")},label:"FsGroup",value:K.fsGroup,required:!0,error:E.kes_securityContext_fsGroup||"",min:"0"})}),(0,v.jsx)("div",{className:"rightSpacer",children:(0,v.jsx)(s.PhF,{label:"FsGroupChangePolicy",id:"securityContext_fsGroupChangePolicy",name:"securityContext_fsGroupChangePolicy",value:K.fsGroupChangePolicy,onChange:e=>{U("kesSecurityContext",{...K,fsGroupChangePolicy:e})},options:[{label:"Always",value:"Always"},{label:"OnRootMismatch",value:"OnRootMismatch"}]})})]})}),(0,v.jsx)("br",{}),(0,v.jsx)(s.rsf,{value:"kesSecurityContextRunAsNonRoot",id:"kes_securityContext_runAsNonRoot",name:"kes_securityContext_runAsNonRoot",checked:K.runAsNonRoot,onChange:e=>{const t=e.target.checked;U("kesSecurityContext",{...K,runAsNonRoot:t})},label:"Do not run as Root"})]})]})]})};var P=n(7995),R=n(1207),K=n(5660);const E=p.ZP.div((()=>({"& .overlayAction":{marginLeft:10,display:"flex",alignItems:"center"},"& .affinityConfigField":{display:"flex"},"& .affinityFieldLabel":{display:"flex",flexFlow:"column",flex:1},"& .affinityLabelKey":{"& div:first-child":{marginBottom:0}},"& .affinityLabelValue":{marginLeft:10,"& div:first-child":{marginBottom:0}},"& .rowActions":{display:"flex",alignItems:"center"},"& .affinityRow":{marginBottom:10,display:"flex"}}))),L=()=>{const e=(0,m.TL)(),t=(0,l.v9)((e=>e.createTenant.fields.affinity.podAffinity)),n=(0,l.v9)((e=>e.createTenant.fields.affinity.nodeSelectorLabels)),r=(0,l.v9)((e=>e.createTenant.fields.affinity.withPodAntiAffinity)),i=(0,l.v9)((e=>e.createTenant.nodeSelectorPairs)),o=(0,l.v9)((e=>e.createTenant.tolerations)),[c,d]=(0,a.useState)({}),[p,g]=(0,a.useState)(!0),[y,f]=(0,a.useState)({}),[j,C]=(0,a.useState)([]),b=(0,a.useCallback)(((t,n)=>{e((0,u.HM)({pageName:"affinity",field:t,value:n}))}),[e]);(0,a.useEffect)((()=>{p&&R.Z.invoke("GET","/api/v1/nodes/labels").then((e=>{g(!1),f(e);let t=[];for(let n in e)t.push({label:n,value:n});C(t)})).catch((t=>{g(!1),e((0,P.zb)(t)),f({})}))}),[e,p]),(0,a.useEffect)((()=>{if(i){const e=i.filter((e=>""!==e.key)).map((e=>"".concat(e.key,"=").concat(e.value))).filter(((e,t,n)=>n.indexOf(e)===t)).join("&");b("nodeSelectorLabels",e)}}),[i,b]),(0,a.useEffect)((()=>{let a=[];if("nodeSelector"===t){let e=!0;const t=n.split("&");1===t.length&&""===t[0]&&(e=!1),t.forEach(((n,a)=>{const r=n.split("=");2!==r.length&&(e=!1),a+1!==t.length&&(""!==r[0]&&""!==r[1]||(e=!1))})),a=[...a,{fieldKey:"labels",required:!0,value:n,customValidation:!e,customValidationMessage:"You need to add at least one label key-pair"}]}const r=(0,x.R)(a);e((0,u.NO)({pageName:"affinity",valid:0===Object.keys(r).length})),d(r)}),[e,t,n]);const _=(t,n,a)=>{const r={...o[t],[n]:a};e((0,u.iU)({index:t,tolerationValue:r}))};return(0,v.jsx)(E,{children:(0,v.jsxs)(s.ltY,{withBorders:!1,containerPadding:!1,children:[(0,v.jsxs)(s.xuv,{className:"inputItem",children:[(0,v.jsx)(h.Z,{children:"Pod Placement"}),(0,v.jsx)("span",{className:"muted",children:"Configure how pods will be assigned to nodes"})]}),(0,v.jsx)(s.xuv,{children:(0,v.jsx)(s.AZs,{children:"Type"})}),(0,v.jsx)(s.xuv,{className:"muted inputItem",children:"MinIO supports multiple configurations for Pod Affinity"}),(0,v.jsx)(s.Eep,{currentValue:t,id:"affinity-options",name:"affinity-options",label:" ",onChange:e=>{b("podAffinity",e.target.value)},selectorOptions:[{label:"None",value:"none"},{label:"Default (Pod Anti-Affinity)",value:"default"},{label:"Node Selector",value:"nodeSelector"}],displayInColumn:!0}),"nodeSelector"===t&&(0,v.jsxs)(a.Fragment,{children:[(0,v.jsx)(s.rsf,{value:"with_pod_anti_affinity",id:"with_pod_anti_affinity",name:"with_pod_anti_affinity",checked:r,onChange:e=>{const t=e.target.checked;b("withPodAntiAffinity",t)},label:"With Pod Anti-Affinity"}),(0,v.jsxs)(s.xuv,{className:"inputBox",children:[(0,v.jsx)("h3",{children:"Labels"}),(0,v.jsx)("span",{className:"error",children:c.labels}),(0,v.jsx)(s.rjZ,{container:!0,children:i&&i.map(((t,n)=>(0,v.jsxs)(s.rjZ,{item:!0,xs:12,className:"affinityRow",children:[(0,v.jsxs)(s.rjZ,{item:!0,xs:5,className:"affinityLabelKey",children:[j.length>0&&(0,v.jsx)(s.PhF,{onChange:t=>{const a={key:t,value:y[t][0]},r=[...i];r[n]=a,e((0,u.i$)(r))},id:"select-access-policy",name:"select-access-policy",label:"",value:t.key,options:j}),0===j.length&&(0,v.jsx)(s.Wzg,{id:"nodeselector-key-".concat(n.toString()),label:"",name:"nodeselector-".concat(n.toString()),value:t.key,onChange:t=>{const a=[...i];a[n]={key:a[n].key,value:t.target.value},e((0,u.i$)(a))},index:n,placeholder:"Key"})]}),(0,v.jsxs)(s.rjZ,{item:!0,xs:5,className:"affinityLabelValue",children:[j.length>0&&(0,v.jsx)(s.PhF,{onChange:t=>{const a=[...i];a[n]={key:a[n].key,value:t},e((0,u.i$)(a))},id:"select-access-policy",name:"select-access-policy",label:"",value:t.value,options:y[t.key]?y[t.key].map((e=>({label:e,value:e}))):[]}),0===j.length&&(0,v.jsx)(s.Wzg,{id:"nodeselector-value-".concat(n.toString()),label:"",name:"nodeselector-".concat(n.toString()),value:t.value,onChange:t=>{const a=[...i];a[n]={key:a[n].key,value:t.target.value},e((0,u.i$)(a))},index:n,placeholder:"value"})]}),(0,v.jsxs)(s.rjZ,{item:!0,xs:2,className:"rowActions",children:[(0,v.jsx)(s.xuv,{className:"overlayAction",children:(0,v.jsx)(s.hU,{size:"small",onClick:()=>{const t=[...i];j.length>0?t.push({key:j[0].value,value:y[j[0].value][0]}):t.push({key:"",value:""}),e((0,u.i$)(t))},disabled:n!==i.length-1,children:(0,v.jsx)(s.dtP,{})})}),(0,v.jsx)(s.xuv,{className:"overlayAction",children:(0,v.jsx)(s.hU,{size:"small",onClick:()=>{const t=i.filter(((e,t)=>t!==n));e((0,u.i$)(t))},disabled:i.length<=1,children:(0,v.jsx)(s.HFL,{})})})]})]},"affinity-keyVal-".concat(n.toString()))))})]})]}),(0,v.jsx)(s.rjZ,{item:!0,xs:12,className:"affinityConfigField",children:(0,v.jsxs)(s.rjZ,{item:!0,className:"affinityFieldLabel",children:[(0,v.jsx)("h3",{children:"Tolerations"}),(0,v.jsx)("span",{className:"error",children:c.tolerations}),(0,v.jsx)(s.rjZ,{container:!0,children:o&&o.map(((t,n)=>{var a;return(0,v.jsxs)(s.rjZ,{item:!0,xs:12,className:"affinityRow",children:[(0,v.jsx)(K.Z,{effect:t.effect,onEffectChange:e=>{_(n,"effect",e)},tolerationKey:t.key,onTolerationKeyChange:e=>{_(n,"key",e)},operator:t.operator,onOperatorChange:e=>{_(n,"operator",e)},value:t.value,onValueChange:e=>{_(n,"value",e)},tolerationSeconds:(null===(a=t.tolerationSeconds)||void 0===a?void 0:a.seconds)||0,onSecondsChange:e=>{_(n,"tolerationSeconds",{seconds:e})},index:n}),(0,v.jsx)(s.xuv,{className:"overlayAction",children:(0,v.jsx)(s.hU,{size:"small",onClick:()=>{e((0,u.ly)())},disabled:n!==o.length-1,children:(0,v.jsx)(s.dtP,{})})}),(0,v.jsx)(s.xuv,{className:"overlayAction",children:(0,v.jsx)(s.hU,{size:"small",onClick:()=>e((0,u.JX)(n)),disabled:o.length<=1,children:(0,v.jsx)(s.HFL,{})})})]},"affinity-keyVal-".concat(n.toString()))}))})]})})]})})},F=()=>{const e=(0,m.TL)(),t=(0,l.v9)((e=>e.createTenant.fields.configure.customImage)),n=(0,l.v9)((e=>e.createTenant.fields.configure.imageName)),r=(0,l.v9)((e=>e.createTenant.fields.configure.customDockerhub)),i=(0,l.v9)((e=>e.createTenant.fields.configure.imageRegistry)),o=(0,l.v9)((e=>e.createTenant.fields.configure.imageRegistryUsername)),c=(0,l.v9)((e=>e.createTenant.fields.configure.imageRegistryPassword)),d=(0,l.v9)((e=>e.createTenant.fields.configure.tenantCustom)),p=(0,l.v9)((e=>e.createTenant.fields.configure.kesImage)),[y,f]=(0,a.useState)({}),j=(0,a.useCallback)(((t,n)=>{e((0,u.HM)({pageName:"configure",field:t,value:n}))}),[e]);(0,a.useEffect)((()=>{let a=[];t&&(a=[...a,{fieldKey:"image",required:!1,value:n,pattern:/^((.*?)\/(.*?):(.+))$/,customPatternMessage:"Format must be of form: 'minio/minio:VERSION'"},{fieldKey:"kesImage",required:!1,value:p,pattern:/^((.*?)\/(.*?):(.+))$/,customPatternMessage:"Format must be of form: 'minio/kes:VERSION'"}],r&&(a=[...a,{fieldKey:"registry",required:!0,value:i},{fieldKey:"registryUsername",required:!0,value:o},{fieldKey:"registryPassword",required:!0,value:c}]));const s=(0,x.R)(a);e((0,u.NO)({pageName:"configure",valid:0===Object.keys(s).length})),f(s)}),[t,n,p,r,i,o,c,e,d]);const C=e=>{f((0,g.h)(y,e))};return(0,v.jsxs)(s.ltY,{withBorders:!1,containerPadding:!1,children:[(0,v.jsxs)(s.xuv,{className:"inputItem",children:[(0,v.jsx)(h.Z,{children:"Container Images"}),(0,v.jsx)("span",{className:"muted",children:"Specify the container images used by the Tenant and its features."})]}),(0,v.jsx)(s.Wzg,{id:"image",name:"image",onChange:e=>{j("imageName",e.target.value),C("image")},label:"MinIO",value:n,error:y.image||"",placeholder:"minio/minio:RELEASE.2024-03-05T04-48-44Z"}),(0,v.jsx)(s.Wzg,{id:"kesImage",name:"kesImage",onChange:e=>{j("kesImage",e.target.value),C("kesImage")},label:"KES",value:p,error:y.kesImage||"",placeholder:"minio/kes:2024-03-01T18-06-46Z"}),t&&(0,v.jsxs)(a.Fragment,{children:[(0,v.jsx)(s.xuv,{className:"inputItem",children:(0,v.jsx)("h4",{children:"Custom Container Registry"})}),(0,v.jsx)(s.rsf,{value:"custom_docker_hub",id:"custom_docker_hub",name:"custom_docker_hub",checked:r,onChange:e=>{const t=e.target.checked;j("customDockerhub",t)},label:"Use a private container registry"})]}),r&&(0,v.jsxs)(a.Fragment,{children:[(0,v.jsx)(s.Wzg,{id:"registry",name:"registry",onChange:e=>{j("imageRegistry",e.target.value)},label:"Endpoint",value:i,error:y.registry||"",placeholder:"https://index.docker.io/v1/",required:!0}),(0,v.jsx)(s.Wzg,{id:"registryUsername",name:"registryUsername",onChange:e=>{j("imageRegistryUsername",e.target.value)},label:"Username",value:o,error:y.registryUsername||"",required:!0}),(0,v.jsx)(s.Wzg,{id:"registryPassword",name:"registryPassword",onChange:e=>{j("imageRegistryPassword",e.target.value)},label:"Password",value:c,error:y.registryPassword||"",required:!0})]})]})};var U=n(5248);const O=()=>{const e=(0,l.v9)((e=>e.createTenant.fields.tenantSize.nodes)),t=(0,l.v9)((e=>e.createTenant.fields.tenantSize.resourcesMemoryRequest)),n=(0,l.v9)((e=>e.createTenant.fields.tenantSize.ecParity)),r=(0,l.v9)((e=>e.createTenant.fields.tenantSize.distribution)),i=(0,l.v9)((e=>e.createTenant.fields.tenantSize.ecParityCalc)),o=(0,l.v9)((e=>e.createTenant.fields.tenantSize.resourcesCPURequest)),c=(0,l.v9)((e=>e.createTenant.fields.tenantSize.integrationSelection)),d=i.storageFactors.find((e=>e.erasureCode===n));return(0,v.jsxs)(s.xuv,{sx:{margin:4,"& table":{fontSize:13,"& td":{padding:8}}},children:[(0,v.jsx)(s.AG2,{label:"Resource Allocation",sx:{margin:4,padding:"5px 0"}}),(0,v.jsx)(s.iA_,{children:(0,v.jsxs)(s.RMI,{children:[(0,v.jsxs)(s.SCH,{children:[(0,v.jsx)(s.pj1,{scope:"row",children:"Number of Servers"}),(0,v.jsx)(s.pj1,{sx:{textAlign:"right"},children:parseInt(e)>0?e:"-"})]}),""===c.typeSelection&&""===c.storageClass&&(0,v.jsxs)(a.Fragment,{children:[(0,v.jsxs)(s.SCH,{children:[(0,v.jsx)(s.pj1,{scope:"row",children:"Drives per Server"}),(0,v.jsx)(s.pj1,{sx:{textAlign:"right"},children:r?r.disks:"-"})]}),(0,v.jsxs)(s.SCH,{children:[(0,v.jsx)(s.pj1,{scope:"row",children:"Drive Capacity"}),(0,v.jsx)(s.pj1,{sx:{textAlign:"right"},children:r?(0,U.ae)(r.pvSize):"-"})]})]}),(0,v.jsxs)(s.SCH,{children:[(0,v.jsx)(s.pj1,{scope:"row",children:"Total Volumes"}),(0,v.jsx)(s.pj1,{sx:{textAlign:"right"},children:r?r.persistentVolumes:"-"})]}),""===c.typeSelection&&""===c.storageClass&&(0,v.jsxs)(a.Fragment,{children:[(0,v.jsxs)(s.SCH,{children:[(0,v.jsx)(s.pj1,{scope:"row",children:"Memory per Node"}),(0,v.jsxs)(s.pj1,{sx:{textAlign:"right"},children:[t," Gi"]})]}),(0,v.jsxs)(s.SCH,{children:[(0,v.jsx)(s.pj1,{style:{borderBottom:0},scope:"row",children:"CPU Selection"}),(0,v.jsx)(s.pj1,{style:{borderBottom:0},sx:{textAlign:"right"},children:o})]})]})]})}),0===i.error&&d&&(0,v.jsxs)(a.Fragment,{children:[(0,v.jsx)(s.AG2,{label:"Erasure Code Configuration",sx:{margin:4,padding:"5px 0"}}),(0,v.jsx)(s.iA_,{children:(0,v.jsxs)(s.RMI,{children:[(0,v.jsxs)(s.SCH,{children:[(0,v.jsx)(s.pj1,{scope:"row",children:"EC Parity"}),(0,v.jsx)(s.pj1,{sx:{textAlign:"right"},children:""!==n?n:"-"})]}),(0,v.jsxs)(s.SCH,{children:[(0,v.jsx)(s.pj1,{scope:"row",children:"Raw Capacity"}),(0,v.jsx)(s.pj1,{sx:{textAlign:"right"},children:(0,U.ae)(i.rawCapacity)})]}),(0,v.jsxs)(s.SCH,{children:[(0,v.jsx)(s.pj1,{scope:"row",children:"Usable Capacity"}),(0,v.jsx)(s.pj1,{sx:{textAlign:"right"},children:n===U.Xu?(0,U.ae)(i.rawCapacity):(0,U.ae)(d.maxCapacity)})]}),(0,v.jsxs)(s.SCH,{children:[(0,v.jsx)(s.pj1,{style:{borderBottom:0},scope:"row",children:"Server Failures Tolerated"}),(0,v.jsx)(s.pj1,{style:{borderBottom:0},sx:{textAlign:"right"},children:n===U.Xu?0:r&&r.disks>0&&d.maxFailureTolerations?Math.floor(d.maxFailureTolerations/r.disks):"-"})]})]})})]}),""!==c.typeSelection&&""!==c.storageClass&&(0,v.jsxs)(a.Fragment,{children:[(0,v.jsx)(s.AG2,{label:"Single Instance Configuration",sx:{margin:4,padding:"5px 0"}}),(0,v.jsx)(s.iA_,{children:(0,v.jsxs)(s.RMI,{children:[(0,v.jsxs)(s.SCH,{children:[(0,v.jsx)(s.pj1,{scope:"row",children:"CPU"}),(0,v.jsx)(s.pj1,{sx:{textAlign:"right"},children:0!==c.CPU?c.CPU:"-"})]}),(0,v.jsxs)(s.SCH,{children:[(0,v.jsx)(s.pj1,{scope:"row",children:"Memory"}),(0,v.jsx)(s.pj1,{sx:{textAlign:"right"},children:0!==c.memory?"".concat(c.memory," Gi"):"-"})]}),(0,v.jsxs)(s.SCH,{children:[(0,v.jsx)(s.pj1,{scope:"row",children:"Drives per Server"}),(0,v.jsx)(s.pj1,{sx:{textAlign:"right"},children:0!==c.drivesPerServer?"".concat(c.drivesPerServer):"-"})]}),(0,v.jsxs)(s.SCH,{children:[(0,v.jsx)(s.pj1,{style:{borderBottom:0},scope:"row",children:"Drive Size"}),(0,v.jsxs)(s.pj1,{style:{borderBottom:0},sx:{textAlign:"right"},children:[c.driveSize.driveSize,c.driveSize.sizeUnit]})]})]})})]})]})};var G=n(9720),M=n(8573),q=n.n(M),W=n(8222),B=n(3508);const Z=()=>{const e=(0,m.TL)(),t=(0,l.v9)((e=>e.createTenant.fields.nameTenant.namespace)),n=(0,l.v9)((e=>e.createTenant.addNSLoading)),r=(0,l.v9)((e=>e.createTenant.addNSOpen));return(0,v.jsx)(B.Z,{title:"New namespace",confirmText:"Create",confirmButtonProps:{variant:"callAction"},isOpen:r,titleIcon:(0,v.jsx)(s.EjK,{}),isLoading:n,onConfirm:()=>{e((0,W.QD)())},onClose:()=>{e((0,u.pb)())},confirmationContent:(0,v.jsxs)(a.Fragment,{children:[n&&(0,v.jsx)(s.kod,{}),"Are you sure you want to add a namespace called",(0,v.jsx)("br",{}),(0,v.jsx)("b",{style:{maxWidth:"200px",whiteSpace:"normal",wordWrap:"break-word"},children:t}),"?"]})})},V=e=>{let{formToRender:t}=e;const n=(0,m.TL)(),r=(0,l.v9)((e=>e.createTenant.fields.nameTenant.namespace)),i=(0,l.v9)((e=>e.createTenant.showNSCreateButton)),o=(0,l.v9)((e=>e.createTenant.validationErrors.namespace)),c=(0,l.v9)((e=>e.createTenant.addNSOpen)),d=(0,a.useMemo)((()=>q()((()=>{n((0,W.IO)())}),500)),[n]);(0,a.useEffect)((()=>{if(""!==r)return d(),d.cancel}),[d,r]);return(0,v.jsxs)(a.Fragment,{children:[c&&(0,v.jsx)(Z,{}),(0,v.jsx)(s.Wzg,{id:"namespace",name:"namespace",onChange:e=>{n((0,u.Zx)(e.target.value))},label:"Namespace",value:r,error:o||"",overlayIcon:i?(0,v.jsx)(s.dtP,{}):null,overlayAction:()=>{n((0,u.Oj)())},required:!0})]})},H=()=>{const e=(0,m.TL)(),t=(0,l.v9)((e=>e.createTenant.fields.nameTenant.tenantName)),n=(0,l.v9)((e=>e.createTenant.validationErrors["tenant-name"]));return(0,v.jsx)(s.Wzg,{id:"tenant-name",name:"tenant-name",onChange:t=>{e((0,u.V7)(t.target.value))},label:"Name",value:t,required:!0,error:n||""})},$=e=>{let{formToRender:t}=e;const n=(0,m.TL)(),r=(0,l.v9)((e=>e.createTenant.fields.nameTenant.selectedStorageClass)),o=(0,l.v9)((e=>e.createTenant.fields.nameTenant.selectedStorageType)),p=(0,l.v9)((e=>e.createTenant.storageClasses)),g=(0,l.v9)(d.$4),x=(0,a.useCallback)(((e,t)=>{n((0,u.HM)({pageName:"nameTenant",field:e,value:t}))}),[n]);return(0,a.useEffect)((()=>{const e=t===c.cy.default&&p.length>0||t!==c.cy.default&&""!==o;n((0,u.NO)({pageName:"nameTenant",valid:e}))}),[p,n,o,t]),(0,v.jsx)(a.Fragment,{children:(0,v.jsxs)(s.rjZ,{container:!0,sx:{justifyContent:"space-between"},children:[(0,v.jsx)(s.rjZ,{item:!0,sx:{width:"calc(100% - 320px)"},children:(0,v.jsx)(s.xuv,{sx:{minHeight:550},children:(0,v.jsxs)(s.ltY,{withBorders:!1,containerPadding:!1,children:[(0,v.jsxs)(s.xuv,{className:"inputItem",children:[(0,v.jsx)(h.Z,{children:"Name"}),(0,v.jsx)("span",{className:"muted",children:"How would you like to name this new tenant?"})]}),(0,v.jsx)(H,{}),(0,v.jsx)(V,{formToRender:t}),t===c.cy.default?(0,v.jsx)(s.PhF,{id:"storage_class",name:"storage_class",onChange:e=>{x("selectedStorageClass",e)},label:"Storage Class",value:r,options:p,disabled:p.length<1}):(0,v.jsx)(s.PhF,{id:"storage_type",name:"storage_type",onChange:e=>{n((0,u.Qy)({storageType:e,features:g}))},label:i()(c.Hd,"".concat(t,".variantSelectorLabel"),"Storage Type"),value:o,options:i()(c.Hd,"".concat(t,".variantSelectorValues"),[])}),t===c.cy.default?(0,v.jsx)(G.Z,{}):i()(c.Hd,"".concat(t,".sizingComponent"),null)]})})}),(0,v.jsx)(s.rjZ,{item:!0,xs:"hidden",sm:"hidden",children:(0,v.jsx)(s.xuv,{sx:{marginLeft:10,padding:2,marginTop:20},withBorders:!0,useBackground:!0,children:(0,v.jsx)(O,{})})})]})})},Y=()=>{const e=(0,l.v9)(d.$4),[t,n]=(0,a.useState)(null);return(0,a.useEffect)((()=>{let t=c.cy.default;if(e&&0!==e.length){Object.keys(c.I8).forEach((n=>{e.includes(n)&&(t=i()(c.I8,n,c.cy.default))}))}n(t)}),[e]),null===t?null:(0,v.jsx)($,{formToRender:t})},X=["nameTenant","tenantSize","configure","affinity","identityProvider","security","encryption"];var Q=n(4218);const J=()=>{const e=(0,m.TL)(),t=(0,l.v9)((e=>e.createTenant.addingTenant)),n=(0,l.v9)((e=>e.createTenant.validPages)),a=(0,l.v9)((e=>e.createTenant.fields.nameTenant.selectedStorageClass)),r=!t&&""!==a&&X.every((e=>n.includes(e)));return(0,v.jsx)(s.zxk,{id:"wizard-button-Create",variant:"callAction",color:"primary",onClick:()=>{e((0,Q.e)())},disabled:!r,label:"Create"},"button-AddTenant-Create")};var ee=n(7798);const te=()=>{const e=(0,m.TL)(),t=(0,o.s0)(),n=(0,l.v9)((e=>e.createTenant.showNewCredentials)),r=(0,l.v9)((e=>e.createTenant.createdAccount));return(0,v.jsx)(a.Fragment,{children:n&&(0,v.jsx)(ee.default,{newServiceAccount:r,open:n,closeModal:()=>{e((0,u.dS)()),t("/tenants")},entity:"Tenant"})})};var ne=n(9435);const ae=()=>{const e=(0,m.TL)(),t=(0,o.s0)(),n=(0,l.v9)(d.$4),r=(0,l.v9)((e=>e.createTenant.addingTenant)),[p,g]=(0,a.useState)(null);(0,a.useEffect)((()=>{let e=c.cy.default;if(n&&0!==n.length){Object.keys(c.I8).forEach((t=>{n.includes(t)&&(e=i()(c.I8,t,c.cy.default))}))}g(e)}),[n]);const x={label:"Cancel",type:"custom",enabled:!0,action:()=>{e((0,u.dS)()),t("/tenants")}},h={componentRender:(0,v.jsx)(J,{},"create-tenant")},y=[{label:"Setup",componentRender:(0,v.jsx)(Y,{}),buttons:[x,h]},{label:"Configure",advancedOnly:!0,componentRender:(0,v.jsx)(f,{}),buttons:[x,h]},{label:"Images",advancedOnly:!0,componentRender:(0,v.jsx)(F,{}),buttons:[x,h]},{label:"Pod Placement",advancedOnly:!0,componentRender:(0,v.jsx)(L,{}),buttons:[x,h]},{label:"Identity Provider",advancedOnly:!0,componentRender:(0,v.jsx)(_,{}),buttons:[x,h]},{label:"Security",advancedOnly:!0,componentRender:(0,v.jsx)(T,{}),buttons:[x,h]},{label:"Encryption",advancedOnly:!0,componentRender:(0,v.jsx)(z,{}),buttons:[x,h]}];return(0,v.jsxs)(a.Fragment,{children:[(0,v.jsx)(te,{}),(0,v.jsx)(ne.Z,{label:(0,v.jsx)(s.hbI,{onClick:()=>{e((0,u.dS)()),t("/tenants")},label:"Tenants"})}),(0,v.jsxs)(s.Xgh,{variant:"constrained",children:[r&&(0,v.jsx)(s.rjZ,{item:!0,xs:12,children:(0,v.jsx)(s.kod,{})}),(0,v.jsx)(s.xuv,{withBorders:!0,customBorderPadding:"0px",sx:{"& .muted":{fontSize:13}},children:(0,v.jsx)(s.ent,{wizardSteps:y,linearMode:!1})}),p===c.cy.aws&&(0,v.jsx)(s.rjZ,{item:!0,xs:12,style:{marginTop:16},children:(0,v.jsx)(s.KfX,{title:"EBS Volume Configuration.",iconComponent:(0,v.jsx)(s.idV,{}),help:(0,v.jsxs)(a.Fragment,{children:[(0,v.jsx)("b",{children:"Performance Optimized"}),": Uses the ",(0,v.jsx)("i",{children:"gp3"})," EBS storage class class configured at 1,000Mi/s throughput and 16,000 IOPS, however the minimum volume size for this type of EBS volume is ",(0,v.jsx)("b",{children:"32Gi"}),".",(0,v.jsx)("br",{}),(0,v.jsx)("br",{}),(0,v.jsx)("b",{children:"Storage Optimized"}),": Uses the ",(0,v.jsx)("i",{children:"sc1"})," EBS storage class, however the minimum volume size for this type of EBS volume is \xa0",(0,v.jsx)("b",{children:"16Ti"})," to unlock their maximum throughput speed of 250Mi/s."]})})})]})]})}},8070:(e,t,n)=>{n.d(t,{Z:()=>o});n(2791);var a=n(9434),r=n(9945),i=n(7689),s=n(184);const l=e=>{let{icon:t,description:n}=e;return(0,s.jsxs)(r.xuv,{sx:{display:"flex","& .min-icon":{marginRight:"10px",height:"23px",width:"23px",marginBottom:"10px"}},children:[t," ",(0,s.jsx)(r.xuv,{className:"muted",sx:{fontSize:"14px",fontStyle:"italic"},children:n})]})},o=()=>{const e=(0,i.UO)(),t=e.tenantName||"",n=e.tenantNamespace||"",o=(0,a.v9)((e=>""!==n?n:""!==e.createTenant.fields.nameTenant.namespace?e.createTenant.fields.nameTenant.namespace:"")),c=(0,a.v9)((e=>""!==t?t:""!==e.createTenant.fields.nameTenant.tenantName?e.createTenant.fields.nameTenant.tenantName:""));return(0,s.jsx)(r.xuv,{sx:{flex:1,border:"1px solid #eaeaea",borderRadius:"2px",display:"flex",flexFlow:"column",padding:"20px",["@media (max-width: ".concat(r.Egj.sm,"px)")]:{marginTop:0}},children:(0,s.jsxs)(r.xuv,{sx:{display:"flex",flexFlow:"column"},children:[(0,s.jsx)(l,{icon:(0,s.jsx)(r.Baz,{}),description:"TLS Certificates Warning"}),(0,s.jsxs)(r.xuv,{sx:{fontSize:"14px",marginBottom:"15px"},children:["Automatic certificate generation is not enabled.",(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),"If you wish to continue only with ",(0,s.jsx)("b",{children:"custom certificates"})," make sure they are valid for the following internode hostnames, i.e.:",(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),(0,s.jsxs)(r.xuv,{sx:{fontSize:"14px",fontStyle:"italic"},className:"muted",children:["minio.",o,(0,s.jsx)("br",{}),"minio.",o,".svc",(0,s.jsx)("br",{}),"minio.",o,".svc.",(0,s.jsx)("br",{}),"*.",c,"-hl.",o,".svc.",(0,s.jsx)("br",{}),"*.",o,".svc."]}),(0,s.jsx)("br",{}),"Replace ",(0,s.jsx)("em",{children:""}),","," ",(0,s.jsx)("em",{children:""})," and",(0,s.jsx)("em",{children:""})," with the actual values for your MinIO tenant.",(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),"You can learn more at our"," ",(0,s.jsx)("a",{href:"https://min.io/docs/minio/kubernetes/upstream/operations/network-encryption.html?ref=op#id5",target:"_blank",rel:"noopener",children:"documentation"}),"."]})]})})}}}]); -//# sourceMappingURL=162.58762974.chunk.js.map \ No newline at end of file diff --git a/web-app/build/static/js/204.3a5ec564.chunk.js b/web-app/build/static/js/204.3a5ec564.chunk.js new file mode 100644 index 00000000000..4af5b755c51 --- /dev/null +++ b/web-app/build/static/js/204.3a5ec564.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[204],{2204:(e,t,a)=>{a.r(t),a.d(t,{default:()=>x});var s=a(5043),n=a(9923),r=a(4574),c=a(3216),p=a(9161),i=a(579);const o=r.Ay.iframe((()=>({border:"0px",flex:"1 1 auto",minHeight:"800px",width:"100%"}))),x=()=>{const{tenantName:e,tenantNamespace:t}=(0,c.g)(),[a,r]=(0,s.useState)(!0);return(0,i.jsxs)(s.Fragment,{children:[(0,i.jsx)(n._xt,{separator:!0,sx:{marginBottom:15},children:"Metrics"}),a&&(0,i.jsx)("div",{style:{marginTop:"80px"},children:(0,i.jsx)(n.z21,{})}),(0,i.jsx)(o,{title:"metrics",src:"/api/proxy/".concat(t||"","/").concat(e||"").concat(p.zZ.DASHBOARD,"?cp=y"),onLoad:()=>{r(!1)}})]})}}}]); +//# sourceMappingURL=204.3a5ec564.chunk.js.map \ No newline at end of file diff --git a/web-app/build/static/js/495.b9506235.chunk.js.map b/web-app/build/static/js/204.3a5ec564.chunk.js.map similarity index 95% rename from web-app/build/static/js/495.b9506235.chunk.js.map rename to web-app/build/static/js/204.3a5ec564.chunk.js.map index c7cc13f8da2..ec259c17627 100644 --- a/web-app/build/static/js/495.b9506235.chunk.js.map +++ b/web-app/build/static/js/204.3a5ec564.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/495.b9506235.chunk.js","mappings":"8LAsBA,MAAMA,EAAkBC,EAAAA,GAAOC,QAAO,MACpCC,OAAQ,MACRC,KAAM,WACNC,UAAW,QACXC,MAAO,WA+BT,EA5BsBC,KACpB,MAAM,WAAEC,EAAU,gBAAEC,IAAoBC,EAAAA,EAAAA,OAEjCC,EAASC,IAAcC,EAAAA,EAAAA,WAAkB,GAEhD,OACEC,EAAAA,EAAAA,MAACC,EAAAA,SAAQ,CAAAC,SAAA,EACPC,EAAAA,EAAAA,KAACC,EAAAA,IAAY,CAACC,WAAS,EAACC,GAAI,CAAEC,aAAc,IAAKL,SAAC,YAGjDL,IACCM,EAAAA,EAAAA,KAAA,OAAKK,MAAO,CAAEC,UAAW,QAASP,UAChCC,EAAAA,EAAAA,KAACO,EAAAA,IAAW,OAGhBP,EAAAA,EAAAA,KAACjB,EAAe,CACdyB,MAAO,UACPC,IAAG,cAAAC,OAAgBlB,GAAmB,GAAE,KAAAkB,OAAInB,GAAc,IAAEmB,OAC1DC,EAAAA,GAAUC,UAAS,SAErBC,OAAQA,KACNlB,GAAW,EAAM,MAGZ,C","sources":["screens/Console/Tenants/TenantDetails/TenantMetrics.tsx"],"sourcesContent":["// This file is part of MinIO Operator\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useState } from \"react\";\nimport { SectionTitle, ProgressBar } from \"mds\";\nimport styled from \"styled-components\";\nimport { useParams } from \"react-router-dom\";\nimport { IAM_PAGES } from \"../../../../common/SecureComponent/permissions\";\n\nconst IFrameContainer = styled.iframe(() => ({\n border: \"0px\",\n flex: \"1 1 auto\",\n minHeight: \"800px\",\n width: \"100%\",\n}));\n\nconst TenantMetrics = () => {\n const { tenantName, tenantNamespace } = useParams();\n\n const [loading, setLoading] = useState(true);\n\n return (\n \n \n Metrics\n \n {loading && (\n
\n \n
\n )}\n {\n setLoading(false);\n }}\n />\n
\n );\n};\n\nexport default TenantMetrics;\n"],"names":["IFrameContainer","styled","iframe","border","flex","minHeight","width","TenantMetrics","tenantName","tenantNamespace","useParams","loading","setLoading","useState","_jsxs","Fragment","children","_jsx","SectionTitle","separator","sx","marginBottom","style","marginTop","ProgressBar","title","src","concat","IAM_PAGES","DASHBOARD","onLoad"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/204.3a5ec564.chunk.js","mappings":"8LAsBA,MAAMA,EAAkBC,EAAAA,GAAOC,QAAO,MACpCC,OAAQ,MACRC,KAAM,WACNC,UAAW,QACXC,MAAO,WA+BT,EA5BsBC,KACpB,MAAM,WAAEC,EAAU,gBAAEC,IAAoBC,EAAAA,EAAAA,MAEjCC,EAASC,IAAcC,EAAAA,EAAAA,WAAkB,GAEhD,OACEC,EAAAA,EAAAA,MAACC,EAAAA,SAAQ,CAAAC,SAAA,EACPC,EAAAA,EAAAA,KAACC,EAAAA,IAAY,CAACC,WAAS,EAACC,GAAI,CAAEC,aAAc,IAAKL,SAAC,YAGjDL,IACCM,EAAAA,EAAAA,KAAA,OAAKK,MAAO,CAAEC,UAAW,QAASP,UAChCC,EAAAA,EAAAA,KAACO,EAAAA,IAAW,OAGhBP,EAAAA,EAAAA,KAACjB,EAAe,CACdyB,MAAO,UACPC,IAAG,cAAAC,OAAgBlB,GAAmB,GAAE,KAAAkB,OAAInB,GAAc,IAAEmB,OAC1DC,EAAAA,GAAUC,UAAS,SAErBC,OAAQA,KACNlB,GAAW,EAAM,MAGZ,C","sources":["screens/Console/Tenants/TenantDetails/TenantMetrics.tsx"],"sourcesContent":["// This file is part of MinIO Operator\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useState } from \"react\";\nimport { SectionTitle, ProgressBar } from \"mds\";\nimport styled from \"styled-components\";\nimport { useParams } from \"react-router-dom\";\nimport { IAM_PAGES } from \"../../../../common/SecureComponent/permissions\";\n\nconst IFrameContainer = styled.iframe(() => ({\n border: \"0px\",\n flex: \"1 1 auto\",\n minHeight: \"800px\",\n width: \"100%\",\n}));\n\nconst TenantMetrics = () => {\n const { tenantName, tenantNamespace } = useParams();\n\n const [loading, setLoading] = useState(true);\n\n return (\n \n \n Metrics\n \n {loading && (\n
\n \n
\n )}\n {\n setLoading(false);\n }}\n />\n
\n );\n};\n\nexport default TenantMetrics;\n"],"names":["IFrameContainer","styled","iframe","border","flex","minHeight","width","TenantMetrics","tenantName","tenantNamespace","useParams","loading","setLoading","useState","_jsxs","Fragment","children","_jsx","SectionTitle","separator","sx","marginBottom","style","marginTop","ProgressBar","title","src","concat","IAM_PAGES","DASHBOARD","onLoad"],"sourceRoot":""} \ No newline at end of file diff --git a/web-app/build/static/js/21.736e7ab9.chunk.js b/web-app/build/static/js/21.736e7ab9.chunk.js deleted file mode 100644 index 7a490a29cca..00000000000 --- a/web-app/build/static/js/21.736e7ab9.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[21],{3814:(e,a,t)=>{t.d(a,{I:()=>r,O:()=>n});const n={label:{color:"#07193E",fontSize:13,alignSelf:"center",whiteSpace:"nowrap","&:not(:first-of-type)":{marginLeft:10}},actionsTray:{display:"flex",justifyContent:"space-between",marginBottom:"1rem",alignItems:"center","& button":{flexGrow:0,marginLeft:8}}},r={modalButtonBar:{marginTop:15,display:"flex",alignItems:"center",justifyContent:"flex-end","& button":{marginRight:10},"& button:last-child":{marginRight:0}},modalFormScrollable:{maxHeight:"calc(100vh - 300px)",overflowY:"auto",paddingTop:10}}},7021:(e,a,t)=>{t.r(a),t.d(a,{default:()=>h});var n=t(2791),r=t(9945),i=t(9434),s=t(3814),l=t(4741),o=t(968),d=t(7995),c=t(1320),u=t(3508),p=t(1207),g=t(184);const h=()=>{const e=(0,c.TL)(),a=(0,i.v9)((e=>e.tenants.tenantInfo)),t=(0,i.v9)((e=>e.tenants.loadingTenant)),[h,_]=(0,n.useState)(!1),[m,v]=(0,n.useState)(!1),[x,D]=(0,n.useState)("Built-in"),[j,S]=(0,n.useState)(""),[I,f]=(0,n.useState)(""),[b,y]=(0,n.useState)(""),[k,N]=(0,n.useState)(""),[C,A]=(0,n.useState)(""),[L,B]=(0,n.useState)(""),[w,T]=(0,n.useState)(""),[U,O]=(0,n.useState)(""),[R,F]=(0,n.useState)(""),[z,W]=(0,n.useState)(""),[G,P]=(0,n.useState)(""),[q,Z]=(0,n.useState)(""),[K,E]=(0,n.useState)(""),[J,V]=(0,n.useState)(!1),[Y,H]=(0,n.useState)(!1),[M,Q]=(0,n.useState)(!1),[X,$]=(0,n.useState)([""]),[ee,ae]=(0,n.useState)([""]),[te,ne]=(0,n.useState)({}),re=e=>{ne((0,l.h)(te,e))},[ie,se]=(0,n.useState)(!1);(0,n.useEffect)((()=>{let e=[];"OpenID"===x&&(e=[...e,{fieldKey:"openID_CONFIGURATION_URL",required:!0,value:j},{fieldKey:"openID_clientID",required:!0,value:I},{fieldKey:"openID_secretID",required:!0,value:b},{fieldKey:"openID_claimName",required:!1,value:C}]),"AD"===x&&(e=[...e,{fieldKey:"AD_URL",required:!0,value:w},{fieldKey:"ad_lookupBindDN",required:!0,value:U}]);const a=(0,o.R)(e);se(0===Object.keys(a).length),ne(a)}),[x,j,I,b,C,w,U]);const le=(0,n.useCallback)((()=>{p.Z.invoke("GET","/api/v1/namespaces/".concat(null===a||void 0===a?void 0:a.namespace,"/tenants/").concat(null===a||void 0===a?void 0:a.name,"/identity-provider")).then((e=>{e&&(e.oidc?(D("OpenID"),S(e.oidc.configuration_url),f(e.oidc.client_id),y(e.oidc.secret_id),N(e.oidc.callback_url),A(e.oidc.claim_name),B(e.oidc.scopes)):e.active_directory&&(D("AD"),T(e.active_directory.url),O(e.active_directory.lookup_bind_dn),F(e.active_directory.lookup_bind_password),W(e.active_directory.user_dn_search_base_dn),P(e.active_directory.user_dn_search_filter),Z(e.active_directory.group_search_base_dn),E(e.active_directory.group_search_filter),V(e.active_directory.skip_tls_verification),H(e.active_directory.server_insecure),Q(e.active_directory.server_start_tls)))})).catch((a=>{e((0,d.Ih)(a))}))}),[a,e]);(0,n.useEffect)((()=>{a&&le()}),[a,le]);return(0,g.jsxs)(n.Fragment,{children:[(0,g.jsx)(u.Z,{title:"Save and Restart",confirmText:"Restart",cancelText:"Cancel",titleIcon:(0,g.jsx)(r.EjK,{}),isLoading:h,onClose:()=>v(!1),isOpen:m,onConfirm:()=>{_(!0);let t={};switch(x){case"AD":t.active_directory={url:w,lookup_bind_dn:U,lookup_bind_password:R,user_dn_search_base_dn:z,user_dn_search_filter:G,group_search_base_dn:q,group_search_filter:K,skip_tls_verification:J,server_insecure:Y,server_start_tls:M};break;case"OpenID":t.oidc={configuration_url:j,client_id:I,secret_id:b,callback_url:k,claim_name:C,scopes:L}}p.Z.invoke("POST","/api/v1/namespaces/".concat(null===a||void 0===a?void 0:a.namespace,"/tenants/").concat(null===a||void 0===a?void 0:a.name,"/identity-provider"),t).then((()=>{_(!1),v(!1),le()})).catch((a=>{e((0,d.Ih)(a)),_(!1)}))},confirmationContent:(0,g.jsx)(n.Fragment,{children:"Are you sure you want to save the changes and restart the service?"})}),t?(0,g.jsx)(r.xuv,{sx:{textAlign:"center"},children:(0,g.jsx)(r.aNw,{})}):(0,g.jsxs)(n.Fragment,{children:[(0,g.jsx)(r.xuv,{children:(0,g.jsx)(r.NZf,{separator:!0,sx:{marginBottom:15},children:"Identity Provider"})}),(0,g.jsxs)(r.ltY,{children:[(0,g.jsx)(r.Eep,{currentValue:x,id:"idp-options",name:"idp-options",label:"Protocol",onChange:e=>{D(e.target.value)},selectorOptions:[{label:"Built-in",value:"Built-in",icon:(0,g.jsx)(r.oyc,{})},{label:"Open ID",value:"OpenID",icon:(0,g.jsx)(r.gyG,{})},{label:"LDAP / Active Directory",value:"AD",icon:(0,g.jsx)(r.vcZ,{})}]}),"OpenID"===x&&(0,g.jsxs)(n.Fragment,{children:[(0,g.jsx)(r.Wzg,{id:"openID_CONFIGURATION_URL",name:"openID_CONFIGURATION_URL",onChange:e=>{S(e.target.value),re("openID_CONFIGURATION_URL")},label:"Configuration URL",value:j,placeholder:"https://your-identity-provider.com/.well-known/openid-configuration",error:te.openID_CONFIGURATION_URL||"",required:!0}),(0,g.jsx)(r.Wzg,{id:"openID_clientID",name:"openID_clientID",onChange:e=>{f(e.target.value),re("openID_clientID")},label:"Client ID",value:I,error:te.openID_clientID||"",required:!0}),(0,g.jsx)(r.Wzg,{type:"password",id:"openID_secretID",name:"openID_secretID",onChange:e=>{y(e.target.value),re("openID_secretID")},label:"Secret ID",value:b,error:te.openID_secretID||"",required:!0}),(0,g.jsx)(r.Wzg,{id:"openID_claimName",name:"openID_claimName",onChange:e=>{A(e.target.value),re("openID_claimName")},label:"Claim Name",value:C,placeholder:"policy",error:te.openID_claimName||""}),(0,g.jsx)(r.Wzg,{id:"openID_scopes",name:"openID_scopes",onChange:e=>{B(e.target.value),re("openID_scopes")},label:"Scopes",value:L})]}),"AD"===x&&(0,g.jsxs)(n.Fragment,{children:[(0,g.jsx)(r.Wzg,{id:"AD_URL",name:"AD_URL",onChange:e=>{T(e.target.value),re("AD_URL")},label:"LDAP Server Address",value:w,placeholder:"ldap-server:636",error:te.AD_URL||"",required:!0}),(0,g.jsx)(r.rsf,{value:"ad_skipTLS",id:"ad_skipTLS",name:"ad_skipTLS",checked:J,onChange:e=>{const a=e.target.checked;V(a)},label:"Skip TLS Verification"}),(0,g.jsx)(r.rsf,{value:"ad_serverInsecure",id:"ad_serverInsecure",name:"ad_serverInsecure",checked:Y,onChange:e=>{const a=e.target.checked;H(a)},label:"Server Insecure"}),Y?(0,g.jsx)(r.J6i,{title:"Warning",message:"All traffic with Active Directory will be\n unencrypted",variant:"warning",sx:{marginBottom:15}}):null,(0,g.jsx)(r.rsf,{value:"ad_serverStartTLS",id:"ad_serverStartTLS",name:"ad_serverStartTLS",checked:M,onChange:e=>{const a=e.target.checked;Q(a)},label:"Start TLS connection to AD/LDAP server"}),(0,g.jsx)(r.Wzg,{id:"ad_lookupBindDN",name:"ad_lookupBindDN",onChange:e=>{O(e.target.value),re("ad_lookupBindDN")},label:"Lookup Bind DN",value:U,placeholder:"cn=admin,dc=min,dc=io",error:te.ad_lookupBindDN||"",required:!0}),(0,g.jsx)(r.Wzg,{type:"password",id:"ad_lookupBindPassword",name:"ad_lookupBindPassword",onChange:e=>{F(e.target.value)},label:"Lookup Bind Password",value:R,placeholder:"admin"}),(0,g.jsx)(r.Wzg,{id:"ad_userDNSearchBaseDN",name:"ad_userDNSearchBaseDN",onChange:e=>{W(e.target.value)},label:"User DN Search Base DN",value:z,placeholder:"dc=min,dc=io"}),(0,g.jsx)(r.Wzg,{id:"ad_userDNSearchFilter",name:"ad_userDNSearchFilter",onChange:e=>{P(e.target.value)},label:"User DN Search Filter",value:G,placeholder:"(sAMAcountName=%s)"}),(0,g.jsx)(r.Wzg,{id:"ad_groupSearchBaseDN",name:"ad_groupSearchBaseDN",onChange:e=>{Z(e.target.value)},label:"Group Search Base DN",value:q,placeholder:"ou=hwengg,dc=min,dc=io;ou=swengg,dc=min,dc=io"}),(0,g.jsx)(r.Wzg,{id:"ad_groupSearchFilter",name:"ad_groupSearchFilter",onChange:e=>{E(e.target.value)},label:"Group Search Filter",value:K,placeholder:"(&(objectclass=groupOfNames)(member=%s))"})]}),(0,g.jsx)(r.xuv,{sx:s.I.modalButtonBar,children:(0,g.jsx)(r.zxk,{id:"save-idp",type:"submit",variant:"callAction",color:"primary",disabled:!ie||h,onClick:()=>v(!0),label:"Save"})}),"AD"===x&&(0,g.jsxs)(n.Fragment,{children:[(0,g.jsx)(r.NZf,{separator:!0,children:"User & Group management"}),(0,g.jsx)("br",{}),(0,g.jsxs)("fieldset",{className:"inputItem",children:[(0,g.jsx)("legend",{children:"List of user DNs (Distinguished Names) to be added as Tenant Administrators"}),(0,g.jsx)(r.rjZ,{item:!0,xs:12,children:X.map(((e,a)=>(0,g.jsx)(n.Fragment,{children:(0,g.jsxs)(r.xuv,{sx:{display:"flex",marginBottom:10},children:[(0,g.jsx)(r.Wzg,{id:"ad-userdn-".concat(a.toString()),label:"",placeholder:"",name:"ad-userdn-".concat(a.toString()),value:X[a],onChange:e=>{$(X.map(((t,n)=>n===a?e.target.value:t)))},index:a,error:te["ad-userdn-".concat(a.toString())]||""},"csv-ad-userdn-".concat(a.toString())),(0,g.jsxs)(r.xuv,{sx:{marginLeft:10,display:"flex",height:38},children:[(0,g.jsx)(r.ua7,{tooltip:"Add User","aria-label":"add",children:(0,g.jsx)(r.hU,{size:"small",onClick:()=>{$([...X,""])},children:(0,g.jsx)(r.dtP,{})})}),(0,g.jsx)(r.ua7,{tooltip:"Remove","aria-label":"add",children:(0,g.jsx)(r.hU,{size:"small",style:{marginLeft:16},onClick:()=>{X.length>1&&$(X.filter(((e,t)=>t!==a)))},children:(0,g.jsx)(r.pJl,{})})})]})]})},"identityField-".concat(a.toString()))))})]}),(0,g.jsxs)("fieldset",{className:"inputItem",children:[(0,g.jsx)("legend",{children:"List of group DNs (Distinguished Names) to be added as Tenant Administrators"}),(0,g.jsx)(r.rjZ,{item:!0,xs:12,children:ee.map(((e,a)=>(0,g.jsx)(n.Fragment,{children:(0,g.jsxs)(r.xuv,{sx:{display:"flex",marginBottom:10},children:[(0,g.jsx)(r.Wzg,{id:"ad-groupdn-".concat(a.toString()),label:"",placeholder:"",name:"ad-groupdn-".concat(a.toString()),value:ee[a],onChange:e=>{ae(ee.map(((t,n)=>n===a?e.target.value:t)))},index:a,error:te["ad-groupdn-".concat(a.toString())]||""},"csv-ad-groupdn-".concat(a.toString())),(0,g.jsxs)(r.xuv,{sx:{marginLeft:10,display:"flex",height:38},children:[(0,g.jsx)(r.ua7,{tooltip:"Add Group","aria-label":"add",children:(0,g.jsx)(r.hU,{size:"small",onClick:()=>{ae([...ee,""])},children:(0,g.jsx)(r.dtP,{})})}),(0,g.jsx)(r.ua7,{tooltip:"Remove","aria-label":"add",children:(0,g.jsx)(r.hU,{size:"small",style:{marginLeft:16},onClick:()=>{ee.length>1&&ae(ee.filter(((e,t)=>t!==a)))},children:(0,g.jsx)(r.pJl,{})})})]})]})},"identityField-".concat(a.toString()))))})]}),(0,g.jsx)("br",{}),(0,g.jsx)(r.xuv,{sx:s.I.modalButtonBar,children:(0,g.jsx)(r.zxk,{id:"add-additional-dns",type:"submit",variant:"callAction",disabled:!ie||h,onClick:()=>(()=>{_(!0);let t={};"AD"===x&&(t={user_dns:X.filter((e=>""!==e.trim())),group_dns:ee.filter((e=>""!==e.trim()))});p.Z.invoke("POST","/api/v1/namespaces/".concat(null===a||void 0===a?void 0:a.namespace,"/tenants/").concat(null===a||void 0===a?void 0:a.name,"/set-administrators"),t).then((()=>{_(!1),ae([""]),$([""]),le(),e((0,d.y1)("Administrators added successfully"))})).catch((a=>{e((0,d.Ih)(a)),_(!1)}))})(),label:"Add additional DNs"})})]})]})]})]})}}}]); -//# sourceMappingURL=21.736e7ab9.chunk.js.map \ No newline at end of file diff --git a/web-app/build/static/js/21.736e7ab9.chunk.js.map b/web-app/build/static/js/21.736e7ab9.chunk.js.map deleted file mode 100644 index db6e93e7ce1..00000000000 --- a/web-app/build/static/js/21.736e7ab9.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/21.736e7ab9.chunk.js","mappings":"yHAkBO,MAAMA,EAAc,CACzBC,MAAO,CACLC,MAAO,UACPC,SAAU,GACVC,UAAW,SACXC,WAAY,SACZ,wBAAyB,CACvBC,WAAY,KAGhBN,YAAa,CACXO,QAAS,OACTC,eAAgB,gBAChBC,aAAc,OACdC,WAAY,SACZ,WAAY,CACVC,SAAU,EACVL,WAAY,KAKLM,EAAuB,CAClCC,eAAgB,CACdC,UAA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,SAAS,aAAW,MAAKzD,UACxCC,EAAAA,EAAAA,KAACyD,EAAAA,GAAU,CACTC,KAAM,QACNE,MAAO,CAAEhL,WAAY,IACrB+J,QAASA,KACH/F,GAAWkB,OAAS,GACtBjB,GACED,GAAWiH,QACT,CAACZ,EAAGI,IAAMA,IAAMH,IAGtB,EACAnD,UAEFC,EAAAA,EAAAA,KAAC8D,EAAAA,IAAU,eAIb,iBAAA3F,OAjEwB+E,EAAMC,qBAuE9CnD,EAAAA,EAAAA,KAAA,UACAA,EAAAA,EAAAA,KAACc,EAAAA,IAAG,CAACC,GAAI7H,EAAAA,EAAgBC,eAAe4G,UACtCC,EAAAA,EAAAA,KAACyC,EAAAA,IAAM,CACLlB,GAAI,qBACJY,KAAK,SACLK,QAAQ,aACRE,UAAWvF,IAAehD,EAC1BwI,QAASA,IA1cDoB,MACxB3J,GAAa,GACb,IAAIwG,EAA2C,CAAC,EAEzC,OADCpG,IAEJoG,EAAU,CACRoD,SAAUtH,EAAUmH,QAAQI,GAAyB,KAAhBA,EAAKC,SAC1CC,UAAWvH,GAAWiH,QAAQT,GAA2B,KAAjBA,EAAMc,WAOpDjG,EAAAA,EACGC,OACC,OAAO,sBAADC,OACsB,OAANtE,QAAM,IAANA,OAAM,EAANA,EAAQuE,UAAS,aAAAD,OAAkB,OAANtE,QAAM,IAANA,OAAM,EAANA,EAAQwE,KAAI,uBAC/DuC,GAEDtC,MAAK,KACJlE,GAAa,GACbyC,GAAc,CAAC,KACfF,EAAa,CAAC,KACdoB,KACApE,GAASyK,EAAAA,EAAAA,IAAmB,qCAAqC,IAElE1E,OAAOC,IACNhG,GAASiG,EAAAA,EAAAA,IAAqBD,IAC9BvF,GAAa,EAAM,GACnB,EA4a2B2J,GACfxL,MAAO,oCAQZ,C","sources":["screens/Console/Common/FormComponents/common/styleLibrary.ts","screens/Console/Tenants/TenantDetails/TenantIdentityProvider.tsx"],"sourcesContent":["// This file is part of MinIO Operator\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\n// This object contains variables that will be used across form components.\n\nexport const actionsTray = {\n label: {\n color: \"#07193E\",\n fontSize: 13,\n alignSelf: \"center\" as const,\n whiteSpace: \"nowrap\" as const,\n \"&:not(:first-of-type)\": {\n marginLeft: 10,\n },\n },\n actionsTray: {\n display: \"flex\" as const,\n justifyContent: \"space-between\" as const,\n marginBottom: \"1rem\",\n alignItems: \"center\",\n \"& button\": {\n flexGrow: 0,\n marginLeft: 8,\n },\n },\n};\n\nexport const modalStyleUtils: any = {\n modalButtonBar: {\n marginTop: 15,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"flex-end\",\n\n \"& button\": {\n marginRight: 10,\n },\n \"& button:last-child\": {\n marginRight: 0,\n },\n },\n modalFormScrollable: {\n maxHeight: \"calc(100vh - 300px)\",\n overflowY: \"auto\",\n paddingTop: 10,\n },\n};\n","// This file is part of MinIO Operator\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useCallback, useEffect, useState } from \"react\";\nimport {\n AddIcon,\n Box,\n Button,\n ConfirmModalIcon,\n DeleteIcon,\n FormLayout,\n Grid,\n IconButton,\n InformativeMessage,\n InputBox,\n LDAPIcon,\n Loader,\n OIDCIcon,\n RadioGroup,\n SectionTitle,\n Switch,\n Tooltip,\n UsersIcon,\n} from \"mds\";\nimport { useSelector } from \"react-redux\";\nimport { modalStyleUtils } from \"../../Common/FormComponents/common/styleLibrary\";\nimport {\n ITenantIdentityProviderResponse,\n ITenantSetAdministratorsRequest,\n} from \"../types\";\nimport { clearValidationError } from \"../utils\";\nimport {\n commonFormValidation,\n IValidation,\n} from \"../../../../utils/validationFunctions\";\nimport {\n setErrorSnackMessage,\n setSnackBarMessage,\n} from \"../../../../systemSlice\";\nimport { AppState, useAppDispatch } from \"../../../../store\";\nimport { ErrorResponseHandler } from \"../../../../common/types\";\nimport ConfirmDialog from \"../../Common/ModalWrapper/ConfirmDialog\";\nimport api from \"../../../../common/api\";\n\nconst TenantIdentityProvider = () => {\n const dispatch = useAppDispatch();\n\n const tenant = useSelector((state: AppState) => state.tenants.tenantInfo);\n const loadingTenant = useSelector(\n (state: AppState) => state.tenants.loadingTenant,\n );\n\n const [isSending, setIsSending] = useState(false);\n const [dialogOpen, setDialogOpen] = useState(false);\n const [idpSelection, setIdpSelection] = useState(\"Built-in\");\n const [openIDConfigurationURL, setOpenIDConfigurationURL] =\n useState(\"\");\n const [openIDClientID, setOpenIDClientID] = useState(\"\");\n const [openIDSecretID, setOpenIDSecretID] = useState(\"\");\n const [openIDCallbackURL, setOpenIDCallbackURL] = useState(\"\");\n const [openIDClaimName, setOpenIDClaimName] = useState(\"\");\n const [openIDScopes, setOpenIDScopes] = useState(\"\");\n const [ADURL, setADURL] = useState(\"\");\n const [ADLookupBindDN, setADLookupBindDN] = useState(\"\");\n const [ADLookupBindPassword, setADLookupBindPassword] = useState(\"\");\n const [ADUserDNSearchBaseDN, setADUserDNSearchBaseDN] = useState(\"\");\n const [ADUserDNSearchFilter, setADUserDNSearchFilter] = useState(\"\");\n const [ADGroupSearchBaseDN, setADGroupSearchBaseDN] = useState(\"\");\n const [ADGroupSearchFilter, setADGroupSearchFilter] = useState(\"\");\n const [ADSkipTLS, setADSkipTLS] = useState(false);\n const [ADServerInsecure, setADServerInsecure] = useState(false);\n const [ADServerStartTLS, setADServerStartTLS] = useState(false);\n const [ADUserDNs, setADUserDNs] = useState([\"\"]);\n const [ADGroupDNs, setADGroupDNs] = useState([\"\"]);\n const [validationErrors, setValidationErrors] = useState({});\n const cleanValidation = (fieldName: string) => {\n setValidationErrors(clearValidationError(validationErrors, fieldName));\n };\n const [isFormValid, setIsFormValid] = useState(false);\n\n // Validation\n useEffect(() => {\n let identityProviderValidation: IValidation[] = [];\n\n if (idpSelection === \"OpenID\") {\n identityProviderValidation = [\n ...identityProviderValidation,\n {\n fieldKey: \"openID_CONFIGURATION_URL\",\n required: true,\n value: openIDConfigurationURL,\n },\n {\n fieldKey: \"openID_clientID\",\n required: true,\n value: openIDClientID,\n },\n {\n fieldKey: \"openID_secretID\",\n required: true,\n value: openIDSecretID,\n },\n {\n fieldKey: \"openID_claimName\",\n required: false,\n value: openIDClaimName,\n },\n ];\n }\n\n if (idpSelection === \"AD\") {\n identityProviderValidation = [\n ...identityProviderValidation,\n {\n fieldKey: \"AD_URL\",\n required: true,\n value: ADURL,\n },\n {\n fieldKey: \"ad_lookupBindDN\",\n required: true,\n value: ADLookupBindDN,\n },\n ];\n }\n\n const commonVal = commonFormValidation(identityProviderValidation);\n\n setIsFormValid(Object.keys(commonVal).length === 0);\n\n setValidationErrors(commonVal);\n }, [\n idpSelection,\n openIDConfigurationURL,\n openIDClientID,\n openIDSecretID,\n openIDClaimName,\n ADURL,\n ADLookupBindDN,\n ]);\n\n const getTenantIdentityProviderInfo = useCallback(() => {\n api\n .invoke(\n \"GET\",\n `/api/v1/namespaces/${tenant?.namespace}/tenants/${tenant?.name}/identity-provider`,\n )\n .then((res: ITenantIdentityProviderResponse) => {\n if (res) {\n if (res.oidc) {\n setIdpSelection(\"OpenID\");\n setOpenIDConfigurationURL(res.oidc.configuration_url);\n setOpenIDClientID(res.oidc.client_id);\n setOpenIDSecretID(res.oidc.secret_id);\n setOpenIDCallbackURL(res.oidc.callback_url);\n setOpenIDClaimName(res.oidc.claim_name);\n setOpenIDScopes(res.oidc.scopes);\n } else if (res.active_directory) {\n setIdpSelection(\"AD\");\n setADURL(res.active_directory.url);\n setADLookupBindDN(res.active_directory.lookup_bind_dn);\n setADLookupBindPassword(res.active_directory.lookup_bind_password);\n setADUserDNSearchBaseDN(\n res.active_directory.user_dn_search_base_dn,\n );\n setADUserDNSearchFilter(res.active_directory.user_dn_search_filter);\n setADGroupSearchBaseDN(res.active_directory.group_search_base_dn);\n setADGroupSearchFilter(res.active_directory.group_search_filter);\n setADSkipTLS(res.active_directory.skip_tls_verification);\n setADServerInsecure(res.active_directory.server_insecure);\n setADServerStartTLS(res.active_directory.server_start_tls);\n }\n }\n })\n .catch((err: ErrorResponseHandler) => {\n dispatch(setErrorSnackMessage(err));\n });\n }, [tenant, dispatch]);\n\n useEffect(() => {\n if (tenant) {\n getTenantIdentityProviderInfo();\n }\n }, [tenant, getTenantIdentityProviderInfo]);\n\n const updateTenantIdentityProvider = () => {\n setIsSending(true);\n let payload: ITenantIdentityProviderResponse = {};\n switch (idpSelection) {\n case \"AD\":\n payload.active_directory = {\n url: ADURL,\n lookup_bind_dn: ADLookupBindDN,\n lookup_bind_password: ADLookupBindPassword,\n user_dn_search_base_dn: ADUserDNSearchBaseDN,\n user_dn_search_filter: ADUserDNSearchFilter,\n group_search_base_dn: ADGroupSearchBaseDN,\n group_search_filter: ADGroupSearchFilter,\n skip_tls_verification: ADSkipTLS,\n server_insecure: ADServerInsecure,\n server_start_tls: ADServerStartTLS,\n };\n break;\n case \"OpenID\":\n payload.oidc = {\n configuration_url: openIDConfigurationURL,\n client_id: openIDClientID,\n secret_id: openIDSecretID,\n callback_url: openIDCallbackURL,\n claim_name: openIDClaimName,\n scopes: openIDScopes,\n };\n break;\n default:\n // Built-in IDP will be used by default\n }\n\n api\n .invoke(\n \"POST\",\n `/api/v1/namespaces/${tenant?.namespace}/tenants/${tenant?.name}/identity-provider`,\n payload,\n )\n .then(() => {\n setIsSending(false);\n // Close confirmation modal\n setDialogOpen(false);\n getTenantIdentityProviderInfo();\n })\n .catch((err: ErrorResponseHandler) => {\n dispatch(setErrorSnackMessage(err));\n setIsSending(false);\n });\n };\n\n const setAdministrators = () => {\n setIsSending(true);\n let payload: ITenantSetAdministratorsRequest = {};\n switch (idpSelection) {\n case \"AD\":\n payload = {\n user_dns: ADUserDNs.filter((user) => user.trim() !== \"\"),\n group_dns: ADGroupDNs.filter((group) => group.trim() !== \"\"),\n };\n break;\n default:\n // Built-in IDP will be used by default\n }\n\n api\n .invoke(\n \"POST\",\n `/api/v1/namespaces/${tenant?.namespace}/tenants/${tenant?.name}/set-administrators`,\n payload,\n )\n .then(() => {\n setIsSending(false);\n setADGroupDNs([\"\"]);\n setADUserDNs([\"\"]);\n getTenantIdentityProviderInfo();\n dispatch(setSnackBarMessage(`Administrators added successfully`));\n })\n .catch((err: ErrorResponseHandler) => {\n dispatch(setErrorSnackMessage(err));\n setIsSending(false);\n });\n };\n\n return (\n \n }\n isLoading={isSending}\n onClose={() => setDialogOpen(false)}\n isOpen={dialogOpen}\n onConfirm={updateTenantIdentityProvider}\n confirmationContent={\n \n Are you sure you want to save the changes and restart the service?\n \n }\n />\n {loadingTenant ? (\n \n \n \n ) : (\n \n \n \n Identity Provider\n \n \n \n {\n setIdpSelection(e.target.value);\n }}\n selectorOptions={[\n { label: \"Built-in\", value: \"Built-in\", icon: },\n { label: \"Open ID\", value: \"OpenID\", icon: },\n {\n label: \"LDAP / Active Directory\",\n value: \"AD\",\n icon: ,\n },\n ]}\n />\n\n {idpSelection === \"OpenID\" && (\n \n ) => {\n setOpenIDConfigurationURL(e.target.value);\n cleanValidation(\"openID_CONFIGURATION_URL\");\n }}\n label=\"Configuration URL\"\n value={openIDConfigurationURL}\n placeholder=\"https://your-identity-provider.com/.well-known/openid-configuration\"\n error={validationErrors[\"openID_CONFIGURATION_URL\"] || \"\"}\n required\n />\n ) => {\n setOpenIDClientID(e.target.value);\n cleanValidation(\"openID_clientID\");\n }}\n label=\"Client ID\"\n value={openIDClientID}\n error={validationErrors[\"openID_clientID\"] || \"\"}\n required\n />\n ) => {\n setOpenIDSecretID(e.target.value);\n cleanValidation(\"openID_secretID\");\n }}\n label=\"Secret ID\"\n value={openIDSecretID}\n error={validationErrors[\"openID_secretID\"] || \"\"}\n required\n />\n ) => {\n setOpenIDClaimName(e.target.value);\n cleanValidation(\"openID_claimName\");\n }}\n label=\"Claim Name\"\n value={openIDClaimName}\n placeholder=\"policy\"\n error={validationErrors[\"openID_claimName\"] || \"\"}\n />\n ) => {\n setOpenIDScopes(e.target.value);\n cleanValidation(\"openID_scopes\");\n }}\n label=\"Scopes\"\n value={openIDScopes}\n />\n \n )}\n\n {idpSelection === \"AD\" && (\n \n ) => {\n setADURL(e.target.value);\n cleanValidation(\"AD_URL\");\n }}\n label=\"LDAP Server Address\"\n value={ADURL}\n placeholder=\"ldap-server:636\"\n error={validationErrors[\"AD_URL\"] || \"\"}\n required\n />\n {\n const targetD = e.target;\n const checked = targetD.checked;\n setADSkipTLS(checked);\n }}\n label={\"Skip TLS Verification\"}\n />\n {\n const targetD = e.target;\n const checked = targetD.checked;\n setADServerInsecure(checked);\n }}\n label={\"Server Insecure\"}\n />\n {ADServerInsecure ? (\n \n ) : null}\n {\n const targetD = e.target;\n const checked = targetD.checked;\n setADServerStartTLS(checked);\n }}\n label={\"Start TLS connection to AD/LDAP server\"}\n />\n ) => {\n setADLookupBindDN(e.target.value);\n cleanValidation(\"ad_lookupBindDN\");\n }}\n label=\"Lookup Bind DN\"\n value={ADLookupBindDN}\n placeholder=\"cn=admin,dc=min,dc=io\"\n error={validationErrors[\"ad_lookupBindDN\"] || \"\"}\n required\n />\n ) => {\n setADLookupBindPassword(e.target.value);\n }}\n label=\"Lookup Bind Password\"\n value={ADLookupBindPassword}\n placeholder=\"admin\"\n />\n ) => {\n setADUserDNSearchBaseDN(e.target.value);\n }}\n label=\"User DN Search Base DN\"\n value={ADUserDNSearchBaseDN}\n placeholder=\"dc=min,dc=io\"\n />\n ) => {\n setADUserDNSearchFilter(e.target.value);\n }}\n label=\"User DN Search Filter\"\n value={ADUserDNSearchFilter}\n placeholder=\"(sAMAcountName=%s)\"\n />\n ) => {\n setADGroupSearchBaseDN(e.target.value);\n }}\n label=\"Group Search Base DN\"\n value={ADGroupSearchBaseDN}\n placeholder=\"ou=hwengg,dc=min,dc=io;ou=swengg,dc=min,dc=io\"\n />\n ) => {\n setADGroupSearchFilter(e.target.value);\n }}\n label=\"Group Search Filter\"\n value={ADGroupSearchFilter}\n placeholder=\"(&(objectclass=groupOfNames)(member=%s))\"\n />\n \n )}\n\n \n setDialogOpen(true)}\n label={\"Save\"}\n />\n \n\n {idpSelection === \"AD\" && (\n \n User & Group management\n
\n
\n \n List of user DNs (Distinguished Names) to be added as Tenant\n Administrators\n \n \n {ADUserDNs.map((_, index) => {\n return (\n \n \n ,\n ) => {\n setADUserDNs(\n ADUserDNs.map((group, i) =>\n i === index ? e.target.value : group,\n ),\n );\n }}\n index={index}\n key={`csv-ad-userdn-${index.toString()}`}\n error={\n validationErrors[\n `ad-userdn-${index.toString()}`\n ] || \"\"\n }\n />\n \n \n {\n setADUserDNs([...ADUserDNs, \"\"]);\n }}\n >\n \n \n \n \n {\n if (ADUserDNs.length > 1) {\n setADUserDNs(\n ADUserDNs.filter((_, i) => i !== index),\n );\n }\n }}\n >\n \n \n \n \n \n \n );\n })}\n \n
\n
\n \n List of group DNs (Distinguished Names) to be added as\n Tenant Administrators\n \n \n {ADGroupDNs.map((_, index) => {\n return (\n \n \n ,\n ) => {\n setADGroupDNs(\n ADGroupDNs.map((group, i) =>\n i === index ? e.target.value : group,\n ),\n );\n }}\n index={index}\n key={`csv-ad-groupdn-${index.toString()}`}\n error={\n validationErrors[\n `ad-groupdn-${index.toString()}`\n ] || \"\"\n }\n />\n \n \n {\n setADGroupDNs([...ADGroupDNs, \"\"]);\n }}\n >\n \n \n \n \n {\n if (ADGroupDNs.length > 1) {\n setADGroupDNs(\n ADGroupDNs.filter(\n (_, i) => i !== index,\n ),\n );\n }\n }}\n >\n \n \n \n \n \n \n );\n })}\n \n
\n
\n \n setAdministrators()}\n label={\"Add additional DNs\"}\n />\n \n
\n )}\n
\n
\n )}\n
\n );\n};\n\nexport default TenantIdentityProvider;\n"],"names":["actionsTray","label","color","fontSize","alignSelf","whiteSpace","marginLeft","display","justifyContent","marginBottom","alignItems","flexGrow","modalStyleUtils","modalButtonBar","marginTop","marginRight","modalFormScrollable","maxHeight","overflowY","paddingTop","TenantIdentityProvider","dispatch","useAppDispatch","tenant","useSelector","state","tenants","tenantInfo","loadingTenant","isSending","setIsSending","useState","dialogOpen","setDialogOpen","idpSelection","setIdpSelection","openIDConfigurationURL","setOpenIDConfigurationURL","openIDClientID","setOpenIDClientID","openIDSecretID","setOpenIDSecretID","openIDCallbackURL","setOpenIDCallbackURL","openIDClaimName","setOpenIDClaimName","openIDScopes","setOpenIDScopes","ADURL","setADURL","ADLookupBindDN","setADLookupBindDN","ADLookupBindPassword","setADLookupBindPassword","ADUserDNSearchBaseDN","setADUserDNSearchBaseDN","ADUserDNSearchFilter","setADUserDNSearchFilter","ADGroupSearchBaseDN","setADGroupSearchBaseDN","ADGroupSearchFilter","setADGroupSearchFilter","ADSkipTLS","setADSkipTLS","ADServerInsecure","setADServerInsecure","ADServerStartTLS","setADServerStartTLS","ADUserDNs","setADUserDNs","ADGroupDNs","setADGroupDNs","validationErrors","setValidationErrors","cleanValidation","fieldName","clearValidationError","isFormValid","setIsFormValid","useEffect","identityProviderValidation","fieldKey","required","value","commonVal","commonFormValidation","Object","keys","length","getTenantIdentityProviderInfo","useCallback","api","invoke","concat","namespace","name","then","res","oidc","configuration_url","client_id","secret_id","callback_url","claim_name","scopes","active_directory","url","lookup_bind_dn","lookup_bind_password","user_dn_search_base_dn","user_dn_search_filter","group_search_base_dn","group_search_filter","skip_tls_verification","server_insecure","server_start_tls","catch","err","setErrorSnackMessage","_jsxs","Fragment","children","_jsx","ConfirmDialog","title","confirmText","cancelText","titleIcon","ConfirmModalIcon","isLoading","onClose","isOpen","onConfirm","updateTenantIdentityProvider","payload","confirmationContent","Box","sx","textAlign","Loader","SectionTitle","separator","FormLayout","RadioGroup","currentValue","id","onChange","e","target","selectorOptions","icon","UsersIcon","OIDCIcon","LDAPIcon","InputBox","placeholder","error","type","Switch","checked","InformativeMessage","message","variant","Button","disabled","onClick","className","Grid","item","xs","map","_","index","toString","group","i","height","Tooltip","tooltip","IconButton","size","AddIcon","style","filter","DeleteIcon","setAdministrators","user_dns","user","trim","group_dns","setSnackBarMessage"],"sourceRoot":""} \ No newline at end of file diff --git a/web-app/build/static/js/779.5342a80b.chunk.js b/web-app/build/static/js/241.f827f4d6.chunk.js similarity index 99% rename from web-app/build/static/js/779.5342a80b.chunk.js rename to web-app/build/static/js/241.f827f4d6.chunk.js index 2135ce65e83..1e65490a654 100644 --- a/web-app/build/static/js/779.5342a80b.chunk.js +++ b/web-app/build/static/js/241.f827f4d6.chunk.js @@ -1,2 +1,2 @@ -"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[779],{9779:(t,e,n)=>{n.d(e,{ou:()=>fr,nL:()=>pn});class r extends Error{}class s extends r{constructor(t){super("Invalid DateTime: ".concat(t.toMessage()))}}class i extends r{constructor(t){super("Invalid Interval: ".concat(t.toMessage()))}}class a extends r{constructor(t){super("Invalid Duration: ".concat(t.toMessage()))}}class o extends r{}class l extends r{constructor(t){super("Invalid unit ".concat(t))}}class u extends r{}class c extends r{constructor(){super("Zone is an abstract class")}}const h="numeric",d="short",m="long",f={year:h,month:h,day:h},y={year:h,month:d,day:h},g={year:h,month:d,day:h,weekday:d},w={year:h,month:m,day:h},v={year:h,month:m,day:h,weekday:m},p={hour:h,minute:h},k={hour:h,minute:h,second:h},S={hour:h,minute:h,second:h,timeZoneName:d},T={hour:h,minute:h,second:h,timeZoneName:m},b={hour:h,minute:h,hourCycle:"h23"},O={hour:h,minute:h,second:h,hourCycle:"h23"},N={hour:h,minute:h,second:h,hourCycle:"h23",timeZoneName:d},D={hour:h,minute:h,second:h,hourCycle:"h23",timeZoneName:m},M={year:h,month:h,day:h,hour:h,minute:h},I={year:h,month:h,day:h,hour:h,minute:h,second:h},V={year:h,month:d,day:h,hour:h,minute:h},E={year:h,month:d,day:h,hour:h,minute:h,second:h},x={year:h,month:d,day:h,weekday:d,hour:h,minute:h},C={year:h,month:m,day:h,hour:h,minute:h,timeZoneName:d},F={year:h,month:m,day:h,hour:h,minute:h,second:h,timeZoneName:d},W={year:h,month:m,day:h,weekday:m,hour:h,minute:h,timeZoneName:m},Z={year:h,month:m,day:h,weekday:m,hour:h,minute:h,second:h,timeZoneName:m};class L{get type(){throw new c}get name(){throw new c}get ianaName(){return this.name}get isUniversal(){throw new c}offsetName(t,e){throw new c}formatOffset(t,e){throw new c}offset(t){throw new c}equals(t){throw new c}get isValid(){throw new c}}let z=null;class A extends L{static get instance(){return null===z&&(z=new A),z}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,e){let{format:n,locale:r}=e;return Qt(t,n,r)}formatOffset(t,e){return ee(this.offset(t),e)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return"system"===t.type}get isValid(){return!0}}let j={};const q={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let _={};class U extends L{static create(t){return _[t]||(_[t]=new U(t)),_[t]}static resetCache(){_={},j={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch(e){return!1}}constructor(t){super(),this.zoneName=t,this.valid=U.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,e){let{format:n,locale:r}=e;return Qt(t,n,r,this.name)}formatOffset(t,e){return ee(this.offset(t),e)}offset(t){const e=new Date(t);if(isNaN(e))return NaN;const n=(r=this.name,j[r]||(j[r]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),j[r]);var r;let[s,i,a,o,l,u,c]=n.formatToParts?function(t,e){const n=t.formatToParts(e),r=[];for(let s=0;s=0?d:1e3+d,(Pt({year:s,month:i,day:a,hour:24===l?0:l,minute:u,second:c,millisecond:0})-h)/6e4}equals(t){return"iana"===t.type&&t.name===this.name}get isValid(){return this.valid}}let Y={};let H={};function R(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=JSON.stringify([t,e]);let r=H[n];return r||(r=new Intl.DateTimeFormat(t,e),H[n]=r),r}let J={};let P={};let G=null;let $={};function B(t,e,n,r){const s=t.listingMode();return"error"===s?null:"en"===s?n(e):r(e)}class Q{constructor(t,e,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:r,floor:s,...i}=n;if(!e||Object.keys(i).length>0){const e={useGrouping:!1,...n};n.padTo>0&&(e.minimumIntegerDigits=n.padTo),this.inf=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=JSON.stringify([t,e]);let r=J[n];return r||(r=new Intl.NumberFormat(t,e),J[n]=r),r}(t,e)}}format(t){if(this.inf){const e=this.floor?Math.floor(t):t;return this.inf.format(e)}return jt(this.floor?Math.floor(t):Yt(t,3),this.padTo)}}class K{constructor(t,e,n){let r;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=t;else if("fixed"===t.zone.type){const e=t.offset/60*-1,n=e>=0?"Etc/GMT+".concat(e):"Etc/GMT".concat(e);0!==t.offset&&U.create(n).valid?(r=n,this.dt=t):(r="UTC",this.dt=0===t.offset?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else"system"===t.zone.type?this.dt=t:"iana"===t.zone.type?(this.dt=t,r=t.zone.name):(r="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const s={...this.opts};s.timeZone=s.timeZone||r,this.dtf=R(e,s)}format(){return this.originalZone?this.formatToParts().map((t=>{let{value:e}=t;return e})).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map((t=>{if("timeZoneName"===t.type){const e=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...t,value:e}}return t})):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class X{constructor(t,e,n){this.opts={style:"long",...n},!e&&Ft()&&(this.rtf=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{base:n,...r}=e,s=JSON.stringify([t,r]);let i=P[s];return i||(i=new Intl.RelativeTimeFormat(t,e),P[s]=i),i}(t,n))}format(t,e){return this.rtf?this.rtf.format(t,e):function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"always",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=-1===["hours","minutes","seconds"].indexOf(t);if("auto"===n&&i){const n="days"===t;switch(e){case 1:return n?"tomorrow":"next ".concat(s[t][0]);case-1:return n?"yesterday":"last ".concat(s[t][0]);case 0:return n?"today":"this ".concat(s[t][0])}}const a=Object.is(e,-0)||e<0,o=Math.abs(e),l=1===o,u=s[t],c=r?l?u[1]:u[2]||u[1]:l?s[t][0]:t;return a?"".concat(o," ").concat(c," ago"):"in ".concat(o," ").concat(c)}(e,t,this.opts.numeric,"long"!==this.opts.style)}formatToParts(t,e){return this.rtf?this.rtf.formatToParts(t,e):[]}}const tt={firstDay:1,minimalDays:4,weekend:[6,7]};class et{static fromOpts(t){return et.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,e,n,r){let s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const i=t||ft.defaultLocale,a=i||(s?"en-US":G||(G=(new Intl.DateTimeFormat).resolvedOptions().locale,G)),o=e||ft.defaultNumberingSystem,l=n||ft.defaultOutputCalendar,u=zt(r)||ft.defaultWeekSettings;return new et(a,o,l,u,i)}static resetCache(){G=null,H={},J={},P={}}static fromObject(){let{locale:t,numberingSystem:e,outputCalendar:n,weekSettings:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return et.create(t,e,n,r)}constructor(t,e,n,r,s){const[i,a,o]=function(t){const e=t.indexOf("-x-");-1!==e&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(-1===n)return[t];{let e,s;try{e=R(t).resolvedOptions(),s=t}catch(r){const i=t.substring(0,n);e=R(i).resolvedOptions(),s=i}const{numberingSystem:i,calendar:a}=e;return[s,i,a]}}(t);this.locale=i,this.numberingSystem=e||a||null,this.outputCalendar=n||o||null,this.weekSettings=r,this.intl=function(t,e,n){return n||e?(t.includes("-u-")||(t+="-u"),n&&(t+="-ca-".concat(n)),e&&(t+="-nu-".concat(e)),t):t}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=s,this.fastNumbersCached=null}get fastNumbers(){var t;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(t=this).numberingSystem||"latn"===t.numberingSystem)&&("latn"===t.numberingSystem||!t.locale||t.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),e=(null===this.numberingSystem||"latn"===this.numberingSystem)&&(null===this.outputCalendar||"gregory"===this.outputCalendar);return t&&e?"en":"intl"}clone(t){return t&&0!==Object.getOwnPropertyNames(t).length?et.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,zt(t.weekSettings)||this.weekSettings,t.defaultToEN||!1):this}redefaultToEN(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.clone({...t,defaultToEN:!0})}redefaultToSystem(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.clone({...t,defaultToEN:!1})}months(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return B(this,t,ae,(()=>{const n=e?{month:t,day:"numeric"}:{month:t},r=e?"format":"standalone";return this.monthsCache[r][t]||(this.monthsCache[r][t]=function(t){const e=[];for(let n=1;n<=12;n++){const r=fr.utc(2009,n,1);e.push(t(r))}return e}((t=>this.extract(t,n,"month")))),this.monthsCache[r][t]}))}weekdays(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return B(this,t,ce,(()=>{const n=e?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},r=e?"format":"standalone";return this.weekdaysCache[r][t]||(this.weekdaysCache[r][t]=function(t){const e=[];for(let n=1;n<=7;n++){const r=fr.utc(2016,11,13+n);e.push(t(r))}return e}((t=>this.extract(t,n,"weekday")))),this.weekdaysCache[r][t]}))}meridiems(){return B(this,void 0,(()=>he),(()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[fr.utc(2016,11,13,9),fr.utc(2016,11,13,19)].map((e=>this.extract(e,t,"dayperiod")))}return this.meridiemCache}))}eras(t){return B(this,t,ye,(()=>{const e={era:t};return this.eraCache[t]||(this.eraCache[t]=[fr.utc(-40,1,1),fr.utc(2017,1,1)].map((t=>this.extract(t,e,"era")))),this.eraCache[t]}))}extract(t,e,n){const r=this.dtFormatter(t,e).formatToParts().find((t=>t.type.toLowerCase()===n));return r?r.value:null}numberFormatter(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Q(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new K(t,this.intl,e)}relFormatter(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new X(this.intl,this.isEnglish(),t)}listFormatter(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=JSON.stringify([t,e]);let r=Y[n];return r||(r=new Intl.ListFormat(t,e),Y[n]=r),r}(this.intl,t)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Wt()?function(t){let e=$[t];if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,$[t]=e}return e}(this.locale):tt}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}}let nt=null;class rt extends L{static get utcInstance(){return null===nt&&(nt=new rt(0)),nt}static instance(t){return 0===t?rt.utcInstance:new rt(t)}static parseSpecifier(t){if(t){const e=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(e)return new rt(Kt(e[1],e[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":"UTC".concat(ee(this.fixed,"narrow"))}get ianaName(){return 0===this.fixed?"Etc/UTC":"Etc/GMT".concat(ee(-this.fixed,"narrow"))}offsetName(){return this.name}formatOffset(t,e){return ee(this.fixed,e)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return"fixed"===t.type&&t.fixed===this.fixed}get isValid(){return!0}}class st extends L{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function it(t,e){if(Et(t)||null===t)return e;if(t instanceof L)return t;if("string"===typeof t){const n=t.toLowerCase();return"default"===n?e:"local"===n||"system"===n?A.instance:"utc"===n||"gmt"===n?rt.utcInstance:rt.parseSpecifier(n)||U.create(t)}return xt(t)?rt.instance(t):"object"===typeof t&&"offset"in t&&"function"===typeof t.offset?t:new st(t)}let at,ot=()=>Date.now(),lt="system",ut=null,ct=null,ht=null,dt=60,mt=null;class ft{static get now(){return ot}static set now(t){ot=t}static set defaultZone(t){lt=t}static get defaultZone(){return it(lt,A.instance)}static get defaultLocale(){return ut}static set defaultLocale(t){ut=t}static get defaultNumberingSystem(){return ct}static set defaultNumberingSystem(t){ct=t}static get defaultOutputCalendar(){return ht}static set defaultOutputCalendar(t){ht=t}static get defaultWeekSettings(){return mt}static set defaultWeekSettings(t){mt=zt(t)}static get twoDigitCutoffYear(){return dt}static set twoDigitCutoffYear(t){dt=t%100}static get throwOnInvalid(){return at}static set throwOnInvalid(t){at=t}static resetCaches(){et.resetCache(),U.resetCache()}}class yt{constructor(t,e){this.reason=t,this.explanation=e}toMessage(){return this.explanation?"".concat(this.reason,": ").concat(this.explanation):this.reason}}const gt=[0,31,59,90,120,151,181,212,243,273,304,334],wt=[0,31,60,91,121,152,182,213,244,274,305,335];function vt(t,e){return new yt("unit out of range","you specified ".concat(e," (of type ").concat(typeof e,") as a ").concat(t,", which is invalid"))}function pt(t,e,n){const r=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const s=r.getUTCDay();return 0===s?7:s}function kt(t,e,n){return n+(Ht(t)?wt:gt)[e-1]}function St(t,e){const n=Ht(t)?wt:gt,r=n.findIndex((t=>t1&&void 0!==arguments[1]?arguments[1]:4,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const{year:r,month:s,day:i}=t,a=kt(r,s,i),o=Tt(pt(r,s,i),n);let l,u=Math.floor((a-o+14-e)/7);return u<1?(l=r-1,u=$t(l,e,n)):u>$t(r,e,n)?(l=r+1,u=1):l=r,{weekYear:l,weekNumber:u,weekday:o,...ne(t)}}function Ot(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const{weekYear:r,weekNumber:s,weekday:i}=t,a=Tt(pt(r,1,e),n),o=Rt(r);let l,u=7*s+i-a-7+e;u<1?(l=r-1,u+=Rt(l)):u>o?(l=r+1,u-=Rt(r)):l=r;const{month:c,day:h}=St(l,u);return{year:l,month:c,day:h,...ne(t)}}function Nt(t){const{year:e,month:n,day:r}=t;return{year:e,ordinal:kt(e,n,r),...ne(t)}}function Dt(t){const{year:e,ordinal:n}=t,{month:r,day:s}=St(e,n);return{year:e,month:r,day:s,...ne(t)}}function Mt(t,e){if(!Et(t.localWeekday)||!Et(t.localWeekNumber)||!Et(t.localWeekYear)){if(!Et(t.weekday)||!Et(t.weekNumber)||!Et(t.weekYear))throw new o("Cannot mix locale-based week fields with ISO-based week fields");return Et(t.localWeekday)||(t.weekday=t.localWeekday),Et(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),Et(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}return{minDaysInFirstWeek:4,startOfWeek:1}}function It(t){const e=Ct(t.year),n=At(t.month,1,12),r=At(t.day,1,Jt(t.year,t.month));return e?n?!r&&vt("day",t.day):vt("month",t.month):vt("year",t.year)}function Vt(t){const{hour:e,minute:n,second:r,millisecond:s}=t,i=At(e,0,23)||24===e&&0===n&&0===r&&0===s,a=At(n,0,59),o=At(r,0,59),l=At(s,0,999);return i?a?o?!l&&vt("millisecond",s):vt("second",r):vt("minute",n):vt("hour",e)}function Et(t){return"undefined"===typeof t}function xt(t){return"number"===typeof t}function Ct(t){return"number"===typeof t&&t%1===0}function Ft(){try{return"undefined"!==typeof Intl&&!!Intl.RelativeTimeFormat}catch(t){return!1}}function Wt(){try{return"undefined"!==typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(t){return!1}}function Zt(t,e,n){if(0!==t.length)return t.reduce(((t,r)=>{const s=[e(r),r];return t&&n(t[0],s[0])===t[0]?t:s}),null)[1]}function Lt(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function zt(t){if(null==t)return null;if("object"!==typeof t)throw new u("Week settings must be an object");if(!At(t.firstDay,1,7)||!At(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some((t=>!At(t,1,7))))throw new u("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function At(t,e,n){return Ct(t)&&t>=e&&t<=n}function jt(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;let n;return n=t<0?"-"+(""+-t).padStart(e,"0"):(""+t).padStart(e,"0"),n}function qt(t){return Et(t)||null===t||""===t?void 0:parseInt(t,10)}function _t(t){return Et(t)||null===t||""===t?void 0:parseFloat(t)}function Ut(t){if(!Et(t)&&null!==t&&""!==t){const e=1e3*parseFloat("0."+t);return Math.floor(e)}}function Yt(t,e){const n=10**e;return(arguments.length>2&&void 0!==arguments[2]&&arguments[2]?Math.trunc:Math.round)(t*n)/n}function Ht(t){return t%4===0&&(t%100!==0||t%400===0)}function Rt(t){return Ht(t)?366:365}function Jt(t,e){const n=function(t,e){return t-e*Math.floor(t/e)}(e-1,12)+1;return 2===n?Ht(t+(e-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Pt(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function Gt(t,e,n){return-Tt(pt(t,1,e),n)+e-1}function $t(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const r=Gt(t,e,n),s=Gt(t+1,e,n);return(Rt(t)-r+s)/7}function Bt(t){return t>99?t:t>ft.twoDigitCutoffYear?1900+t:2e3+t}function Qt(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;const s=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);const a={timeZoneName:e,...i},o=new Intl.DateTimeFormat(n,a).formatToParts(s).find((t=>"timezonename"===t.type.toLowerCase()));return o?o.value:null}function Kt(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const r=parseInt(e,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function Xt(t){const e=Number(t);if("boolean"===typeof t||""===t||Number.isNaN(e))throw new u("Invalid unit value ".concat(t));return e}function te(t,e){const n={};for(const r in t)if(Lt(t,r)){const s=t[r];if(void 0===s||null===s)continue;n[e(r)]=Xt(s)}return n}function ee(t,e){const n=Math.trunc(Math.abs(t/60)),r=Math.trunc(Math.abs(t%60)),s=t>=0?"+":"-";switch(e){case"short":return"".concat(s).concat(jt(n,2),":").concat(jt(r,2));case"narrow":return"".concat(s).concat(n).concat(r>0?":".concat(r):"");case"techie":return"".concat(s).concat(jt(n,2)).concat(jt(r,2));default:throw new RangeError("Value format ".concat(e," is out of range for property format"))}}function ne(t){return function(t,e){return e.reduce(((e,n)=>(e[n]=t[n],e)),{})}(t,["hour","minute","second","millisecond"])}const re=["January","February","March","April","May","June","July","August","September","October","November","December"],se=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ie=["J","F","M","A","M","J","J","A","S","O","N","D"];function ae(t){switch(t){case"narrow":return[...ie];case"short":return[...se];case"long":return[...re];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const oe=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],le=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],ue=["M","T","W","T","F","S","S"];function ce(t){switch(t){case"narrow":return[...ue];case"short":return[...le];case"long":return[...oe];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const he=["AM","PM"],de=["Before Christ","Anno Domini"],me=["BC","AD"],fe=["B","A"];function ye(t){switch(t){case"narrow":return[...fe];case"short":return[...me];case"long":return[...de];default:return null}}function ge(t,e){let n="";for(const r of t)r.literal?n+=r.val:n+=e(r.val);return n}const we={D:f,DD:y,DDD:w,DDDD:v,t:p,tt:k,ttt:S,tttt:T,T:b,TT:O,TTT:N,TTTT:D,f:M,ff:V,fff:C,ffff:W,F:I,FF:E,FFF:F,FFFF:Z};class ve{static create(t){return new ve(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}static parseFormat(t){let e=null,n="",r=!1;const s=[];for(let i=0;i0&&s.push({literal:r||/^\s+$/.test(n),val:n}),e=null,n="",r=!r):r||a===e?n+=a:(n.length>0&&s.push({literal:/^\s+$/.test(n),val:n}),n=a,e=a)}return n.length>0&&s.push({literal:r||/^\s+$/.test(n),val:n}),s}static macroTokenToFormatOpts(t){return we[t]}constructor(t,e){this.opts=e,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,e){null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem());return this.systemLoc.dtFormatter(t,{...this.opts,...e}).format()}dtFormatter(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.loc.dtFormatter(t,{...this.opts,...e})}formatDateTime(t,e){return this.dtFormatter(t,e).format()}formatDateTimeParts(t,e){return this.dtFormatter(t,e).formatToParts()}formatInterval(t,e){return this.dtFormatter(t.start,e).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,e){return this.dtFormatter(t,e).resolvedOptions()}num(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.opts.forceSimple)return jt(t,e);const n={...this.opts};return e>0&&(n.padTo=e),this.loc.numberFormatter(n).format(t)}formatDateTimeFromString(t,e){const n="en"===this.loc.listingMode(),r=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,s=(e,n)=>this.loc.extract(t,e,n),i=e=>t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):"",a=()=>n?function(t){return he[t.hour<12?0:1]}(t):s({hour:"numeric",hourCycle:"h12"},"dayperiod"),o=(e,r)=>n?function(t,e){return ae(e)[t.month-1]}(t,e):s(r?{month:e}:{month:e,day:"numeric"},"month"),l=(e,r)=>n?function(t,e){return ce(e)[t.weekday-1]}(t,e):s(r?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday"),u=e=>{const n=ve.macroTokenToFormatOpts(e);return n?this.formatWithSystemDefault(t,n):e},c=e=>n?function(t,e){return ye(e)[t.year<0?0:1]}(t,e):s({era:e},"era");return ge(ve.parseFormat(e),(e=>{switch(e){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return i({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return i({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return i({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return a();case"d":return r?s({day:"numeric"},"day"):this.num(t.day);case"dd":return r?s({day:"2-digit"},"day"):this.num(t.day,2);case"c":case"E":return this.num(t.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return r?s({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return r?s({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return o("short",!0);case"LLLL":return o("long",!0);case"LLLLL":return o("narrow",!0);case"M":return r?s({month:"numeric"},"month"):this.num(t.month);case"MM":return r?s({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return o("short",!1);case"MMMM":return o("long",!1);case"MMMMM":return o("narrow",!1);case"y":return r?s({year:"numeric"},"year"):this.num(t.year);case"yy":return r?s({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return r?s({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return r?s({year:"numeric"},"year"):this.num(t.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return u(e)}}))}formatDurationFromString(t,e){const n=t=>{switch(t[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},r=ve.parseFormat(e),s=r.reduce(((t,e)=>{let{literal:n,val:r}=e;return n?t:t.concat(r)}),[]);return ge(r,(t=>e=>{const r=n(e);return r?this.num(t.get(r),e.length):e})(t.shiftTo(...s.map(n).filter((t=>t)))))}}const pe=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function ke(){for(var t=arguments.length,e=new Array(t),n=0;nt+e.source),"");return RegExp("^".concat(r,"$"))}function Se(){for(var t=arguments.length,e=new Array(t),n=0;ne.reduce(((e,n)=>{let[r,s,i]=e;const[a,o,l]=n(t,i);return[{...r,...a},o||s,l]}),[{},null,1]).slice(0,2)}function Te(t){if(null==t)return[null,null];for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r{const r={};let s;for(s=0;s1&&void 0!==arguments[1]&&arguments[1]||t&&c)?-t:t};return[{years:d(_t(n)),months:d(_t(r)),weeks:d(_t(s)),days:d(_t(i)),hours:d(_t(a)),minutes:d(_t(o)),seconds:d(_t(l),"-0"===l),milliseconds:d(Ut(u),h)}]}const qe={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function _e(t,e,n,r,s,i,a){const o={year:2===e.length?Bt(qt(e)):qt(e),month:se.indexOf(n)+1,day:qt(r),hour:qt(s),minute:qt(i)};return a&&(o.second=qt(a)),t&&(o.weekday=t.length>3?oe.indexOf(t)+1:le.indexOf(t)+1),o}const Ue=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Ye(t){const[,e,n,r,s,i,a,o,l,u,c,h]=t,d=_e(e,s,r,n,i,a,o);let m;return m=l?qe[l]:u?0:Kt(c,h),[d,new rt(m)]}const He=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Re=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Je=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Pe(t){const[,e,n,r,s,i,a,o]=t;return[_e(e,s,r,n,i,a,o),rt.utcInstance]}function Ge(t){const[,e,n,r,s,i,a,o]=t;return[_e(e,o,n,r,s,i,a),rt.utcInstance]}const $e=ke(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Ie),Be=ke(/(\d{4})-?W(\d\d)(?:-?(\d))?/,Ie),Qe=ke(/(\d{4})-?(\d{3})/,Ie),Ke=ke(Me),Xe=Se((function(t,e){return[{year:Fe(t,e),month:Fe(t,e+1,1),day:Fe(t,e+2,1)},null,e+3]}),We,Ze,Le),tn=Se(Ve,We,Ze,Le),en=Se(Ee,We,Ze,Le),nn=Se(We,Ze,Le);const rn=Se(We);const sn=ke(/(\d{4})-(\d\d)-(\d\d)/,Ce),an=ke(xe),on=Se(We,Ze,Le);const ln="Invalid Duration",un={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},cn={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...un},hn=365.2425,dn=30.436875,mn={years:{quarters:4,months:12,weeks:52.1775,days:hn,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:dn,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...un},fn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],yn=fn.slice(0).reverse();function gn(t,e){const n={values:arguments.length>2&&void 0!==arguments[2]&&arguments[2]?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new pn(n)}function wn(t,e){var n;let r=null!==(n=e.milliseconds)&&void 0!==n?n:0;for(const s of yn.slice(1))e[s]&&(r+=e[s]*t[s].milliseconds);return r}function vn(t,e){const n=wn(t,e)<0?-1:1;fn.reduceRight(((r,s)=>{if(Et(e[s]))return r;if(r){const i=e[r]*n,a=t[s][r],o=Math.floor(i/a);e[s]+=o*n,e[r]-=o*a*n}return s}),null),fn.reduce(((n,r)=>{if(Et(e[r]))return n;if(n){const s=e[n]%1;e[n]-=s,e[r]+=s*t[n][r]}return r}),null)}class pn{constructor(t){const e="longterm"===t.conversionAccuracy||!1;let n=e?mn:cn;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||et.create(),this.conversionAccuracy=e?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,e){return pn.fromObject({milliseconds:t},e)}static fromObject(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||"object"!==typeof t)throw new u("Duration.fromObject: argument expected to be an object, got ".concat(null===t?"null":typeof t));return new pn({values:te(t,pn.normalizeUnit),loc:et.fromObject(e),conversionAccuracy:e.conversionAccuracy,matrix:e.matrix})}static fromDurationLike(t){if(xt(t))return pn.fromMillis(t);if(pn.isDuration(t))return t;if("object"===typeof t)return pn.fromObject(t);throw new u("Unknown duration argument ".concat(t," of type ").concat(typeof t))}static fromISO(t,e){const[n]=function(t){return Te(t,[Ae,je])}(t);return n?pn.fromObject(n,e):pn.invalid("unparsable",'the input "'.concat(t,"\" can't be parsed as ISO 8601"))}static fromISOTime(t,e){const[n]=function(t){return Te(t,[ze,rn])}(t);return n?pn.fromObject(n,e):pn.invalid("unparsable",'the input "'.concat(t,"\" can't be parsed as ISO 8601"))}static invalid(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!t)throw new u("need to specify a reason the Duration is invalid");const n=t instanceof yt?t:new yt(t,e);if(ft.throwOnInvalid)throw new a(n);return new pn({invalid:n})}static normalizeUnit(t){const e={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t?t.toLowerCase():t];if(!e)throw new l(t);return e}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...e,floor:!1!==e.round&&!1!==e.floor};return this.isValid?ve.create(this.loc,n).formatDurationFromString(this,t):ln}toHuman(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.isValid)return ln;const e=fn.map((e=>{const n=this.values[e];return Et(n)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:e.slice(0,-1)}).format(n)})).filter((t=>t));return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(e)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return 0!==this.years&&(t+=this.years+"Y"),0===this.months&&0===this.quarters||(t+=this.months+3*this.quarters+"M"),0!==this.weeks&&(t+=this.weeks+"W"),0!==this.days&&(t+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(t+="T"),0!==this.hours&&(t+=this.hours+"H"),0!==this.minutes&&(t+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(t+=Yt(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===t&&(t+="T0S"),t}toISOTime(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.isValid)return null;const e=this.toMillis();if(e<0||e>=864e5)return null;t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1};return fr.fromMillis(e,{zone:"UTC"}).toISOTime(t)}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?"Duration { values: ".concat(JSON.stringify(this.values)," }"):"Duration { Invalid, reason: ".concat(this.invalidReason," }")}toMillis(){return this.isValid?wn(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const e=pn.fromDurationLike(t),n={};for(const r of fn)(Lt(e.values,r)||Lt(this.values,r))&&(n[r]=e.get(r)+this.get(r));return gn(this,{values:n},!0)}minus(t){if(!this.isValid)return this;const e=pn.fromDurationLike(t);return this.plus(e.negate())}mapUnits(t){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=Xt(t(this.values[n],n));return gn(this,{values:e},!0)}get(t){return this[pn.normalizeUnit(t)]}set(t){if(!this.isValid)return this;return gn(this,{values:{...this.values,...te(t,pn.normalizeUnit)}})}reconfigure(){let{locale:t,numberingSystem:e,conversionAccuracy:n,matrix:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return gn(this,{loc:this.loc.clone({locale:t,numberingSystem:e}),matrix:r,conversionAccuracy:n})}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return vn(this.matrix,t),gn(this,{values:t},!0)}rescale(){if(!this.isValid)return this;return gn(this,{values:function(t){const e={};for(const[n,r]of Object.entries(t))0!==r&&(e[n]=r);return e}(this.normalize().shiftToAll().toObject())},!0)}shiftTo(){for(var t=arguments.length,e=new Array(t),n=0;npn.normalizeUnit(t)));const r={},s={},i=this.toObject();let a;for(const o of fn)if(e.indexOf(o)>=0){a=o;let t=0;for(const n in s)t+=this.matrix[n][o]*s[n],s[n]=0;xt(i[o])&&(t+=i[o]);const e=Math.trunc(t);r[o]=e,s[o]=(1e3*t-1e3*e)/1e3}else xt(i[o])&&(s[o]=i[o]);for(const o in s)0!==s[o]&&(r[a]+=o===a?s[o]:s[o]/this.matrix[a][o]);return vn(this.matrix,r),gn(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const e of Object.keys(this.values))t[e]=0===this.values[e]?0:-this.values[e];return gn(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid)return!1;if(!this.loc.equals(t.loc))return!1;for(const r of fn)if(e=this.values[r],n=t.values[r],!(void 0===e||0===e?void 0===n||0===n:e===n))return!1;var e,n;return!0}}const kn="Invalid Interval";class Sn{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!t)throw new u("need to specify a reason the Interval is invalid");const n=t instanceof yt?t:new yt(t,e);if(ft.throwOnInvalid)throw new i(n);return new Sn({invalid:n})}static fromDateTimes(t,e){const n=yr(t),r=yr(e),s=function(t,e){return t&&t.isValid?e&&e.isValid?e0&&void 0!==arguments[0]?arguments[0]:"milliseconds";return this.isValid?this.toDuration(t).get(t):NaN}count(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"milliseconds",e=arguments.length>1?arguments[1]:void 0;if(!this.isValid)return NaN;const n=this.start.startOf(t,e);let r;return r=null!==e&&void 0!==e&&e.useLocaleWeeks?this.end.reconfigure({locale:n.locale}):this.end,r=r.startOf(t,e),Math.floor(r.diff(n,t).get(t))+(r.valueOf()!==this.end.valueOf())}hasSame(t){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,t))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return!!this.isValid&&this.s>t}isBefore(t){return!!this.isValid&&this.e<=t}contains(t){return!!this.isValid&&(this.s<=t&&this.e>t)}set(){let{start:t,end:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.isValid?Sn.fromDateTimes(t||this.s,e||this.e):this}splitAt(){if(!this.isValid)return[];for(var t=arguments.length,e=new Array(t),n=0;nthis.contains(t))).sort(((t,e)=>t.toMillis()-e.toMillis())),s=[];let{s:i}=this,a=0;for(;i+this.e?this.e:t;s.push(Sn.fromDateTimes(i,e)),i=e,a+=1}return s}splitBy(t){const e=pn.fromDurationLike(t);if(!this.isValid||!e.isValid||0===e.as("milliseconds"))return[];let n,{s:r}=this,s=1;const i=[];for(;rt*s)));n=+t>+this.e?this.e:t,i.push(Sn.fromDateTimes(r,n)),r=n,s+=1}return i}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s=t.e)}equals(t){return!(!this.isValid||!t.isValid)&&(this.s.equals(t.s)&&this.e.equals(t.e))}intersection(t){if(!this.isValid)return this;const e=this.s>t.s?this.s:t.s,n=this.e=n?null:Sn.fromDateTimes(e,n)}union(t){if(!this.isValid)return this;const e=this.st.e?this.e:t.e;return Sn.fromDateTimes(e,n)}static merge(t){const[e,n]=t.sort(((t,e)=>t.s-e.s)).reduce(((t,e)=>{let[n,r]=t;return r?r.overlaps(e)||r.abutsStart(e)?[n,r.union(e)]:[n.concat([r]),e]:[n,e]}),[[],null]);return n&&e.push(n),e}static xor(t){let e=null,n=0;const r=[],s=t.map((t=>[{time:t.s,type:"s"},{time:t.e,type:"e"}])),i=Array.prototype.concat(...s).sort(((t,e)=>t.time-e.time));for(const a of i)n+="s"===a.type?1:-1,1===n?e=a.time:(e&&+e!==+a.time&&r.push(Sn.fromDateTimes(e,a.time)),e=null);return Sn.merge(r)}difference(){for(var t=arguments.length,e=new Array(t),n=0;nthis.intersection(t))).filter((t=>t&&!t.isEmpty()))}toString(){return this.isValid?"[".concat(this.s.toISO()," \u2013 ").concat(this.e.toISO(),")"):kn}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?"Interval { start: ".concat(this.s.toISO(),", end: ").concat(this.e.toISO()," }"):"Interval { Invalid, reason: ".concat(this.invalidReason," }")}toLocaleString(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.isValid?ve.create(this.s.loc.clone(e),t).formatInterval(this):kn}toISO(t){return this.isValid?"".concat(this.s.toISO(t),"/").concat(this.e.toISO(t)):kn}toISODate(){return this.isValid?"".concat(this.s.toISODate(),"/").concat(this.e.toISODate()):kn}toISOTime(t){return this.isValid?"".concat(this.s.toISOTime(t),"/").concat(this.e.toISOTime(t)):kn}toFormat(t){let{separator:e=" \u2013 "}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.isValid?"".concat(this.s.toFormat(t)).concat(e).concat(this.e.toFormat(t)):kn}toDuration(t,e){return this.isValid?this.e.diff(this.s,t,e):pn.invalid(this.invalidReason)}mapEndpoints(t){return Sn.fromDateTimes(t(this.s),t(this.e))}}class Tn{static hasDST(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ft.defaultZone;const e=fr.now().setZone(t).set({month:12});return!t.isUniversal&&e.offset!==e.set({month:6}).offset}static isValidIANAZone(t){return U.isValidZone(t)}static normalizeZone(t){return it(t,ft.defaultZone)}static getStartOfWeek(){let{locale:t=null,locObj:e=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e||et.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek(){let{locale:t=null,locObj:e=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e||et.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays(){let{locale:t=null,locObj:e=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e||et.create(t)).getWeekendDays().slice()}static months(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"long",{locale:e=null,numberingSystem:n=null,locObj:r=null,outputCalendar:s="gregory"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(r||et.create(e,n,s)).months(t)}static monthsFormat(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"long",{locale:e=null,numberingSystem:n=null,locObj:r=null,outputCalendar:s="gregory"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(r||et.create(e,n,s)).months(t,!0)}static weekdays(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"long",{locale:e=null,numberingSystem:n=null,locObj:r=null}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(r||et.create(e,n,null)).weekdays(t)}static weekdaysFormat(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"long",{locale:e=null,numberingSystem:n=null,locObj:r=null}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(r||et.create(e,n,null)).weekdays(t,!0)}static meridiems(){let{locale:t=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return et.create(t).meridiems()}static eras(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"short",{locale:e=null}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return et.create(e,null,"gregory").eras(t)}static features(){return{relative:Ft(),localeWeek:Wt()}}}function bn(t,e){const n=t=>t.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(e)-n(t);return Math.floor(pn.fromMillis(r).as("days"))}function On(t,e,n,r){let[s,i,a,o]=function(t,e,n){const r=[["years",(t,e)=>e.year-t.year],["quarters",(t,e)=>e.quarter-t.quarter+4*(e.year-t.year)],["months",(t,e)=>e.month-t.month+12*(e.year-t.year)],["weeks",(t,e)=>{const n=bn(t,e);return(n-n%7)/7}],["days",bn]],s={},i=t;let a,o;for(const[l,u]of r)n.indexOf(l)>=0&&(a=l,s[l]=u(t,e),o=i.plus(s),o>e?(s[l]--,(t=i.plus(s))>e&&(o=t,s[l]--,t=i.plus(s))):t=o);return[t,s,o,a]}(t,e,n);const l=e-s,u=n.filter((t=>["hours","minutes","seconds","milliseconds"].indexOf(t)>=0));0===u.length&&(a0?pn.fromMillis(l,r).shiftTo(...u).plus(c):c}const Nn={arab:"[\u0660-\u0669]",arabext:"[\u06f0-\u06f9]",bali:"[\u1b50-\u1b59]",beng:"[\u09e6-\u09ef]",deva:"[\u0966-\u096f]",fullwide:"[\uff10-\uff19]",gujr:"[\u0ae6-\u0aef]",hanidec:"[\u3007|\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d]",khmr:"[\u17e0-\u17e9]",knda:"[\u0ce6-\u0cef]",laoo:"[\u0ed0-\u0ed9]",limb:"[\u1946-\u194f]",mlym:"[\u0d66-\u0d6f]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0b66-\u0b6f]",tamldec:"[\u0be6-\u0bef]",telu:"[\u0c66-\u0c6f]",thai:"[\u0e50-\u0e59]",tibt:"[\u0f20-\u0f29]",latn:"\\d"},Dn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Mn=Nn.hanidec.replace(/[\[|\]]/g,"").split("");function In(t){let{numberingSystem:e}=t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new RegExp("".concat(Nn[e||"latn"]).concat(n))}const Vn="missing Intl.DateTimeFormat.formatToParts support";function En(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t=>t;return{regex:t,deser:t=>{let[n]=t;return e(function(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n=n&&r<=s&&(e+=r-n)}}return parseInt(e,10)}return e}(n))}}}const xn=String.fromCharCode(160),Cn="[ ".concat(xn,"]"),Fn=new RegExp(Cn,"g");function Wn(t){return t.replace(/\./g,"\\.?").replace(Fn,Cn)}function Zn(t){return t.replace(/\./g,"").replace(Fn," ").toLowerCase()}function Ln(t,e){return null===t?null:{regex:RegExp(t.map(Wn).join("|")),deser:n=>{let[r]=n;return t.findIndex((t=>Zn(r)===Zn(t)))+e}}}function zn(t,e){return{regex:t,deser:t=>{let[,e,n]=t;return Kt(e,n)},groups:e}}function An(t){return{regex:t,deser:t=>{let[e]=t;return e}}}const jn={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let qn=null;function _n(t,e){return Array.prototype.concat(...t.map((t=>function(t,e){if(t.literal)return t;const n=Yn(ve.macroTokenToFormatOpts(t.val),e);return null==n||n.includes(void 0)?t:n}(t,e))))}function Un(t,e,n){const r=_n(ve.parseFormat(n),t),s=r.map((e=>function(t,e){const n=In(e),r=In(e,"{2}"),s=In(e,"{3}"),i=In(e,"{4}"),a=In(e,"{6}"),o=In(e,"{1,2}"),l=In(e,"{1,3}"),u=In(e,"{1,6}"),c=In(e,"{1,9}"),h=In(e,"{2,4}"),d=In(e,"{4,6}"),m=t=>{return{regex:RegExp((e=t.val,e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:t=>{let[e]=t;return e},literal:!0};var e},f=(f=>{if(t.literal)return m(f);switch(f.val){case"G":return Ln(e.eras("short"),0);case"GG":return Ln(e.eras("long"),0);case"y":return En(u);case"yy":case"kk":return En(h,Bt);case"yyyy":case"kkkk":return En(i);case"yyyyy":return En(d);case"yyyyyy":return En(a);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return En(o);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return En(r);case"MMM":return Ln(e.months("short",!0),1);case"MMMM":return Ln(e.months("long",!0),1);case"LLL":return Ln(e.months("short",!1),1);case"LLLL":return Ln(e.months("long",!1),1);case"o":case"S":return En(l);case"ooo":case"SSS":return En(s);case"u":return An(c);case"uu":return An(o);case"uuu":case"E":case"c":return En(n);case"a":return Ln(e.meridiems(),0);case"EEE":return Ln(e.weekdays("short",!1),1);case"EEEE":return Ln(e.weekdays("long",!1),1);case"ccc":return Ln(e.weekdays("short",!0),1);case"cccc":return Ln(e.weekdays("long",!0),1);case"Z":case"ZZ":return zn(new RegExp("([+-]".concat(o.source,")(?::(").concat(r.source,"))?")),2);case"ZZZ":return zn(new RegExp("([+-]".concat(o.source,")(").concat(r.source,")?")),2);case"z":return An(/[a-z_+-/]{1,256}?/i);case" ":return An(/[^\S\n\r]/);default:return m(f)}})(t)||{invalidReason:Vn};return f.token=t,f}(e,t))),i=s.find((t=>t.invalidReason));if(i)return{input:e,tokens:r,invalidReason:i.invalidReason};{const[t,n]=function(t){const e=t.map((t=>t.regex)).reduce(((t,e)=>"".concat(t,"(").concat(e.source,")")),"");return["^".concat(e,"$"),t]}(s),i=RegExp(t,"i"),[a,l]=function(t,e,n){const r=t.match(e);if(r){const t={};let e=1;for(const s in n)if(Lt(n,s)){const i=n[s],a=i.groups?i.groups+1:1;!i.literal&&i.token&&(t[i.token.val[0]]=i.deser(r.slice(e,e+a))),e+=a}return[r,t]}return[r,{}]}(e,i,n),[u,c,h]=l?function(t){let e,n=null;return Et(t.z)||(n=U.create(t.z)),Et(t.Z)||(n||(n=new rt(t.Z)),e=t.Z),Et(t.q)||(t.M=3*(t.q-1)+1),Et(t.h)||(t.h<12&&1===t.a?t.h+=12:12===t.h&&0===t.a&&(t.h=0)),0===t.G&&t.y&&(t.y=-t.y),Et(t.u)||(t.S=Ut(t.u)),[Object.keys(t).reduce(((e,n)=>{const r=(t=>{switch(t){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(n);return r&&(e[r]=t[n]),e}),{}),n,e]}(l):[null,null,void 0];if(Lt(l,"a")&&Lt(l,"H"))throw new o("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:r,regex:i,rawMatches:a,matches:l,result:u,zone:c,specificOffset:h}}}function Yn(t,e){if(!t)return null;const n=ve.create(e,t).dtFormatter((qn||(qn=fr.fromMillis(1555555555555)),qn)),r=n.formatToParts(),s=n.resolvedOptions();return r.map((e=>function(t,e,n){const{type:r,value:s}=t;if("literal"===r){const t=/^\s+$/.test(s);return{literal:!t,val:t?" ":s}}const i=e[r];let a=r;"hour"===r&&(a=null!=e.hour12?e.hour12?"hour12":"hour24":null!=e.hourCycle?"h11"===e.hourCycle||"h12"===e.hourCycle?"hour12":"hour24":n.hour12?"hour12":"hour24");let o=jn[a];if("object"===typeof o&&(o=o[i]),o)return{literal:!1,val:o}}(e,t,s)))}const Hn="Invalid DateTime",Rn=864e13;function Jn(t){return new yt("unsupported zone",'the zone "'.concat(t.name,'" is not supported'))}function Pn(t){return null===t.weekData&&(t.weekData=bt(t.c)),t.weekData}function Gn(t){return null===t.localWeekData&&(t.localWeekData=bt(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function $n(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new fr({...n,...e,old:n})}function Bn(t,e,n){let r=t-60*e*1e3;const s=n.offset(r);if(e===s)return[r,e];r-=60*(s-e)*1e3;const i=n.offset(r);return s===i?[r,s]:[t-60*Math.min(s,i)*1e3,Math.max(s,i)]}function Qn(t,e){const n=new Date(t+=60*e*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Kn(t,e,n){return Bn(Pt(t),e,n)}function Xn(t,e){const n=t.o,r=t.c.year+Math.trunc(e.years),s=t.c.month+Math.trunc(e.months)+3*Math.trunc(e.quarters),i={...t.c,year:r,month:s,day:Math.min(t.c.day,Jt(r,s))+Math.trunc(e.days)+7*Math.trunc(e.weeks)},a=pn.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),o=Pt(i);let[l,u]=Bn(o,n,t.zone);return 0!==a&&(l+=a,u=t.zone.offset(l)),{ts:l,o:u}}function tr(t,e,n,r,s,i){const{setZone:a,zone:o}=n;if(t&&0!==Object.keys(t).length||e){const r=e||o,s=fr.fromObject(t,{...n,zone:r,specificOffset:i});return a?s:s.setZone(o)}return fr.invalid(new yt("unparsable",'the input "'.concat(s,"\" can't be parsed as ").concat(r)))}function er(t,e){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t.isValid?ve.create(et.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function nr(t,e){const n=t.c.year>9999||t.c.year<0;let r="";return n&&t.c.year>=0&&(r+="+"),r+=jt(t.c.year,n?6:4),e?(r+="-",r+=jt(t.c.month),r+="-",r+=jt(t.c.day)):(r+=jt(t.c.month),r+=jt(t.c.day)),r}function rr(t,e,n,r,s,i){let a=jt(t.c.hour);return e?(a+=":",a+=jt(t.c.minute),0===t.c.millisecond&&0===t.c.second&&n||(a+=":")):a+=jt(t.c.minute),0===t.c.millisecond&&0===t.c.second&&n||(a+=jt(t.c.second),0===t.c.millisecond&&r||(a+=".",a+=jt(t.c.millisecond,3))),s&&(t.isOffsetFixed&&0===t.offset&&!i?a+="Z":t.o<0?(a+="-",a+=jt(Math.trunc(-t.o/60)),a+=":",a+=jt(Math.trunc(-t.o%60))):(a+="+",a+=jt(Math.trunc(t.o/60)),a+=":",a+=jt(Math.trunc(t.o%60)))),i&&(a+="["+t.zone.ianaName+"]"),a}const sr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},ir={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},ar={ordinal:1,hour:0,minute:0,second:0,millisecond:0},or=["year","month","day","hour","minute","second","millisecond"],lr=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],ur=["year","ordinal","hour","minute","second","millisecond"];function cr(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return function(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new l(t);return e}(t)}}function hr(t,e){const n=it(e.zone,ft.defaultZone),r=et.fromObject(e),s=ft.now();let i,a;if(Et(t.year))i=s;else{for(const n of or)Et(t[n])&&(t[n]=sr[n]);const e=It(t)||Vt(t);if(e)return fr.invalid(e);const r=n.offset(s);[i,a]=Kn(t,r,n)}return new fr({ts:i,zone:n,loc:r,o:a})}function dr(t,e,n){const r=!!Et(n.round)||n.round,s=(t,s)=>{t=Yt(t,r||n.calendary?0:2,!0);return e.loc.clone(n).relFormatter(n).format(t,s)},i=r=>n.calendary?e.hasSame(t,r)?0:e.startOf(r).diff(t.startOf(r),r).get(r):e.diff(t,r).get(r);if(n.unit)return s(i(n.unit),n.unit);for(const a of n.units){const t=i(a);if(Math.abs(t)>=1)return s(t,a)}return s(t>e?-0:0,n.units[n.units.length-1])}function mr(t){let e,n={};return t.length>0&&"object"===typeof t[t.length-1]?(n=t[t.length-1],e=Array.from(t).slice(0,t.length-1)):e=Array.from(t),[n,e]}class fr{constructor(t){const e=t.zone||ft.defaultZone;let n=t.invalid||(Number.isNaN(t.ts)?new yt("invalid input"):null)||(e.isValid?null:Jn(e));this.ts=Et(t.ts)?ft.now():t.ts;let r=null,s=null;if(!n){if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(e))[r,s]=[t.old.c,t.old.o];else{const t=e.offset(this.ts);r=Qn(this.ts,t),n=Number.isNaN(r.year)?new yt("invalid input"):null,r=n?null:r,s=n?null:t}}this._zone=e,this.loc=t.loc||et.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=r,this.o=s,this.isLuxonDateTime=!0}static now(){return new fr({})}static local(){const[t,e]=mr(arguments),[n,r,s,i,a,o,l]=e;return hr({year:n,month:r,day:s,hour:i,minute:a,second:o,millisecond:l},t)}static utc(){const[t,e]=mr(arguments),[n,r,s,i,a,o,l]=e;return t.zone=rt.utcInstance,hr({year:n,month:r,day:s,hour:i,minute:a,second:o,millisecond:l},t)}static fromJSDate(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=(r=t,"[object Date]"===Object.prototype.toString.call(r)?t.valueOf():NaN);var r;if(Number.isNaN(n))return fr.invalid("invalid input");const s=it(e.zone,ft.defaultZone);return s.isValid?new fr({ts:n,zone:s,loc:et.fromObject(e)}):fr.invalid(Jn(s))}static fromMillis(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(xt(t))return t<-Rn||t>Rn?fr.invalid("Timestamp out of range"):new fr({ts:t,zone:it(e.zone,ft.defaultZone),loc:et.fromObject(e)});throw new u("fromMillis requires a numerical input, but received a ".concat(typeof t," with value ").concat(t))}static fromSeconds(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(xt(t))return new fr({ts:1e3*t,zone:it(e.zone,ft.defaultZone),loc:et.fromObject(e)});throw new u("fromSeconds requires a numerical input")}static fromObject(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=t||{};const n=it(e.zone,ft.defaultZone);if(!n.isValid)return fr.invalid(Jn(n));const r=et.fromObject(e),s=te(t,cr),{minDaysInFirstWeek:i,startOfWeek:a}=Mt(s,r),l=ft.now(),u=Et(e.specificOffset)?n.offset(l):e.specificOffset,c=!Et(s.ordinal),h=!Et(s.year),d=!Et(s.month)||!Et(s.day),m=h||d,f=s.weekYear||s.weekNumber;if((m||c)&&f)throw new o("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&c)throw new o("Can't mix ordinal dates with month/day");const y=f||s.weekday&&!m;let g,w,v=Qn(l,u);y?(g=lr,w=ir,v=bt(v,i,a)):c?(g=ur,w=ar,v=Nt(v)):(g=or,w=sr);let p=!1;for(const o of g){Et(s[o])?s[o]=p?w[o]:v[o]:p=!0}const k=y?function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const r=Ct(t.weekYear),s=At(t.weekNumber,1,$t(t.weekYear,e,n)),i=At(t.weekday,1,7);return r?s?!i&&vt("weekday",t.weekday):vt("week",t.weekNumber):vt("weekYear",t.weekYear)}(s,i,a):c?function(t){const e=Ct(t.year),n=At(t.ordinal,1,Rt(t.year));return e?!n&&vt("ordinal",t.ordinal):vt("year",t.year)}(s):It(s),S=k||Vt(s);if(S)return fr.invalid(S);const T=y?Ot(s,i,a):c?Dt(s):s,[b,O]=Kn(T,u,n),N=new fr({ts:b,zone:n,o:O,loc:r});return s.weekday&&m&&t.weekday!==N.weekday?fr.invalid("mismatched weekday","you can't specify both a weekday of ".concat(s.weekday," and a date of ").concat(N.toISO())):N}static fromISO(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const[n,r]=function(t){return Te(t,[$e,Xe],[Be,tn],[Qe,en],[Ke,nn])}(t);return tr(n,r,e,"ISO 8601",t)}static fromRFC2822(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const[n,r]=function(t){return Te(function(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(t),[Ue,Ye])}(t);return tr(n,r,e,"RFC 2822",t)}static fromHTTP(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const[n,r]=function(t){return Te(t,[He,Pe],[Re,Pe],[Je,Ge])}(t);return tr(n,r,e,"HTTP",e)}static fromFormat(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(Et(t)||Et(e))throw new u("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:s=null}=n,i=et.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0}),[a,o,l,c]=function(t,e,n){const{result:r,zone:s,specificOffset:i,invalidReason:a}=Un(t,e,n);return[r,s,i,a]}(i,t,e);return c?fr.invalid(c):tr(a,o,n,"format ".concat(e),t,l)}static fromString(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return fr.fromFormat(t,e,n)}static fromSQL(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const[n,r]=function(t){return Te(t,[sn,Xe],[an,on])}(t);return tr(n,r,e,"SQL",t)}static invalid(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!t)throw new u("need to specify a reason the DateTime is invalid");const n=t instanceof yt?t:new yt(t,e);if(ft.throwOnInvalid)throw new s(n);return new fr({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Yn(t,et.fromObject(e));return n?n.map((t=>t?t.val:null)).join(""):null}static expandFormat(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return _n(ve.parseFormat(t),et.fromObject(e)).map((t=>t.val)).join("")}get(t){return this[t]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Pn(this).weekYear:NaN}get weekNumber(){return this.isValid?Pn(this).weekNumber:NaN}get weekday(){return this.isValid?Pn(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Gn(this).weekday:NaN}get localWeekNumber(){return this.isValid?Gn(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Gn(this).weekYear:NaN}get ordinal(){return this.isValid?Nt(this.c).ordinal:NaN}get monthShort(){return this.isValid?Tn.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Tn.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Tn.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Tn.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,e=6e4,n=Pt(this.c),r=this.zone.offset(n-t),s=this.zone.offset(n+t),i=this.zone.offset(n-r*e),a=this.zone.offset(n-s*e);if(i===a)return[this];const o=n-i*e,l=n-a*e,u=Qn(o,i),c=Qn(l,a);return u.hour===c.hour&&u.minute===c.minute&&u.second===c.second&&u.millisecond===c.millisecond?[$n(this,{ts:o}),$n(this,{ts:l})]:[this]}get isInLeapYear(){return Ht(this.year)}get daysInMonth(){return Jt(this.year,this.month)}get daysInYear(){return this.isValid?Rt(this.year):NaN}get weeksInWeekYear(){return this.isValid?$t(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?$t(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{locale:e,numberingSystem:n,calendar:r}=ve.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:e,numberingSystem:n,outputCalendar:r}}toUTC(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.setZone(rt.instance(t),e)}toLocal(){return this.setZone(ft.defaultZone)}setZone(t){let{keepLocalTime:e=!1,keepCalendarTime:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((t=it(t,ft.defaultZone)).equals(this.zone))return this;if(t.isValid){let r=this.ts;if(e||n){const e=t.offset(this.ts),n=this.toObject();[r]=Kn(n,e,t)}return $n(this,{ts:r,zone:t})}return fr.invalid(Jn(t))}reconfigure(){let{locale:t,numberingSystem:e,outputCalendar:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return $n(this,{loc:this.loc.clone({locale:t,numberingSystem:e,outputCalendar:n})})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const e=te(t,cr),{minDaysInFirstWeek:n,startOfWeek:r}=Mt(e,this.loc),s=!Et(e.weekYear)||!Et(e.weekNumber)||!Et(e.weekday),i=!Et(e.ordinal),a=!Et(e.year),l=!Et(e.month)||!Et(e.day),u=a||l,c=e.weekYear||e.weekNumber;if((u||i)&&c)throw new o("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&i)throw new o("Can't mix ordinal dates with month/day");let h;s?h=Ot({...bt(this.c,n,r),...e},n,r):Et(e.ordinal)?(h={...this.toObject(),...e},Et(e.day)&&(h.day=Math.min(Jt(h.year,h.month),h.day))):h=Dt({...Nt(this.c),...e});const[d,m]=Kn(h,this.o,this.zone);return $n(this,{ts:d,o:m})}plus(t){if(!this.isValid)return this;return $n(this,Xn(this,pn.fromDurationLike(t)))}minus(t){if(!this.isValid)return this;return $n(this,Xn(this,pn.fromDurationLike(t).negate()))}startOf(t){let{useLocaleWeeks:e=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isValid)return this;const n={},r=pn.normalizeUnit(t);switch(r){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0}if("weeks"===r)if(e){const t=this.loc.getStartOfWeek(),{weekday:e}=this;e1&&void 0!==arguments[1]?arguments[1]:{};return this.isValid?ve.create(this.loc.redefaultToEN(e)).formatDateTimeFromString(this,t):Hn}toLocaleString(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.isValid?ve.create(this.loc.clone(e),t).formatDateTime(this):Hn}toLocaleParts(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.isValid?ve.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO(){let{format:t="extended",suppressSeconds:e=!1,suppressMilliseconds:n=!1,includeOffset:r=!0,extendedZone:s=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.isValid)return null;const i="extended"===t;let a=nr(this,i);return a+="T",a+=rr(this,i,e,n,r,s),a}toISODate(){let{format:t="extended"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.isValid?nr(this,"extended"===t):null}toISOWeekDate(){return er(this,"kkkk-'W'WW-c")}toISOTime(){let{suppressMilliseconds:t=!1,suppressSeconds:e=!1,includeOffset:n=!0,includePrefix:r=!1,extendedZone:s=!1,format:i="extended"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.isValid?(r?"T":"")+rr(this,"extended"===i,e,t,n,s):null}toRFC2822(){return er(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return er(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?nr(this,!0):null}toSQLTime(){let{includeOffset:t=!0,includeZone:e=!1,includeOffsetSpace:n=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r="HH:mm:ss.SSS";return(e||t)&&(n&&(r+=" "),e?r+="z":t&&(r+="ZZ")),er(this,r,!0)}toSQL(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.isValid?"".concat(this.toSQLDate()," ").concat(this.toSQLTime(t)):null}toString(){return this.isValid?this.toISO():Hn}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?"DateTime { ts: ".concat(this.toISO(),", zone: ").concat(this.zone.name,", locale: ").concat(this.locale," }"):"DateTime { Invalid, reason: ".concat(this.invalidReason," }")}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.isValid)return{};const e={...this.c};return t.includeConfig&&(e.outputCalendar=this.outputCalendar,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"milliseconds",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this.isValid||!t.isValid)return pn.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...n},s=(o=e,Array.isArray(o)?o:[o]).map(pn.normalizeUnit),i=t.valueOf()>this.valueOf(),a=On(i?this:t,i?t:this,s,r);var o;return i?a.negate():a}diffNow(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"milliseconds",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.diff(fr.now(),t,e)}until(t){return this.isValid?Sn.fromDateTimes(this,t):this}hasSame(t,e,n){if(!this.isValid)return!1;const r=t.valueOf(),s=this.setZone(t.zone,{keepLocalTime:!0});return s.startOf(e,n)<=r&&r<=s.endOf(e,n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.isValid)return null;const e=t.base||fr.fromObject({},{zone:this.zone}),n=t.padding?this0&&void 0!==arguments[0]?arguments[0]:{};return this.isValid?dr(t.base||fr.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(){for(var t=arguments.length,e=new Array(t),n=0;nt.valueOf()),Math.min)}static max(){for(var t=arguments.length,e=new Array(t),n=0;nt.valueOf()),Math.max)}static fromFormatExplain(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{locale:r=null,numberingSystem:s=null}=n;return Un(et.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0}),t,e)}static fromStringExplain(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return fr.fromFormatExplain(t,e,n)}static get DATE_SHORT(){return f}static get DATE_MED(){return y}static get DATE_MED_WITH_WEEKDAY(){return g}static get DATE_FULL(){return w}static get DATE_HUGE(){return v}static get TIME_SIMPLE(){return p}static get TIME_WITH_SECONDS(){return k}static get TIME_WITH_SHORT_OFFSET(){return S}static get TIME_WITH_LONG_OFFSET(){return T}static get TIME_24_SIMPLE(){return b}static get TIME_24_WITH_SECONDS(){return O}static get TIME_24_WITH_SHORT_OFFSET(){return N}static get TIME_24_WITH_LONG_OFFSET(){return D}static get DATETIME_SHORT(){return M}static get DATETIME_SHORT_WITH_SECONDS(){return I}static get DATETIME_MED(){return V}static get DATETIME_MED_WITH_SECONDS(){return E}static get DATETIME_MED_WITH_WEEKDAY(){return x}static get DATETIME_FULL(){return C}static get DATETIME_FULL_WITH_SECONDS(){return F}static get DATETIME_HUGE(){return W}static get DATETIME_HUGE_WITH_SECONDS(){return Z}}function yr(t){if(fr.isDateTime(t))return t;if(t&&t.valueOf&&xt(t.valueOf()))return fr.fromJSDate(t);if(t&&"object"===typeof t)return fr.fromObject(t);throw new u("Unknown datetime argument: ".concat(t,", of type ").concat(typeof t))}}}]); -//# sourceMappingURL=779.5342a80b.chunk.js.map \ No newline at end of file +"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[241],{4241:(t,e,n)=>{n.d(e,{c9:()=>fr,dw:()=>pn});class r extends Error{}class s extends r{constructor(t){super("Invalid DateTime: ".concat(t.toMessage()))}}class i extends r{constructor(t){super("Invalid Interval: ".concat(t.toMessage()))}}class a extends r{constructor(t){super("Invalid Duration: ".concat(t.toMessage()))}}class o extends r{}class l extends r{constructor(t){super("Invalid unit ".concat(t))}}class u extends r{}class c extends r{constructor(){super("Zone is an abstract class")}}const h="numeric",d="short",m="long",f={year:h,month:h,day:h},y={year:h,month:d,day:h},g={year:h,month:d,day:h,weekday:d},w={year:h,month:m,day:h},v={year:h,month:m,day:h,weekday:m},p={hour:h,minute:h},k={hour:h,minute:h,second:h},S={hour:h,minute:h,second:h,timeZoneName:d},T={hour:h,minute:h,second:h,timeZoneName:m},b={hour:h,minute:h,hourCycle:"h23"},O={hour:h,minute:h,second:h,hourCycle:"h23"},N={hour:h,minute:h,second:h,hourCycle:"h23",timeZoneName:d},D={hour:h,minute:h,second:h,hourCycle:"h23",timeZoneName:m},M={year:h,month:h,day:h,hour:h,minute:h},I={year:h,month:h,day:h,hour:h,minute:h,second:h},V={year:h,month:d,day:h,hour:h,minute:h},E={year:h,month:d,day:h,hour:h,minute:h,second:h},x={year:h,month:d,day:h,weekday:d,hour:h,minute:h},C={year:h,month:m,day:h,hour:h,minute:h,timeZoneName:d},F={year:h,month:m,day:h,hour:h,minute:h,second:h,timeZoneName:d},W={year:h,month:m,day:h,weekday:m,hour:h,minute:h,timeZoneName:m},Z={year:h,month:m,day:h,weekday:m,hour:h,minute:h,second:h,timeZoneName:m};class L{get type(){throw new c}get name(){throw new c}get ianaName(){return this.name}get isUniversal(){throw new c}offsetName(t,e){throw new c}formatOffset(t,e){throw new c}offset(t){throw new c}equals(t){throw new c}get isValid(){throw new c}}let z=null;class A extends L{static get instance(){return null===z&&(z=new A),z}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,e){let{format:n,locale:r}=e;return Qt(t,n,r)}formatOffset(t,e){return ee(this.offset(t),e)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return"system"===t.type}get isValid(){return!0}}let j={};const q={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let _={};class U extends L{static create(t){return _[t]||(_[t]=new U(t)),_[t]}static resetCache(){_={},j={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch(e){return!1}}constructor(t){super(),this.zoneName=t,this.valid=U.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,e){let{format:n,locale:r}=e;return Qt(t,n,r,this.name)}formatOffset(t,e){return ee(this.offset(t),e)}offset(t){const e=new Date(t);if(isNaN(e))return NaN;const n=(r=this.name,j[r]||(j[r]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),j[r]);var r;let[s,i,a,o,l,u,c]=n.formatToParts?function(t,e){const n=t.formatToParts(e),r=[];for(let s=0;s=0?d:1e3+d,(Pt({year:s,month:i,day:a,hour:24===l?0:l,minute:u,second:c,millisecond:0})-h)/6e4}equals(t){return"iana"===t.type&&t.name===this.name}get isValid(){return this.valid}}let Y={};let H={};function R(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=JSON.stringify([t,e]);let r=H[n];return r||(r=new Intl.DateTimeFormat(t,e),H[n]=r),r}let J={};let P={};let G=null;let $={};function B(t,e,n,r){const s=t.listingMode();return"error"===s?null:"en"===s?n(e):r(e)}class Q{constructor(t,e,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:r,floor:s,...i}=n;if(!e||Object.keys(i).length>0){const e={useGrouping:!1,...n};n.padTo>0&&(e.minimumIntegerDigits=n.padTo),this.inf=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=JSON.stringify([t,e]);let r=J[n];return r||(r=new Intl.NumberFormat(t,e),J[n]=r),r}(t,e)}}format(t){if(this.inf){const e=this.floor?Math.floor(t):t;return this.inf.format(e)}return jt(this.floor?Math.floor(t):Yt(t,3),this.padTo)}}class K{constructor(t,e,n){let r;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=t;else if("fixed"===t.zone.type){const e=t.offset/60*-1,n=e>=0?"Etc/GMT+".concat(e):"Etc/GMT".concat(e);0!==t.offset&&U.create(n).valid?(r=n,this.dt=t):(r="UTC",this.dt=0===t.offset?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else"system"===t.zone.type?this.dt=t:"iana"===t.zone.type?(this.dt=t,r=t.zone.name):(r="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const s={...this.opts};s.timeZone=s.timeZone||r,this.dtf=R(e,s)}format(){return this.originalZone?this.formatToParts().map((t=>{let{value:e}=t;return e})).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map((t=>{if("timeZoneName"===t.type){const e=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...t,value:e}}return t})):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class X{constructor(t,e,n){this.opts={style:"long",...n},!e&&Ft()&&(this.rtf=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{base:n,...r}=e,s=JSON.stringify([t,r]);let i=P[s];return i||(i=new Intl.RelativeTimeFormat(t,e),P[s]=i),i}(t,n))}format(t,e){return this.rtf?this.rtf.format(t,e):function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"always",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=-1===["hours","minutes","seconds"].indexOf(t);if("auto"===n&&i){const n="days"===t;switch(e){case 1:return n?"tomorrow":"next ".concat(s[t][0]);case-1:return n?"yesterday":"last ".concat(s[t][0]);case 0:return n?"today":"this ".concat(s[t][0])}}const a=Object.is(e,-0)||e<0,o=Math.abs(e),l=1===o,u=s[t],c=r?l?u[1]:u[2]||u[1]:l?s[t][0]:t;return a?"".concat(o," ").concat(c," ago"):"in ".concat(o," ").concat(c)}(e,t,this.opts.numeric,"long"!==this.opts.style)}formatToParts(t,e){return this.rtf?this.rtf.formatToParts(t,e):[]}}const tt={firstDay:1,minimalDays:4,weekend:[6,7]};class et{static fromOpts(t){return et.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,e,n,r){let s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const i=t||ft.defaultLocale,a=i||(s?"en-US":G||(G=(new Intl.DateTimeFormat).resolvedOptions().locale,G)),o=e||ft.defaultNumberingSystem,l=n||ft.defaultOutputCalendar,u=zt(r)||ft.defaultWeekSettings;return new et(a,o,l,u,i)}static resetCache(){G=null,H={},J={},P={}}static fromObject(){let{locale:t,numberingSystem:e,outputCalendar:n,weekSettings:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return et.create(t,e,n,r)}constructor(t,e,n,r,s){const[i,a,o]=function(t){const e=t.indexOf("-x-");-1!==e&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(-1===n)return[t];{let e,s;try{e=R(t).resolvedOptions(),s=t}catch(r){const i=t.substring(0,n);e=R(i).resolvedOptions(),s=i}const{numberingSystem:i,calendar:a}=e;return[s,i,a]}}(t);this.locale=i,this.numberingSystem=e||a||null,this.outputCalendar=n||o||null,this.weekSettings=r,this.intl=function(t,e,n){return n||e?(t.includes("-u-")||(t+="-u"),n&&(t+="-ca-".concat(n)),e&&(t+="-nu-".concat(e)),t):t}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=s,this.fastNumbersCached=null}get fastNumbers(){var t;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(t=this).numberingSystem||"latn"===t.numberingSystem)&&("latn"===t.numberingSystem||!t.locale||t.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),e=(null===this.numberingSystem||"latn"===this.numberingSystem)&&(null===this.outputCalendar||"gregory"===this.outputCalendar);return t&&e?"en":"intl"}clone(t){return t&&0!==Object.getOwnPropertyNames(t).length?et.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,zt(t.weekSettings)||this.weekSettings,t.defaultToEN||!1):this}redefaultToEN(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.clone({...t,defaultToEN:!0})}redefaultToSystem(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.clone({...t,defaultToEN:!1})}months(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return B(this,t,ae,(()=>{const n=e?{month:t,day:"numeric"}:{month:t},r=e?"format":"standalone";return this.monthsCache[r][t]||(this.monthsCache[r][t]=function(t){const e=[];for(let n=1;n<=12;n++){const r=fr.utc(2009,n,1);e.push(t(r))}return e}((t=>this.extract(t,n,"month")))),this.monthsCache[r][t]}))}weekdays(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return B(this,t,ce,(()=>{const n=e?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},r=e?"format":"standalone";return this.weekdaysCache[r][t]||(this.weekdaysCache[r][t]=function(t){const e=[];for(let n=1;n<=7;n++){const r=fr.utc(2016,11,13+n);e.push(t(r))}return e}((t=>this.extract(t,n,"weekday")))),this.weekdaysCache[r][t]}))}meridiems(){return B(this,void 0,(()=>he),(()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[fr.utc(2016,11,13,9),fr.utc(2016,11,13,19)].map((e=>this.extract(e,t,"dayperiod")))}return this.meridiemCache}))}eras(t){return B(this,t,ye,(()=>{const e={era:t};return this.eraCache[t]||(this.eraCache[t]=[fr.utc(-40,1,1),fr.utc(2017,1,1)].map((t=>this.extract(t,e,"era")))),this.eraCache[t]}))}extract(t,e,n){const r=this.dtFormatter(t,e).formatToParts().find((t=>t.type.toLowerCase()===n));return r?r.value:null}numberFormatter(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Q(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new K(t,this.intl,e)}relFormatter(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new X(this.intl,this.isEnglish(),t)}listFormatter(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=JSON.stringify([t,e]);let r=Y[n];return r||(r=new Intl.ListFormat(t,e),Y[n]=r),r}(this.intl,t)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Wt()?function(t){let e=$[t];if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,$[t]=e}return e}(this.locale):tt}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}}let nt=null;class rt extends L{static get utcInstance(){return null===nt&&(nt=new rt(0)),nt}static instance(t){return 0===t?rt.utcInstance:new rt(t)}static parseSpecifier(t){if(t){const e=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(e)return new rt(Kt(e[1],e[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":"UTC".concat(ee(this.fixed,"narrow"))}get ianaName(){return 0===this.fixed?"Etc/UTC":"Etc/GMT".concat(ee(-this.fixed,"narrow"))}offsetName(){return this.name}formatOffset(t,e){return ee(this.fixed,e)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return"fixed"===t.type&&t.fixed===this.fixed}get isValid(){return!0}}class st extends L{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function it(t,e){if(Et(t)||null===t)return e;if(t instanceof L)return t;if("string"===typeof t){const n=t.toLowerCase();return"default"===n?e:"local"===n||"system"===n?A.instance:"utc"===n||"gmt"===n?rt.utcInstance:rt.parseSpecifier(n)||U.create(t)}return xt(t)?rt.instance(t):"object"===typeof t&&"offset"in t&&"function"===typeof t.offset?t:new st(t)}let at,ot=()=>Date.now(),lt="system",ut=null,ct=null,ht=null,dt=60,mt=null;class ft{static get now(){return ot}static set now(t){ot=t}static set defaultZone(t){lt=t}static get defaultZone(){return it(lt,A.instance)}static get defaultLocale(){return ut}static set defaultLocale(t){ut=t}static get defaultNumberingSystem(){return ct}static set defaultNumberingSystem(t){ct=t}static get defaultOutputCalendar(){return ht}static set defaultOutputCalendar(t){ht=t}static get defaultWeekSettings(){return mt}static set defaultWeekSettings(t){mt=zt(t)}static get twoDigitCutoffYear(){return dt}static set twoDigitCutoffYear(t){dt=t%100}static get throwOnInvalid(){return at}static set throwOnInvalid(t){at=t}static resetCaches(){et.resetCache(),U.resetCache()}}class yt{constructor(t,e){this.reason=t,this.explanation=e}toMessage(){return this.explanation?"".concat(this.reason,": ").concat(this.explanation):this.reason}}const gt=[0,31,59,90,120,151,181,212,243,273,304,334],wt=[0,31,60,91,121,152,182,213,244,274,305,335];function vt(t,e){return new yt("unit out of range","you specified ".concat(e," (of type ").concat(typeof e,") as a ").concat(t,", which is invalid"))}function pt(t,e,n){const r=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const s=r.getUTCDay();return 0===s?7:s}function kt(t,e,n){return n+(Ht(t)?wt:gt)[e-1]}function St(t,e){const n=Ht(t)?wt:gt,r=n.findIndex((t=>t1&&void 0!==arguments[1]?arguments[1]:4,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const{year:r,month:s,day:i}=t,a=kt(r,s,i),o=Tt(pt(r,s,i),n);let l,u=Math.floor((a-o+14-e)/7);return u<1?(l=r-1,u=$t(l,e,n)):u>$t(r,e,n)?(l=r+1,u=1):l=r,{weekYear:l,weekNumber:u,weekday:o,...ne(t)}}function Ot(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const{weekYear:r,weekNumber:s,weekday:i}=t,a=Tt(pt(r,1,e),n),o=Rt(r);let l,u=7*s+i-a-7+e;u<1?(l=r-1,u+=Rt(l)):u>o?(l=r+1,u-=Rt(r)):l=r;const{month:c,day:h}=St(l,u);return{year:l,month:c,day:h,...ne(t)}}function Nt(t){const{year:e,month:n,day:r}=t;return{year:e,ordinal:kt(e,n,r),...ne(t)}}function Dt(t){const{year:e,ordinal:n}=t,{month:r,day:s}=St(e,n);return{year:e,month:r,day:s,...ne(t)}}function Mt(t,e){if(!Et(t.localWeekday)||!Et(t.localWeekNumber)||!Et(t.localWeekYear)){if(!Et(t.weekday)||!Et(t.weekNumber)||!Et(t.weekYear))throw new o("Cannot mix locale-based week fields with ISO-based week fields");return Et(t.localWeekday)||(t.weekday=t.localWeekday),Et(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),Et(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}return{minDaysInFirstWeek:4,startOfWeek:1}}function It(t){const e=Ct(t.year),n=At(t.month,1,12),r=At(t.day,1,Jt(t.year,t.month));return e?n?!r&&vt("day",t.day):vt("month",t.month):vt("year",t.year)}function Vt(t){const{hour:e,minute:n,second:r,millisecond:s}=t,i=At(e,0,23)||24===e&&0===n&&0===r&&0===s,a=At(n,0,59),o=At(r,0,59),l=At(s,0,999);return i?a?o?!l&&vt("millisecond",s):vt("second",r):vt("minute",n):vt("hour",e)}function Et(t){return"undefined"===typeof t}function xt(t){return"number"===typeof t}function Ct(t){return"number"===typeof t&&t%1===0}function Ft(){try{return"undefined"!==typeof Intl&&!!Intl.RelativeTimeFormat}catch(t){return!1}}function Wt(){try{return"undefined"!==typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(t){return!1}}function Zt(t,e,n){if(0!==t.length)return t.reduce(((t,r)=>{const s=[e(r),r];return t&&n(t[0],s[0])===t[0]?t:s}),null)[1]}function Lt(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function zt(t){if(null==t)return null;if("object"!==typeof t)throw new u("Week settings must be an object");if(!At(t.firstDay,1,7)||!At(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some((t=>!At(t,1,7))))throw new u("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function At(t,e,n){return Ct(t)&&t>=e&&t<=n}function jt(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;let n;return n=t<0?"-"+(""+-t).padStart(e,"0"):(""+t).padStart(e,"0"),n}function qt(t){return Et(t)||null===t||""===t?void 0:parseInt(t,10)}function _t(t){return Et(t)||null===t||""===t?void 0:parseFloat(t)}function Ut(t){if(!Et(t)&&null!==t&&""!==t){const e=1e3*parseFloat("0."+t);return Math.floor(e)}}function Yt(t,e){const n=10**e;return(arguments.length>2&&void 0!==arguments[2]&&arguments[2]?Math.trunc:Math.round)(t*n)/n}function Ht(t){return t%4===0&&(t%100!==0||t%400===0)}function Rt(t){return Ht(t)?366:365}function Jt(t,e){const n=function(t,e){return t-e*Math.floor(t/e)}(e-1,12)+1;return 2===n?Ht(t+(e-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Pt(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function Gt(t,e,n){return-Tt(pt(t,1,e),n)+e-1}function $t(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const r=Gt(t,e,n),s=Gt(t+1,e,n);return(Rt(t)-r+s)/7}function Bt(t){return t>99?t:t>ft.twoDigitCutoffYear?1900+t:2e3+t}function Qt(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;const s=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);const a={timeZoneName:e,...i},o=new Intl.DateTimeFormat(n,a).formatToParts(s).find((t=>"timezonename"===t.type.toLowerCase()));return o?o.value:null}function Kt(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const r=parseInt(e,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function Xt(t){const e=Number(t);if("boolean"===typeof t||""===t||Number.isNaN(e))throw new u("Invalid unit value ".concat(t));return e}function te(t,e){const n={};for(const r in t)if(Lt(t,r)){const s=t[r];if(void 0===s||null===s)continue;n[e(r)]=Xt(s)}return n}function ee(t,e){const n=Math.trunc(Math.abs(t/60)),r=Math.trunc(Math.abs(t%60)),s=t>=0?"+":"-";switch(e){case"short":return"".concat(s).concat(jt(n,2),":").concat(jt(r,2));case"narrow":return"".concat(s).concat(n).concat(r>0?":".concat(r):"");case"techie":return"".concat(s).concat(jt(n,2)).concat(jt(r,2));default:throw new RangeError("Value format ".concat(e," is out of range for property format"))}}function ne(t){return function(t,e){return e.reduce(((e,n)=>(e[n]=t[n],e)),{})}(t,["hour","minute","second","millisecond"])}const re=["January","February","March","April","May","June","July","August","September","October","November","December"],se=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ie=["J","F","M","A","M","J","J","A","S","O","N","D"];function ae(t){switch(t){case"narrow":return[...ie];case"short":return[...se];case"long":return[...re];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const oe=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],le=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],ue=["M","T","W","T","F","S","S"];function ce(t){switch(t){case"narrow":return[...ue];case"short":return[...le];case"long":return[...oe];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const he=["AM","PM"],de=["Before Christ","Anno Domini"],me=["BC","AD"],fe=["B","A"];function ye(t){switch(t){case"narrow":return[...fe];case"short":return[...me];case"long":return[...de];default:return null}}function ge(t,e){let n="";for(const r of t)r.literal?n+=r.val:n+=e(r.val);return n}const we={D:f,DD:y,DDD:w,DDDD:v,t:p,tt:k,ttt:S,tttt:T,T:b,TT:O,TTT:N,TTTT:D,f:M,ff:V,fff:C,ffff:W,F:I,FF:E,FFF:F,FFFF:Z};class ve{static create(t){return new ve(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}static parseFormat(t){let e=null,n="",r=!1;const s=[];for(let i=0;i0&&s.push({literal:r||/^\s+$/.test(n),val:n}),e=null,n="",r=!r):r||a===e?n+=a:(n.length>0&&s.push({literal:/^\s+$/.test(n),val:n}),n=a,e=a)}return n.length>0&&s.push({literal:r||/^\s+$/.test(n),val:n}),s}static macroTokenToFormatOpts(t){return we[t]}constructor(t,e){this.opts=e,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,e){null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem());return this.systemLoc.dtFormatter(t,{...this.opts,...e}).format()}dtFormatter(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.loc.dtFormatter(t,{...this.opts,...e})}formatDateTime(t,e){return this.dtFormatter(t,e).format()}formatDateTimeParts(t,e){return this.dtFormatter(t,e).formatToParts()}formatInterval(t,e){return this.dtFormatter(t.start,e).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,e){return this.dtFormatter(t,e).resolvedOptions()}num(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.opts.forceSimple)return jt(t,e);const n={...this.opts};return e>0&&(n.padTo=e),this.loc.numberFormatter(n).format(t)}formatDateTimeFromString(t,e){const n="en"===this.loc.listingMode(),r=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,s=(e,n)=>this.loc.extract(t,e,n),i=e=>t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):"",a=()=>n?function(t){return he[t.hour<12?0:1]}(t):s({hour:"numeric",hourCycle:"h12"},"dayperiod"),o=(e,r)=>n?function(t,e){return ae(e)[t.month-1]}(t,e):s(r?{month:e}:{month:e,day:"numeric"},"month"),l=(e,r)=>n?function(t,e){return ce(e)[t.weekday-1]}(t,e):s(r?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday"),u=e=>{const n=ve.macroTokenToFormatOpts(e);return n?this.formatWithSystemDefault(t,n):e},c=e=>n?function(t,e){return ye(e)[t.year<0?0:1]}(t,e):s({era:e},"era");return ge(ve.parseFormat(e),(e=>{switch(e){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return i({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return i({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return i({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return a();case"d":return r?s({day:"numeric"},"day"):this.num(t.day);case"dd":return r?s({day:"2-digit"},"day"):this.num(t.day,2);case"c":case"E":return this.num(t.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return r?s({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return r?s({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return o("short",!0);case"LLLL":return o("long",!0);case"LLLLL":return o("narrow",!0);case"M":return r?s({month:"numeric"},"month"):this.num(t.month);case"MM":return r?s({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return o("short",!1);case"MMMM":return o("long",!1);case"MMMMM":return o("narrow",!1);case"y":return r?s({year:"numeric"},"year"):this.num(t.year);case"yy":return r?s({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return r?s({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return r?s({year:"numeric"},"year"):this.num(t.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return u(e)}}))}formatDurationFromString(t,e){const n=t=>{switch(t[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},r=ve.parseFormat(e),s=r.reduce(((t,e)=>{let{literal:n,val:r}=e;return n?t:t.concat(r)}),[]);return ge(r,(t=>e=>{const r=n(e);return r?this.num(t.get(r),e.length):e})(t.shiftTo(...s.map(n).filter((t=>t)))))}}const pe=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function ke(){for(var t=arguments.length,e=new Array(t),n=0;nt+e.source),"");return RegExp("^".concat(r,"$"))}function Se(){for(var t=arguments.length,e=new Array(t),n=0;ne.reduce(((e,n)=>{let[r,s,i]=e;const[a,o,l]=n(t,i);return[{...r,...a},o||s,l]}),[{},null,1]).slice(0,2)}function Te(t){if(null==t)return[null,null];for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r{const r={};let s;for(s=0;s1&&void 0!==arguments[1]&&arguments[1]||t&&c)?-t:t};return[{years:d(_t(n)),months:d(_t(r)),weeks:d(_t(s)),days:d(_t(i)),hours:d(_t(a)),minutes:d(_t(o)),seconds:d(_t(l),"-0"===l),milliseconds:d(Ut(u),h)}]}const qe={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function _e(t,e,n,r,s,i,a){const o={year:2===e.length?Bt(qt(e)):qt(e),month:se.indexOf(n)+1,day:qt(r),hour:qt(s),minute:qt(i)};return a&&(o.second=qt(a)),t&&(o.weekday=t.length>3?oe.indexOf(t)+1:le.indexOf(t)+1),o}const Ue=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Ye(t){const[,e,n,r,s,i,a,o,l,u,c,h]=t,d=_e(e,s,r,n,i,a,o);let m;return m=l?qe[l]:u?0:Kt(c,h),[d,new rt(m)]}const He=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Re=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Je=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Pe(t){const[,e,n,r,s,i,a,o]=t;return[_e(e,s,r,n,i,a,o),rt.utcInstance]}function Ge(t){const[,e,n,r,s,i,a,o]=t;return[_e(e,o,n,r,s,i,a),rt.utcInstance]}const $e=ke(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Ie),Be=ke(/(\d{4})-?W(\d\d)(?:-?(\d))?/,Ie),Qe=ke(/(\d{4})-?(\d{3})/,Ie),Ke=ke(Me),Xe=Se((function(t,e){return[{year:Fe(t,e),month:Fe(t,e+1,1),day:Fe(t,e+2,1)},null,e+3]}),We,Ze,Le),tn=Se(Ve,We,Ze,Le),en=Se(Ee,We,Ze,Le),nn=Se(We,Ze,Le);const rn=Se(We);const sn=ke(/(\d{4})-(\d\d)-(\d\d)/,Ce),an=ke(xe),on=Se(We,Ze,Le);const ln="Invalid Duration",un={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},cn={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...un},hn=365.2425,dn=30.436875,mn={years:{quarters:4,months:12,weeks:52.1775,days:hn,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:dn,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...un},fn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],yn=fn.slice(0).reverse();function gn(t,e){const n={values:arguments.length>2&&void 0!==arguments[2]&&arguments[2]?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new pn(n)}function wn(t,e){var n;let r=null!==(n=e.milliseconds)&&void 0!==n?n:0;for(const s of yn.slice(1))e[s]&&(r+=e[s]*t[s].milliseconds);return r}function vn(t,e){const n=wn(t,e)<0?-1:1;fn.reduceRight(((r,s)=>{if(Et(e[s]))return r;if(r){const i=e[r]*n,a=t[s][r],o=Math.floor(i/a);e[s]+=o*n,e[r]-=o*a*n}return s}),null),fn.reduce(((n,r)=>{if(Et(e[r]))return n;if(n){const s=e[n]%1;e[n]-=s,e[r]+=s*t[n][r]}return r}),null)}class pn{constructor(t){const e="longterm"===t.conversionAccuracy||!1;let n=e?mn:cn;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||et.create(),this.conversionAccuracy=e?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,e){return pn.fromObject({milliseconds:t},e)}static fromObject(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||"object"!==typeof t)throw new u("Duration.fromObject: argument expected to be an object, got ".concat(null===t?"null":typeof t));return new pn({values:te(t,pn.normalizeUnit),loc:et.fromObject(e),conversionAccuracy:e.conversionAccuracy,matrix:e.matrix})}static fromDurationLike(t){if(xt(t))return pn.fromMillis(t);if(pn.isDuration(t))return t;if("object"===typeof t)return pn.fromObject(t);throw new u("Unknown duration argument ".concat(t," of type ").concat(typeof t))}static fromISO(t,e){const[n]=function(t){return Te(t,[Ae,je])}(t);return n?pn.fromObject(n,e):pn.invalid("unparsable",'the input "'.concat(t,"\" can't be parsed as ISO 8601"))}static fromISOTime(t,e){const[n]=function(t){return Te(t,[ze,rn])}(t);return n?pn.fromObject(n,e):pn.invalid("unparsable",'the input "'.concat(t,"\" can't be parsed as ISO 8601"))}static invalid(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!t)throw new u("need to specify a reason the Duration is invalid");const n=t instanceof yt?t:new yt(t,e);if(ft.throwOnInvalid)throw new a(n);return new pn({invalid:n})}static normalizeUnit(t){const e={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t?t.toLowerCase():t];if(!e)throw new l(t);return e}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...e,floor:!1!==e.round&&!1!==e.floor};return this.isValid?ve.create(this.loc,n).formatDurationFromString(this,t):ln}toHuman(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.isValid)return ln;const e=fn.map((e=>{const n=this.values[e];return Et(n)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:e.slice(0,-1)}).format(n)})).filter((t=>t));return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(e)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return 0!==this.years&&(t+=this.years+"Y"),0===this.months&&0===this.quarters||(t+=this.months+3*this.quarters+"M"),0!==this.weeks&&(t+=this.weeks+"W"),0!==this.days&&(t+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(t+="T"),0!==this.hours&&(t+=this.hours+"H"),0!==this.minutes&&(t+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(t+=Yt(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===t&&(t+="T0S"),t}toISOTime(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.isValid)return null;const e=this.toMillis();if(e<0||e>=864e5)return null;t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1};return fr.fromMillis(e,{zone:"UTC"}).toISOTime(t)}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?"Duration { values: ".concat(JSON.stringify(this.values)," }"):"Duration { Invalid, reason: ".concat(this.invalidReason," }")}toMillis(){return this.isValid?wn(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const e=pn.fromDurationLike(t),n={};for(const r of fn)(Lt(e.values,r)||Lt(this.values,r))&&(n[r]=e.get(r)+this.get(r));return gn(this,{values:n},!0)}minus(t){if(!this.isValid)return this;const e=pn.fromDurationLike(t);return this.plus(e.negate())}mapUnits(t){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=Xt(t(this.values[n],n));return gn(this,{values:e},!0)}get(t){return this[pn.normalizeUnit(t)]}set(t){if(!this.isValid)return this;return gn(this,{values:{...this.values,...te(t,pn.normalizeUnit)}})}reconfigure(){let{locale:t,numberingSystem:e,conversionAccuracy:n,matrix:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return gn(this,{loc:this.loc.clone({locale:t,numberingSystem:e}),matrix:r,conversionAccuracy:n})}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return vn(this.matrix,t),gn(this,{values:t},!0)}rescale(){if(!this.isValid)return this;return gn(this,{values:function(t){const e={};for(const[n,r]of Object.entries(t))0!==r&&(e[n]=r);return e}(this.normalize().shiftToAll().toObject())},!0)}shiftTo(){for(var t=arguments.length,e=new Array(t),n=0;npn.normalizeUnit(t)));const r={},s={},i=this.toObject();let a;for(const o of fn)if(e.indexOf(o)>=0){a=o;let t=0;for(const n in s)t+=this.matrix[n][o]*s[n],s[n]=0;xt(i[o])&&(t+=i[o]);const e=Math.trunc(t);r[o]=e,s[o]=(1e3*t-1e3*e)/1e3}else xt(i[o])&&(s[o]=i[o]);for(const o in s)0!==s[o]&&(r[a]+=o===a?s[o]:s[o]/this.matrix[a][o]);return vn(this.matrix,r),gn(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const e of Object.keys(this.values))t[e]=0===this.values[e]?0:-this.values[e];return gn(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid)return!1;if(!this.loc.equals(t.loc))return!1;for(const r of fn)if(e=this.values[r],n=t.values[r],!(void 0===e||0===e?void 0===n||0===n:e===n))return!1;var e,n;return!0}}const kn="Invalid Interval";class Sn{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!t)throw new u("need to specify a reason the Interval is invalid");const n=t instanceof yt?t:new yt(t,e);if(ft.throwOnInvalid)throw new i(n);return new Sn({invalid:n})}static fromDateTimes(t,e){const n=yr(t),r=yr(e),s=function(t,e){return t&&t.isValid?e&&e.isValid?e0&&void 0!==arguments[0]?arguments[0]:"milliseconds";return this.isValid?this.toDuration(t).get(t):NaN}count(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"milliseconds",e=arguments.length>1?arguments[1]:void 0;if(!this.isValid)return NaN;const n=this.start.startOf(t,e);let r;return r=null!==e&&void 0!==e&&e.useLocaleWeeks?this.end.reconfigure({locale:n.locale}):this.end,r=r.startOf(t,e),Math.floor(r.diff(n,t).get(t))+(r.valueOf()!==this.end.valueOf())}hasSame(t){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,t))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return!!this.isValid&&this.s>t}isBefore(t){return!!this.isValid&&this.e<=t}contains(t){return!!this.isValid&&(this.s<=t&&this.e>t)}set(){let{start:t,end:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.isValid?Sn.fromDateTimes(t||this.s,e||this.e):this}splitAt(){if(!this.isValid)return[];for(var t=arguments.length,e=new Array(t),n=0;nthis.contains(t))).sort(((t,e)=>t.toMillis()-e.toMillis())),s=[];let{s:i}=this,a=0;for(;i+this.e?this.e:t;s.push(Sn.fromDateTimes(i,e)),i=e,a+=1}return s}splitBy(t){const e=pn.fromDurationLike(t);if(!this.isValid||!e.isValid||0===e.as("milliseconds"))return[];let n,{s:r}=this,s=1;const i=[];for(;rt*s)));n=+t>+this.e?this.e:t,i.push(Sn.fromDateTimes(r,n)),r=n,s+=1}return i}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s=t.e)}equals(t){return!(!this.isValid||!t.isValid)&&(this.s.equals(t.s)&&this.e.equals(t.e))}intersection(t){if(!this.isValid)return this;const e=this.s>t.s?this.s:t.s,n=this.e=n?null:Sn.fromDateTimes(e,n)}union(t){if(!this.isValid)return this;const e=this.st.e?this.e:t.e;return Sn.fromDateTimes(e,n)}static merge(t){const[e,n]=t.sort(((t,e)=>t.s-e.s)).reduce(((t,e)=>{let[n,r]=t;return r?r.overlaps(e)||r.abutsStart(e)?[n,r.union(e)]:[n.concat([r]),e]:[n,e]}),[[],null]);return n&&e.push(n),e}static xor(t){let e=null,n=0;const r=[],s=t.map((t=>[{time:t.s,type:"s"},{time:t.e,type:"e"}])),i=Array.prototype.concat(...s).sort(((t,e)=>t.time-e.time));for(const a of i)n+="s"===a.type?1:-1,1===n?e=a.time:(e&&+e!==+a.time&&r.push(Sn.fromDateTimes(e,a.time)),e=null);return Sn.merge(r)}difference(){for(var t=arguments.length,e=new Array(t),n=0;nthis.intersection(t))).filter((t=>t&&!t.isEmpty()))}toString(){return this.isValid?"[".concat(this.s.toISO()," \u2013 ").concat(this.e.toISO(),")"):kn}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?"Interval { start: ".concat(this.s.toISO(),", end: ").concat(this.e.toISO()," }"):"Interval { Invalid, reason: ".concat(this.invalidReason," }")}toLocaleString(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.isValid?ve.create(this.s.loc.clone(e),t).formatInterval(this):kn}toISO(t){return this.isValid?"".concat(this.s.toISO(t),"/").concat(this.e.toISO(t)):kn}toISODate(){return this.isValid?"".concat(this.s.toISODate(),"/").concat(this.e.toISODate()):kn}toISOTime(t){return this.isValid?"".concat(this.s.toISOTime(t),"/").concat(this.e.toISOTime(t)):kn}toFormat(t){let{separator:e=" \u2013 "}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.isValid?"".concat(this.s.toFormat(t)).concat(e).concat(this.e.toFormat(t)):kn}toDuration(t,e){return this.isValid?this.e.diff(this.s,t,e):pn.invalid(this.invalidReason)}mapEndpoints(t){return Sn.fromDateTimes(t(this.s),t(this.e))}}class Tn{static hasDST(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ft.defaultZone;const e=fr.now().setZone(t).set({month:12});return!t.isUniversal&&e.offset!==e.set({month:6}).offset}static isValidIANAZone(t){return U.isValidZone(t)}static normalizeZone(t){return it(t,ft.defaultZone)}static getStartOfWeek(){let{locale:t=null,locObj:e=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e||et.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek(){let{locale:t=null,locObj:e=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e||et.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays(){let{locale:t=null,locObj:e=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e||et.create(t)).getWeekendDays().slice()}static months(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"long",{locale:e=null,numberingSystem:n=null,locObj:r=null,outputCalendar:s="gregory"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(r||et.create(e,n,s)).months(t)}static monthsFormat(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"long",{locale:e=null,numberingSystem:n=null,locObj:r=null,outputCalendar:s="gregory"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(r||et.create(e,n,s)).months(t,!0)}static weekdays(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"long",{locale:e=null,numberingSystem:n=null,locObj:r=null}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(r||et.create(e,n,null)).weekdays(t)}static weekdaysFormat(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"long",{locale:e=null,numberingSystem:n=null,locObj:r=null}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(r||et.create(e,n,null)).weekdays(t,!0)}static meridiems(){let{locale:t=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return et.create(t).meridiems()}static eras(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"short",{locale:e=null}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return et.create(e,null,"gregory").eras(t)}static features(){return{relative:Ft(),localeWeek:Wt()}}}function bn(t,e){const n=t=>t.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(e)-n(t);return Math.floor(pn.fromMillis(r).as("days"))}function On(t,e,n,r){let[s,i,a,o]=function(t,e,n){const r=[["years",(t,e)=>e.year-t.year],["quarters",(t,e)=>e.quarter-t.quarter+4*(e.year-t.year)],["months",(t,e)=>e.month-t.month+12*(e.year-t.year)],["weeks",(t,e)=>{const n=bn(t,e);return(n-n%7)/7}],["days",bn]],s={},i=t;let a,o;for(const[l,u]of r)n.indexOf(l)>=0&&(a=l,s[l]=u(t,e),o=i.plus(s),o>e?(s[l]--,(t=i.plus(s))>e&&(o=t,s[l]--,t=i.plus(s))):t=o);return[t,s,o,a]}(t,e,n);const l=e-s,u=n.filter((t=>["hours","minutes","seconds","milliseconds"].indexOf(t)>=0));0===u.length&&(a0?pn.fromMillis(l,r).shiftTo(...u).plus(c):c}const Nn={arab:"[\u0660-\u0669]",arabext:"[\u06f0-\u06f9]",bali:"[\u1b50-\u1b59]",beng:"[\u09e6-\u09ef]",deva:"[\u0966-\u096f]",fullwide:"[\uff10-\uff19]",gujr:"[\u0ae6-\u0aef]",hanidec:"[\u3007|\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d]",khmr:"[\u17e0-\u17e9]",knda:"[\u0ce6-\u0cef]",laoo:"[\u0ed0-\u0ed9]",limb:"[\u1946-\u194f]",mlym:"[\u0d66-\u0d6f]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0b66-\u0b6f]",tamldec:"[\u0be6-\u0bef]",telu:"[\u0c66-\u0c6f]",thai:"[\u0e50-\u0e59]",tibt:"[\u0f20-\u0f29]",latn:"\\d"},Dn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Mn=Nn.hanidec.replace(/[\[|\]]/g,"").split("");function In(t){let{numberingSystem:e}=t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new RegExp("".concat(Nn[e||"latn"]).concat(n))}const Vn="missing Intl.DateTimeFormat.formatToParts support";function En(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t=>t;return{regex:t,deser:t=>{let[n]=t;return e(function(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n=n&&r<=s&&(e+=r-n)}}return parseInt(e,10)}return e}(n))}}}const xn=String.fromCharCode(160),Cn="[ ".concat(xn,"]"),Fn=new RegExp(Cn,"g");function Wn(t){return t.replace(/\./g,"\\.?").replace(Fn,Cn)}function Zn(t){return t.replace(/\./g,"").replace(Fn," ").toLowerCase()}function Ln(t,e){return null===t?null:{regex:RegExp(t.map(Wn).join("|")),deser:n=>{let[r]=n;return t.findIndex((t=>Zn(r)===Zn(t)))+e}}}function zn(t,e){return{regex:t,deser:t=>{let[,e,n]=t;return Kt(e,n)},groups:e}}function An(t){return{regex:t,deser:t=>{let[e]=t;return e}}}const jn={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let qn=null;function _n(t,e){return Array.prototype.concat(...t.map((t=>function(t,e){if(t.literal)return t;const n=Yn(ve.macroTokenToFormatOpts(t.val),e);return null==n||n.includes(void 0)?t:n}(t,e))))}function Un(t,e,n){const r=_n(ve.parseFormat(n),t),s=r.map((e=>function(t,e){const n=In(e),r=In(e,"{2}"),s=In(e,"{3}"),i=In(e,"{4}"),a=In(e,"{6}"),o=In(e,"{1,2}"),l=In(e,"{1,3}"),u=In(e,"{1,6}"),c=In(e,"{1,9}"),h=In(e,"{2,4}"),d=In(e,"{4,6}"),m=t=>{return{regex:RegExp((e=t.val,e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:t=>{let[e]=t;return e},literal:!0};var e},f=(f=>{if(t.literal)return m(f);switch(f.val){case"G":return Ln(e.eras("short"),0);case"GG":return Ln(e.eras("long"),0);case"y":return En(u);case"yy":case"kk":return En(h,Bt);case"yyyy":case"kkkk":return En(i);case"yyyyy":return En(d);case"yyyyyy":return En(a);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return En(o);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return En(r);case"MMM":return Ln(e.months("short",!0),1);case"MMMM":return Ln(e.months("long",!0),1);case"LLL":return Ln(e.months("short",!1),1);case"LLLL":return Ln(e.months("long",!1),1);case"o":case"S":return En(l);case"ooo":case"SSS":return En(s);case"u":return An(c);case"uu":return An(o);case"uuu":case"E":case"c":return En(n);case"a":return Ln(e.meridiems(),0);case"EEE":return Ln(e.weekdays("short",!1),1);case"EEEE":return Ln(e.weekdays("long",!1),1);case"ccc":return Ln(e.weekdays("short",!0),1);case"cccc":return Ln(e.weekdays("long",!0),1);case"Z":case"ZZ":return zn(new RegExp("([+-]".concat(o.source,")(?::(").concat(r.source,"))?")),2);case"ZZZ":return zn(new RegExp("([+-]".concat(o.source,")(").concat(r.source,")?")),2);case"z":return An(/[a-z_+-/]{1,256}?/i);case" ":return An(/[^\S\n\r]/);default:return m(f)}})(t)||{invalidReason:Vn};return f.token=t,f}(e,t))),i=s.find((t=>t.invalidReason));if(i)return{input:e,tokens:r,invalidReason:i.invalidReason};{const[t,n]=function(t){const e=t.map((t=>t.regex)).reduce(((t,e)=>"".concat(t,"(").concat(e.source,")")),"");return["^".concat(e,"$"),t]}(s),i=RegExp(t,"i"),[a,l]=function(t,e,n){const r=t.match(e);if(r){const t={};let e=1;for(const s in n)if(Lt(n,s)){const i=n[s],a=i.groups?i.groups+1:1;!i.literal&&i.token&&(t[i.token.val[0]]=i.deser(r.slice(e,e+a))),e+=a}return[r,t]}return[r,{}]}(e,i,n),[u,c,h]=l?function(t){let e,n=null;return Et(t.z)||(n=U.create(t.z)),Et(t.Z)||(n||(n=new rt(t.Z)),e=t.Z),Et(t.q)||(t.M=3*(t.q-1)+1),Et(t.h)||(t.h<12&&1===t.a?t.h+=12:12===t.h&&0===t.a&&(t.h=0)),0===t.G&&t.y&&(t.y=-t.y),Et(t.u)||(t.S=Ut(t.u)),[Object.keys(t).reduce(((e,n)=>{const r=(t=>{switch(t){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(n);return r&&(e[r]=t[n]),e}),{}),n,e]}(l):[null,null,void 0];if(Lt(l,"a")&&Lt(l,"H"))throw new o("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:r,regex:i,rawMatches:a,matches:l,result:u,zone:c,specificOffset:h}}}function Yn(t,e){if(!t)return null;const n=ve.create(e,t).dtFormatter((qn||(qn=fr.fromMillis(1555555555555)),qn)),r=n.formatToParts(),s=n.resolvedOptions();return r.map((e=>function(t,e,n){const{type:r,value:s}=t;if("literal"===r){const t=/^\s+$/.test(s);return{literal:!t,val:t?" ":s}}const i=e[r];let a=r;"hour"===r&&(a=null!=e.hour12?e.hour12?"hour12":"hour24":null!=e.hourCycle?"h11"===e.hourCycle||"h12"===e.hourCycle?"hour12":"hour24":n.hour12?"hour12":"hour24");let o=jn[a];if("object"===typeof o&&(o=o[i]),o)return{literal:!1,val:o}}(e,t,s)))}const Hn="Invalid DateTime",Rn=864e13;function Jn(t){return new yt("unsupported zone",'the zone "'.concat(t.name,'" is not supported'))}function Pn(t){return null===t.weekData&&(t.weekData=bt(t.c)),t.weekData}function Gn(t){return null===t.localWeekData&&(t.localWeekData=bt(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function $n(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new fr({...n,...e,old:n})}function Bn(t,e,n){let r=t-60*e*1e3;const s=n.offset(r);if(e===s)return[r,e];r-=60*(s-e)*1e3;const i=n.offset(r);return s===i?[r,s]:[t-60*Math.min(s,i)*1e3,Math.max(s,i)]}function Qn(t,e){const n=new Date(t+=60*e*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Kn(t,e,n){return Bn(Pt(t),e,n)}function Xn(t,e){const n=t.o,r=t.c.year+Math.trunc(e.years),s=t.c.month+Math.trunc(e.months)+3*Math.trunc(e.quarters),i={...t.c,year:r,month:s,day:Math.min(t.c.day,Jt(r,s))+Math.trunc(e.days)+7*Math.trunc(e.weeks)},a=pn.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),o=Pt(i);let[l,u]=Bn(o,n,t.zone);return 0!==a&&(l+=a,u=t.zone.offset(l)),{ts:l,o:u}}function tr(t,e,n,r,s,i){const{setZone:a,zone:o}=n;if(t&&0!==Object.keys(t).length||e){const r=e||o,s=fr.fromObject(t,{...n,zone:r,specificOffset:i});return a?s:s.setZone(o)}return fr.invalid(new yt("unparsable",'the input "'.concat(s,"\" can't be parsed as ").concat(r)))}function er(t,e){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t.isValid?ve.create(et.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function nr(t,e){const n=t.c.year>9999||t.c.year<0;let r="";return n&&t.c.year>=0&&(r+="+"),r+=jt(t.c.year,n?6:4),e?(r+="-",r+=jt(t.c.month),r+="-",r+=jt(t.c.day)):(r+=jt(t.c.month),r+=jt(t.c.day)),r}function rr(t,e,n,r,s,i){let a=jt(t.c.hour);return e?(a+=":",a+=jt(t.c.minute),0===t.c.millisecond&&0===t.c.second&&n||(a+=":")):a+=jt(t.c.minute),0===t.c.millisecond&&0===t.c.second&&n||(a+=jt(t.c.second),0===t.c.millisecond&&r||(a+=".",a+=jt(t.c.millisecond,3))),s&&(t.isOffsetFixed&&0===t.offset&&!i?a+="Z":t.o<0?(a+="-",a+=jt(Math.trunc(-t.o/60)),a+=":",a+=jt(Math.trunc(-t.o%60))):(a+="+",a+=jt(Math.trunc(t.o/60)),a+=":",a+=jt(Math.trunc(t.o%60)))),i&&(a+="["+t.zone.ianaName+"]"),a}const sr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},ir={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},ar={ordinal:1,hour:0,minute:0,second:0,millisecond:0},or=["year","month","day","hour","minute","second","millisecond"],lr=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],ur=["year","ordinal","hour","minute","second","millisecond"];function cr(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return function(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new l(t);return e}(t)}}function hr(t,e){const n=it(e.zone,ft.defaultZone),r=et.fromObject(e),s=ft.now();let i,a;if(Et(t.year))i=s;else{for(const n of or)Et(t[n])&&(t[n]=sr[n]);const e=It(t)||Vt(t);if(e)return fr.invalid(e);const r=n.offset(s);[i,a]=Kn(t,r,n)}return new fr({ts:i,zone:n,loc:r,o:a})}function dr(t,e,n){const r=!!Et(n.round)||n.round,s=(t,s)=>{t=Yt(t,r||n.calendary?0:2,!0);return e.loc.clone(n).relFormatter(n).format(t,s)},i=r=>n.calendary?e.hasSame(t,r)?0:e.startOf(r).diff(t.startOf(r),r).get(r):e.diff(t,r).get(r);if(n.unit)return s(i(n.unit),n.unit);for(const a of n.units){const t=i(a);if(Math.abs(t)>=1)return s(t,a)}return s(t>e?-0:0,n.units[n.units.length-1])}function mr(t){let e,n={};return t.length>0&&"object"===typeof t[t.length-1]?(n=t[t.length-1],e=Array.from(t).slice(0,t.length-1)):e=Array.from(t),[n,e]}class fr{constructor(t){const e=t.zone||ft.defaultZone;let n=t.invalid||(Number.isNaN(t.ts)?new yt("invalid input"):null)||(e.isValid?null:Jn(e));this.ts=Et(t.ts)?ft.now():t.ts;let r=null,s=null;if(!n){if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(e))[r,s]=[t.old.c,t.old.o];else{const t=e.offset(this.ts);r=Qn(this.ts,t),n=Number.isNaN(r.year)?new yt("invalid input"):null,r=n?null:r,s=n?null:t}}this._zone=e,this.loc=t.loc||et.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=r,this.o=s,this.isLuxonDateTime=!0}static now(){return new fr({})}static local(){const[t,e]=mr(arguments),[n,r,s,i,a,o,l]=e;return hr({year:n,month:r,day:s,hour:i,minute:a,second:o,millisecond:l},t)}static utc(){const[t,e]=mr(arguments),[n,r,s,i,a,o,l]=e;return t.zone=rt.utcInstance,hr({year:n,month:r,day:s,hour:i,minute:a,second:o,millisecond:l},t)}static fromJSDate(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=(r=t,"[object Date]"===Object.prototype.toString.call(r)?t.valueOf():NaN);var r;if(Number.isNaN(n))return fr.invalid("invalid input");const s=it(e.zone,ft.defaultZone);return s.isValid?new fr({ts:n,zone:s,loc:et.fromObject(e)}):fr.invalid(Jn(s))}static fromMillis(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(xt(t))return t<-Rn||t>Rn?fr.invalid("Timestamp out of range"):new fr({ts:t,zone:it(e.zone,ft.defaultZone),loc:et.fromObject(e)});throw new u("fromMillis requires a numerical input, but received a ".concat(typeof t," with value ").concat(t))}static fromSeconds(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(xt(t))return new fr({ts:1e3*t,zone:it(e.zone,ft.defaultZone),loc:et.fromObject(e)});throw new u("fromSeconds requires a numerical input")}static fromObject(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=t||{};const n=it(e.zone,ft.defaultZone);if(!n.isValid)return fr.invalid(Jn(n));const r=et.fromObject(e),s=te(t,cr),{minDaysInFirstWeek:i,startOfWeek:a}=Mt(s,r),l=ft.now(),u=Et(e.specificOffset)?n.offset(l):e.specificOffset,c=!Et(s.ordinal),h=!Et(s.year),d=!Et(s.month)||!Et(s.day),m=h||d,f=s.weekYear||s.weekNumber;if((m||c)&&f)throw new o("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&c)throw new o("Can't mix ordinal dates with month/day");const y=f||s.weekday&&!m;let g,w,v=Qn(l,u);y?(g=lr,w=ir,v=bt(v,i,a)):c?(g=ur,w=ar,v=Nt(v)):(g=or,w=sr);let p=!1;for(const o of g){Et(s[o])?s[o]=p?w[o]:v[o]:p=!0}const k=y?function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const r=Ct(t.weekYear),s=At(t.weekNumber,1,$t(t.weekYear,e,n)),i=At(t.weekday,1,7);return r?s?!i&&vt("weekday",t.weekday):vt("week",t.weekNumber):vt("weekYear",t.weekYear)}(s,i,a):c?function(t){const e=Ct(t.year),n=At(t.ordinal,1,Rt(t.year));return e?!n&&vt("ordinal",t.ordinal):vt("year",t.year)}(s):It(s),S=k||Vt(s);if(S)return fr.invalid(S);const T=y?Ot(s,i,a):c?Dt(s):s,[b,O]=Kn(T,u,n),N=new fr({ts:b,zone:n,o:O,loc:r});return s.weekday&&m&&t.weekday!==N.weekday?fr.invalid("mismatched weekday","you can't specify both a weekday of ".concat(s.weekday," and a date of ").concat(N.toISO())):N}static fromISO(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const[n,r]=function(t){return Te(t,[$e,Xe],[Be,tn],[Qe,en],[Ke,nn])}(t);return tr(n,r,e,"ISO 8601",t)}static fromRFC2822(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const[n,r]=function(t){return Te(function(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(t),[Ue,Ye])}(t);return tr(n,r,e,"RFC 2822",t)}static fromHTTP(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const[n,r]=function(t){return Te(t,[He,Pe],[Re,Pe],[Je,Ge])}(t);return tr(n,r,e,"HTTP",e)}static fromFormat(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(Et(t)||Et(e))throw new u("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:s=null}=n,i=et.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0}),[a,o,l,c]=function(t,e,n){const{result:r,zone:s,specificOffset:i,invalidReason:a}=Un(t,e,n);return[r,s,i,a]}(i,t,e);return c?fr.invalid(c):tr(a,o,n,"format ".concat(e),t,l)}static fromString(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return fr.fromFormat(t,e,n)}static fromSQL(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const[n,r]=function(t){return Te(t,[sn,Xe],[an,on])}(t);return tr(n,r,e,"SQL",t)}static invalid(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!t)throw new u("need to specify a reason the DateTime is invalid");const n=t instanceof yt?t:new yt(t,e);if(ft.throwOnInvalid)throw new s(n);return new fr({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Yn(t,et.fromObject(e));return n?n.map((t=>t?t.val:null)).join(""):null}static expandFormat(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return _n(ve.parseFormat(t),et.fromObject(e)).map((t=>t.val)).join("")}get(t){return this[t]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Pn(this).weekYear:NaN}get weekNumber(){return this.isValid?Pn(this).weekNumber:NaN}get weekday(){return this.isValid?Pn(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Gn(this).weekday:NaN}get localWeekNumber(){return this.isValid?Gn(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Gn(this).weekYear:NaN}get ordinal(){return this.isValid?Nt(this.c).ordinal:NaN}get monthShort(){return this.isValid?Tn.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Tn.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Tn.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Tn.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,e=6e4,n=Pt(this.c),r=this.zone.offset(n-t),s=this.zone.offset(n+t),i=this.zone.offset(n-r*e),a=this.zone.offset(n-s*e);if(i===a)return[this];const o=n-i*e,l=n-a*e,u=Qn(o,i),c=Qn(l,a);return u.hour===c.hour&&u.minute===c.minute&&u.second===c.second&&u.millisecond===c.millisecond?[$n(this,{ts:o}),$n(this,{ts:l})]:[this]}get isInLeapYear(){return Ht(this.year)}get daysInMonth(){return Jt(this.year,this.month)}get daysInYear(){return this.isValid?Rt(this.year):NaN}get weeksInWeekYear(){return this.isValid?$t(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?$t(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{locale:e,numberingSystem:n,calendar:r}=ve.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:e,numberingSystem:n,outputCalendar:r}}toUTC(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.setZone(rt.instance(t),e)}toLocal(){return this.setZone(ft.defaultZone)}setZone(t){let{keepLocalTime:e=!1,keepCalendarTime:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((t=it(t,ft.defaultZone)).equals(this.zone))return this;if(t.isValid){let r=this.ts;if(e||n){const e=t.offset(this.ts),n=this.toObject();[r]=Kn(n,e,t)}return $n(this,{ts:r,zone:t})}return fr.invalid(Jn(t))}reconfigure(){let{locale:t,numberingSystem:e,outputCalendar:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return $n(this,{loc:this.loc.clone({locale:t,numberingSystem:e,outputCalendar:n})})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const e=te(t,cr),{minDaysInFirstWeek:n,startOfWeek:r}=Mt(e,this.loc),s=!Et(e.weekYear)||!Et(e.weekNumber)||!Et(e.weekday),i=!Et(e.ordinal),a=!Et(e.year),l=!Et(e.month)||!Et(e.day),u=a||l,c=e.weekYear||e.weekNumber;if((u||i)&&c)throw new o("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&i)throw new o("Can't mix ordinal dates with month/day");let h;s?h=Ot({...bt(this.c,n,r),...e},n,r):Et(e.ordinal)?(h={...this.toObject(),...e},Et(e.day)&&(h.day=Math.min(Jt(h.year,h.month),h.day))):h=Dt({...Nt(this.c),...e});const[d,m]=Kn(h,this.o,this.zone);return $n(this,{ts:d,o:m})}plus(t){if(!this.isValid)return this;return $n(this,Xn(this,pn.fromDurationLike(t)))}minus(t){if(!this.isValid)return this;return $n(this,Xn(this,pn.fromDurationLike(t).negate()))}startOf(t){let{useLocaleWeeks:e=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isValid)return this;const n={},r=pn.normalizeUnit(t);switch(r){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0}if("weeks"===r)if(e){const t=this.loc.getStartOfWeek(),{weekday:e}=this;e1&&void 0!==arguments[1]?arguments[1]:{};return this.isValid?ve.create(this.loc.redefaultToEN(e)).formatDateTimeFromString(this,t):Hn}toLocaleString(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.isValid?ve.create(this.loc.clone(e),t).formatDateTime(this):Hn}toLocaleParts(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.isValid?ve.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO(){let{format:t="extended",suppressSeconds:e=!1,suppressMilliseconds:n=!1,includeOffset:r=!0,extendedZone:s=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.isValid)return null;const i="extended"===t;let a=nr(this,i);return a+="T",a+=rr(this,i,e,n,r,s),a}toISODate(){let{format:t="extended"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.isValid?nr(this,"extended"===t):null}toISOWeekDate(){return er(this,"kkkk-'W'WW-c")}toISOTime(){let{suppressMilliseconds:t=!1,suppressSeconds:e=!1,includeOffset:n=!0,includePrefix:r=!1,extendedZone:s=!1,format:i="extended"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.isValid?(r?"T":"")+rr(this,"extended"===i,e,t,n,s):null}toRFC2822(){return er(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return er(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?nr(this,!0):null}toSQLTime(){let{includeOffset:t=!0,includeZone:e=!1,includeOffsetSpace:n=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r="HH:mm:ss.SSS";return(e||t)&&(n&&(r+=" "),e?r+="z":t&&(r+="ZZ")),er(this,r,!0)}toSQL(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.isValid?"".concat(this.toSQLDate()," ").concat(this.toSQLTime(t)):null}toString(){return this.isValid?this.toISO():Hn}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?"DateTime { ts: ".concat(this.toISO(),", zone: ").concat(this.zone.name,", locale: ").concat(this.locale," }"):"DateTime { Invalid, reason: ".concat(this.invalidReason," }")}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.isValid)return{};const e={...this.c};return t.includeConfig&&(e.outputCalendar=this.outputCalendar,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"milliseconds",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this.isValid||!t.isValid)return pn.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...n},s=(o=e,Array.isArray(o)?o:[o]).map(pn.normalizeUnit),i=t.valueOf()>this.valueOf(),a=On(i?this:t,i?t:this,s,r);var o;return i?a.negate():a}diffNow(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"milliseconds",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.diff(fr.now(),t,e)}until(t){return this.isValid?Sn.fromDateTimes(this,t):this}hasSame(t,e,n){if(!this.isValid)return!1;const r=t.valueOf(),s=this.setZone(t.zone,{keepLocalTime:!0});return s.startOf(e,n)<=r&&r<=s.endOf(e,n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.isValid)return null;const e=t.base||fr.fromObject({},{zone:this.zone}),n=t.padding?this0&&void 0!==arguments[0]?arguments[0]:{};return this.isValid?dr(t.base||fr.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(){for(var t=arguments.length,e=new Array(t),n=0;nt.valueOf()),Math.min)}static max(){for(var t=arguments.length,e=new Array(t),n=0;nt.valueOf()),Math.max)}static fromFormatExplain(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{locale:r=null,numberingSystem:s=null}=n;return Un(et.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0}),t,e)}static fromStringExplain(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return fr.fromFormatExplain(t,e,n)}static get DATE_SHORT(){return f}static get DATE_MED(){return y}static get DATE_MED_WITH_WEEKDAY(){return g}static get DATE_FULL(){return w}static get DATE_HUGE(){return v}static get TIME_SIMPLE(){return p}static get TIME_WITH_SECONDS(){return k}static get TIME_WITH_SHORT_OFFSET(){return S}static get TIME_WITH_LONG_OFFSET(){return T}static get TIME_24_SIMPLE(){return b}static get TIME_24_WITH_SECONDS(){return O}static get TIME_24_WITH_SHORT_OFFSET(){return N}static get TIME_24_WITH_LONG_OFFSET(){return D}static get DATETIME_SHORT(){return M}static get DATETIME_SHORT_WITH_SECONDS(){return I}static get DATETIME_MED(){return V}static get DATETIME_MED_WITH_SECONDS(){return E}static get DATETIME_MED_WITH_WEEKDAY(){return x}static get DATETIME_FULL(){return C}static get DATETIME_FULL_WITH_SECONDS(){return F}static get DATETIME_HUGE(){return W}static get DATETIME_HUGE_WITH_SECONDS(){return Z}}function yr(t){if(fr.isDateTime(t))return t;if(t&&t.valueOf&&xt(t.valueOf()))return fr.fromJSDate(t);if(t&&"object"===typeof t)return fr.fromObject(t);throw new u("Unknown datetime argument: ".concat(t,", of type ").concat(typeof t))}}}]); +//# sourceMappingURL=241.f827f4d6.chunk.js.map \ No newline at end of file diff --git a/web-app/build/static/js/779.5342a80b.chunk.js.map b/web-app/build/static/js/241.f827f4d6.chunk.js.map similarity index 99% rename from web-app/build/static/js/779.5342a80b.chunk.js.map rename to web-app/build/static/js/241.f827f4d6.chunk.js.map index f178e52e367..ee6e82a6527 100644 --- a/web-app/build/static/js/779.5342a80b.chunk.js.map +++ b/web-app/build/static/js/241.f827f4d6.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/779.5342a80b.chunk.js","mappings":"8HAKA,MAAMA,UAAmBC,OAKlB,MAAMC,UAA6BF,EACxCG,WAAAA,CAAYC,GACVC,MAAM,qBAADC,OAAsBF,EAAOG,aACpC,EAMK,MAAMC,UAA6BR,EACxCG,WAAAA,CAAYC,GACVC,MAAM,qBAADC,OAAsBF,EAAOG,aACpC,EAMK,MAAME,UAA6BT,EACxCG,WAAAA,CAAYC,GACVC,MAAM,qBAADC,OAAsBF,EAAOG,aACpC,EAMK,MAAMG,UAAsCV,GAK5C,MAAMW,UAAyBX,EACpCG,WAAAA,CAAYS,GACVP,MAAM,gBAADC,OAAiBM,GACxB,EAMK,MAAMC,UAA6Bb,GAKnC,MAAMc,UAA4Bd,EACvCG,WAAAA,GACEE,MAAM,4BACR,ECvDF,MAAMU,EAAI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AC/B,GAAI1uB,GAASyqB,WAAWiE,GACtB,OAAOA,EACF,GAAIA,GAAeA,EAAYvW,SAAW1V,GAASisB,EAAYvW,WACpE,OAAOnY,GAASuoB,WAAWmG,GACtB,GAAIA,GAAsC,kBAAhBA,EAC/B,OAAO1uB,GAASlC,WAAW4wB,GAE3B,MAAM,IAAI99B,EAAqB,8BAADP,OACEq+B,EAAW,cAAAr+B,cAAoBq+B,GAGnE,C","sources":["../node_modules/luxon/src/errors.js","../node_modules/luxon/src/impl/formats.js","../node_modules/luxon/src/zone.js","../node_modules/luxon/src/zones/systemZone.js","../node_modules/luxon/src/zones/IANAZone.js","../node_modules/luxon/src/impl/locale.js","../node_modules/luxon/src/impl/english.js","../node_modules/luxon/src/zones/fixedOffsetZone.js","../node_modules/luxon/src/zones/invalidZone.js","../node_modules/luxon/src/impl/zoneUtil.js","../node_modules/luxon/src/impl/util.js","../node_modules/luxon/src/settings.js","../node_modules/luxon/src/impl/invalid.js","../node_modules/luxon/src/impl/conversions.js","../node_modules/luxon/src/impl/formatter.js","../node_modules/luxon/src/impl/regexParser.js","../node_modules/luxon/src/duration.js","../node_modules/luxon/src/interval.js","../node_modules/luxon/src/info.js","../node_modules/luxon/src/impl/diff.js","../node_modules/luxon/src/impl/digits.js","../node_modules/luxon/src/impl/tokenParser.js","../node_modules/luxon/src/datetime.js"],"sourcesContent":["// these aren't really private, but nor are they really useful to document\n\n/**\n * @private\n */\nclass LuxonError extends Error {}\n\n/**\n * @private\n */\nexport class InvalidDateTimeError extends LuxonError {\n constructor(reason) {\n super(`Invalid DateTime: ${reason.toMessage()}`);\n }\n}\n\n/**\n * @private\n */\nexport class InvalidIntervalError extends LuxonError {\n constructor(reason) {\n super(`Invalid Interval: ${reason.toMessage()}`);\n }\n}\n\n/**\n * @private\n */\nexport class InvalidDurationError extends LuxonError {\n constructor(reason) {\n super(`Invalid Duration: ${reason.toMessage()}`);\n }\n}\n\n/**\n * @private\n */\nexport class ConflictingSpecificationError extends LuxonError {}\n\n/**\n * @private\n */\nexport class InvalidUnitError extends LuxonError {\n constructor(unit) {\n super(`Invalid unit ${unit}`);\n }\n}\n\n/**\n * @private\n */\nexport class InvalidArgumentError extends LuxonError {}\n\n/**\n * @private\n */\nexport class ZoneIsAbstractError extends LuxonError {\n constructor() {\n super(\"Zone is an abstract class\");\n }\n}\n","/**\n * @private\n */\n\nconst n = \"numeric\",\n s = \"short\",\n l = \"long\";\n\nexport const DATE_SHORT = {\n year: n,\n month: n,\n day: n,\n};\n\nexport const DATE_MED = {\n year: n,\n month: s,\n day: n,\n};\n\nexport const DATE_MED_WITH_WEEKDAY = {\n year: n,\n month: s,\n day: n,\n weekday: s,\n};\n\nexport const DATE_FULL = {\n year: n,\n month: l,\n day: n,\n};\n\nexport const DATE_HUGE = {\n year: n,\n month: l,\n day: n,\n weekday: l,\n};\n\nexport const TIME_SIMPLE = {\n hour: n,\n minute: n,\n};\n\nexport const TIME_WITH_SECONDS = {\n hour: n,\n minute: n,\n second: n,\n};\n\nexport const TIME_WITH_SHORT_OFFSET = {\n hour: n,\n minute: n,\n second: n,\n timeZoneName: s,\n};\n\nexport const TIME_WITH_LONG_OFFSET = {\n hour: n,\n minute: n,\n second: n,\n timeZoneName: l,\n};\n\nexport const TIME_24_SIMPLE = {\n hour: n,\n minute: n,\n hourCycle: \"h23\",\n};\n\nexport const TIME_24_WITH_SECONDS = {\n hour: n,\n minute: n,\n second: n,\n hourCycle: \"h23\",\n};\n\nexport const TIME_24_WITH_SHORT_OFFSET = {\n hour: n,\n minute: n,\n second: n,\n hourCycle: \"h23\",\n timeZoneName: s,\n};\n\nexport const TIME_24_WITH_LONG_OFFSET = {\n hour: n,\n minute: n,\n second: n,\n hourCycle: \"h23\",\n timeZoneName: l,\n};\n\nexport const DATETIME_SHORT = {\n year: n,\n month: n,\n day: n,\n hour: n,\n minute: n,\n};\n\nexport const DATETIME_SHORT_WITH_SECONDS = {\n year: n,\n month: n,\n day: n,\n hour: n,\n minute: n,\n second: n,\n};\n\nexport const DATETIME_MED = {\n year: n,\n month: s,\n day: n,\n hour: n,\n minute: n,\n};\n\nexport const DATETIME_MED_WITH_SECONDS = {\n year: n,\n month: s,\n day: n,\n hour: n,\n minute: n,\n second: n,\n};\n\nexport const DATETIME_MED_WITH_WEEKDAY = {\n year: n,\n month: s,\n day: n,\n weekday: s,\n hour: n,\n minute: n,\n};\n\nexport const DATETIME_FULL = {\n year: n,\n month: l,\n day: n,\n hour: n,\n minute: n,\n timeZoneName: s,\n};\n\nexport const DATETIME_FULL_WITH_SECONDS = {\n year: n,\n month: l,\n day: n,\n hour: n,\n minute: n,\n second: n,\n timeZoneName: s,\n};\n\nexport const DATETIME_HUGE = {\n year: n,\n month: l,\n day: n,\n weekday: l,\n hour: n,\n minute: n,\n timeZoneName: l,\n};\n\nexport const DATETIME_HUGE_WITH_SECONDS = {\n year: n,\n month: l,\n day: n,\n weekday: l,\n hour: n,\n minute: n,\n second: n,\n timeZoneName: l,\n};\n","import { ZoneIsAbstractError } from \"./errors.js\";\n\n/**\n * @interface\n */\nexport default class Zone {\n /**\n * The type of zone\n * @abstract\n * @type {string}\n */\n get type() {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * The name of this zone.\n * @abstract\n * @type {string}\n */\n get name() {\n throw new ZoneIsAbstractError();\n }\n\n get ianaName() {\n return this.name;\n }\n\n /**\n * Returns whether the offset is known to be fixed for the whole year.\n * @abstract\n * @type {boolean}\n */\n get isUniversal() {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Returns the offset's common name (such as EST) at the specified timestamp\n * @abstract\n * @param {number} ts - Epoch milliseconds for which to get the name\n * @param {Object} opts - Options to affect the format\n * @param {string} opts.format - What style of offset to return. Accepts 'long' or 'short'.\n * @param {string} opts.locale - What locale to return the offset name in.\n * @return {string}\n */\n offsetName(ts, opts) {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Returns the offset's value as a string\n * @abstract\n * @param {number} ts - Epoch milliseconds for which to get the offset\n * @param {string} format - What style of offset to return.\n * Accepts 'narrow', 'short', or 'techie'. Returning '+6', '+06:00', or '+0600' respectively\n * @return {string}\n */\n formatOffset(ts, format) {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Return the offset in minutes for this zone at the specified timestamp.\n * @abstract\n * @param {number} ts - Epoch milliseconds for which to compute the offset\n * @return {number}\n */\n offset(ts) {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Return whether this Zone is equal to another zone\n * @abstract\n * @param {Zone} otherZone - the zone to compare\n * @return {boolean}\n */\n equals(otherZone) {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Return whether this Zone is valid.\n * @abstract\n * @type {boolean}\n */\n get isValid() {\n throw new ZoneIsAbstractError();\n }\n}\n","import { formatOffset, parseZoneInfo } from \"../impl/util.js\";\nimport Zone from \"../zone.js\";\n\nlet singleton = null;\n\n/**\n * Represents the local zone for this JavaScript environment.\n * @implements {Zone}\n */\nexport default class SystemZone extends Zone {\n /**\n * Get a singleton instance of the local zone\n * @return {SystemZone}\n */\n static get instance() {\n if (singleton === null) {\n singleton = new SystemZone();\n }\n return singleton;\n }\n\n /** @override **/\n get type() {\n return \"system\";\n }\n\n /** @override **/\n get name() {\n return new Intl.DateTimeFormat().resolvedOptions().timeZone;\n }\n\n /** @override **/\n get isUniversal() {\n return false;\n }\n\n /** @override **/\n offsetName(ts, { format, locale }) {\n return parseZoneInfo(ts, format, locale);\n }\n\n /** @override **/\n formatOffset(ts, format) {\n return formatOffset(this.offset(ts), format);\n }\n\n /** @override **/\n offset(ts) {\n return -new Date(ts).getTimezoneOffset();\n }\n\n /** @override **/\n equals(otherZone) {\n return otherZone.type === \"system\";\n }\n\n /** @override **/\n get isValid() {\n return true;\n }\n}\n","import { formatOffset, parseZoneInfo, isUndefined, objToLocalTS } from \"../impl/util.js\";\nimport Zone from \"../zone.js\";\n\nlet dtfCache = {};\nfunction makeDTF(zone) {\n if (!dtfCache[zone]) {\n dtfCache[zone] = new Intl.DateTimeFormat(\"en-US\", {\n hour12: false,\n timeZone: zone,\n year: \"numeric\",\n month: \"2-digit\",\n day: \"2-digit\",\n hour: \"2-digit\",\n minute: \"2-digit\",\n second: \"2-digit\",\n era: \"short\",\n });\n }\n return dtfCache[zone];\n}\n\nconst typeToPos = {\n year: 0,\n month: 1,\n day: 2,\n era: 3,\n hour: 4,\n minute: 5,\n second: 6,\n};\n\nfunction hackyOffset(dtf, date) {\n const formatted = dtf.format(date).replace(/\\u200E/g, \"\"),\n parsed = /(\\d+)\\/(\\d+)\\/(\\d+) (AD|BC),? (\\d+):(\\d+):(\\d+)/.exec(formatted),\n [, fMonth, fDay, fYear, fadOrBc, fHour, fMinute, fSecond] = parsed;\n return [fYear, fMonth, fDay, fadOrBc, fHour, fMinute, fSecond];\n}\n\nfunction partsOffset(dtf, date) {\n const formatted = dtf.formatToParts(date);\n const filled = [];\n for (let i = 0; i < formatted.length; i++) {\n const { type, value } = formatted[i];\n const pos = typeToPos[type];\n\n if (type === \"era\") {\n filled[pos] = value;\n } else if (!isUndefined(pos)) {\n filled[pos] = parseInt(value, 10);\n }\n }\n return filled;\n}\n\nlet ianaZoneCache = {};\n/**\n * A zone identified by an IANA identifier, like America/New_York\n * @implements {Zone}\n */\nexport default class IANAZone extends Zone {\n /**\n * @param {string} name - Zone name\n * @return {IANAZone}\n */\n static create(name) {\n if (!ianaZoneCache[name]) {\n ianaZoneCache[name] = new IANAZone(name);\n }\n return ianaZoneCache[name];\n }\n\n /**\n * Reset local caches. Should only be necessary in testing scenarios.\n * @return {void}\n */\n static resetCache() {\n ianaZoneCache = {};\n dtfCache = {};\n }\n\n /**\n * Returns whether the provided string is a valid specifier. This only checks the string's format, not that the specifier identifies a known zone; see isValidZone for that.\n * @param {string} s - The string to check validity on\n * @example IANAZone.isValidSpecifier(\"America/New_York\") //=> true\n * @example IANAZone.isValidSpecifier(\"Sport~~blorp\") //=> false\n * @deprecated This method returns false for some valid IANA names. Use isValidZone instead.\n * @return {boolean}\n */\n static isValidSpecifier(s) {\n return this.isValidZone(s);\n }\n\n /**\n * Returns whether the provided string identifies a real zone\n * @param {string} zone - The string to check\n * @example IANAZone.isValidZone(\"America/New_York\") //=> true\n * @example IANAZone.isValidZone(\"Fantasia/Castle\") //=> false\n * @example IANAZone.isValidZone(\"Sport~~blorp\") //=> false\n * @return {boolean}\n */\n static isValidZone(zone) {\n if (!zone) {\n return false;\n }\n try {\n new Intl.DateTimeFormat(\"en-US\", { timeZone: zone }).format();\n return true;\n } catch (e) {\n return false;\n }\n }\n\n constructor(name) {\n super();\n /** @private **/\n this.zoneName = name;\n /** @private **/\n this.valid = IANAZone.isValidZone(name);\n }\n\n /** @override **/\n get type() {\n return \"iana\";\n }\n\n /** @override **/\n get name() {\n return this.zoneName;\n }\n\n /** @override **/\n get isUniversal() {\n return false;\n }\n\n /** @override **/\n offsetName(ts, { format, locale }) {\n return parseZoneInfo(ts, format, locale, this.name);\n }\n\n /** @override **/\n formatOffset(ts, format) {\n return formatOffset(this.offset(ts), format);\n }\n\n /** @override **/\n offset(ts) {\n const date = new Date(ts);\n\n if (isNaN(date)) return NaN;\n\n const dtf = makeDTF(this.name);\n let [year, month, day, adOrBc, hour, minute, second] = dtf.formatToParts\n ? partsOffset(dtf, date)\n : hackyOffset(dtf, date);\n\n if (adOrBc === \"BC\") {\n year = -Math.abs(year) + 1;\n }\n\n // because we're using hour12 and https://bugs.chromium.org/p/chromium/issues/detail?id=1025564&can=2&q=%2224%3A00%22%20datetimeformat\n const adjustedHour = hour === 24 ? 0 : hour;\n\n const asUTC = objToLocalTS({\n year,\n month,\n day,\n hour: adjustedHour,\n minute,\n second,\n millisecond: 0,\n });\n\n let asTS = +date;\n const over = asTS % 1000;\n asTS -= over >= 0 ? over : 1000 + over;\n return (asUTC - asTS) / (60 * 1000);\n }\n\n /** @override **/\n equals(otherZone) {\n return otherZone.type === \"iana\" && otherZone.name === this.name;\n }\n\n /** @override **/\n get isValid() {\n return this.valid;\n }\n}\n","import { hasLocaleWeekInfo, hasRelative, padStart, roundTo, validateWeekSettings } from \"./util.js\";\nimport * as English from \"./english.js\";\nimport Settings from \"../settings.js\";\nimport DateTime from \"../datetime.js\";\nimport IANAZone from \"../zones/IANAZone.js\";\n\n// todo - remap caching\n\nlet intlLFCache = {};\nfunction getCachedLF(locString, opts = {}) {\n const key = JSON.stringify([locString, opts]);\n let dtf = intlLFCache[key];\n if (!dtf) {\n dtf = new Intl.ListFormat(locString, opts);\n intlLFCache[key] = dtf;\n }\n return dtf;\n}\n\nlet intlDTCache = {};\nfunction getCachedDTF(locString, opts = {}) {\n const key = JSON.stringify([locString, opts]);\n let dtf = intlDTCache[key];\n if (!dtf) {\n dtf = new Intl.DateTimeFormat(locString, opts);\n intlDTCache[key] = dtf;\n }\n return dtf;\n}\n\nlet intlNumCache = {};\nfunction getCachedINF(locString, opts = {}) {\n const key = JSON.stringify([locString, opts]);\n let inf = intlNumCache[key];\n if (!inf) {\n inf = new Intl.NumberFormat(locString, opts);\n intlNumCache[key] = inf;\n }\n return inf;\n}\n\nlet intlRelCache = {};\nfunction getCachedRTF(locString, opts = {}) {\n const { base, ...cacheKeyOpts } = opts; // exclude `base` from the options\n const key = JSON.stringify([locString, cacheKeyOpts]);\n let inf = intlRelCache[key];\n if (!inf) {\n inf = new Intl.RelativeTimeFormat(locString, opts);\n intlRelCache[key] = inf;\n }\n return inf;\n}\n\nlet sysLocaleCache = null;\nfunction systemLocale() {\n if (sysLocaleCache) {\n return sysLocaleCache;\n } else {\n sysLocaleCache = new Intl.DateTimeFormat().resolvedOptions().locale;\n return sysLocaleCache;\n }\n}\n\nlet weekInfoCache = {};\nfunction getCachedWeekInfo(locString) {\n let data = weekInfoCache[locString];\n if (!data) {\n const locale = new Intl.Locale(locString);\n // browsers currently implement this as a property, but spec says it should be a getter function\n data = \"getWeekInfo\" in locale ? locale.getWeekInfo() : locale.weekInfo;\n weekInfoCache[locString] = data;\n }\n return data;\n}\n\nfunction parseLocaleString(localeStr) {\n // I really want to avoid writing a BCP 47 parser\n // see, e.g. https://github.com/wooorm/bcp-47\n // Instead, we'll do this:\n\n // a) if the string has no -u extensions, just leave it alone\n // b) if it does, use Intl to resolve everything\n // c) if Intl fails, try again without the -u\n\n // private subtags and unicode subtags have ordering requirements,\n // and we're not properly parsing this, so just strip out the\n // private ones if they exist.\n const xIndex = localeStr.indexOf(\"-x-\");\n if (xIndex !== -1) {\n localeStr = localeStr.substring(0, xIndex);\n }\n\n const uIndex = localeStr.indexOf(\"-u-\");\n if (uIndex === -1) {\n return [localeStr];\n } else {\n let options;\n let selectedStr;\n try {\n options = getCachedDTF(localeStr).resolvedOptions();\n selectedStr = localeStr;\n } catch (e) {\n const smaller = localeStr.substring(0, uIndex);\n options = getCachedDTF(smaller).resolvedOptions();\n selectedStr = smaller;\n }\n\n const { numberingSystem, calendar } = options;\n return [selectedStr, numberingSystem, calendar];\n }\n}\n\nfunction intlConfigString(localeStr, numberingSystem, outputCalendar) {\n if (outputCalendar || numberingSystem) {\n if (!localeStr.includes(\"-u-\")) {\n localeStr += \"-u\";\n }\n\n if (outputCalendar) {\n localeStr += `-ca-${outputCalendar}`;\n }\n\n if (numberingSystem) {\n localeStr += `-nu-${numberingSystem}`;\n }\n return localeStr;\n } else {\n return localeStr;\n }\n}\n\nfunction mapMonths(f) {\n const ms = [];\n for (let i = 1; i <= 12; i++) {\n const dt = DateTime.utc(2009, i, 1);\n ms.push(f(dt));\n }\n return ms;\n}\n\nfunction mapWeekdays(f) {\n const ms = [];\n for (let i = 1; i <= 7; i++) {\n const dt = DateTime.utc(2016, 11, 13 + i);\n ms.push(f(dt));\n }\n return ms;\n}\n\nfunction listStuff(loc, length, englishFn, intlFn) {\n const mode = loc.listingMode();\n\n if (mode === \"error\") {\n return null;\n } else if (mode === \"en\") {\n return englishFn(length);\n } else {\n return intlFn(length);\n }\n}\n\nfunction supportsFastNumbers(loc) {\n if (loc.numberingSystem && loc.numberingSystem !== \"latn\") {\n return false;\n } else {\n return (\n loc.numberingSystem === \"latn\" ||\n !loc.locale ||\n loc.locale.startsWith(\"en\") ||\n new Intl.DateTimeFormat(loc.intl).resolvedOptions().numberingSystem === \"latn\"\n );\n }\n}\n\n/**\n * @private\n */\n\nclass PolyNumberFormatter {\n constructor(intl, forceSimple, opts) {\n this.padTo = opts.padTo || 0;\n this.floor = opts.floor || false;\n\n const { padTo, floor, ...otherOpts } = opts;\n\n if (!forceSimple || Object.keys(otherOpts).length > 0) {\n const intlOpts = { useGrouping: false, ...opts };\n if (opts.padTo > 0) intlOpts.minimumIntegerDigits = opts.padTo;\n this.inf = getCachedINF(intl, intlOpts);\n }\n }\n\n format(i) {\n if (this.inf) {\n const fixed = this.floor ? Math.floor(i) : i;\n return this.inf.format(fixed);\n } else {\n // to match the browser's numberformatter defaults\n const fixed = this.floor ? Math.floor(i) : roundTo(i, 3);\n return padStart(fixed, this.padTo);\n }\n }\n}\n\n/**\n * @private\n */\n\nclass PolyDateFormatter {\n constructor(dt, intl, opts) {\n this.opts = opts;\n this.originalZone = undefined;\n\n let z = undefined;\n if (this.opts.timeZone) {\n // Don't apply any workarounds if a timeZone is explicitly provided in opts\n this.dt = dt;\n } else if (dt.zone.type === \"fixed\") {\n // UTC-8 or Etc/UTC-8 are not part of tzdata, only Etc/GMT+8 and the like.\n // That is why fixed-offset TZ is set to that unless it is:\n // 1. Representing offset 0 when UTC is used to maintain previous behavior and does not become GMT.\n // 2. Unsupported by the browser:\n // - some do not support Etc/\n // - < Etc/GMT-14, > Etc/GMT+12, and 30-minute or 45-minute offsets are not part of tzdata\n const gmtOffset = -1 * (dt.offset / 60);\n const offsetZ = gmtOffset >= 0 ? `Etc/GMT+${gmtOffset}` : `Etc/GMT${gmtOffset}`;\n if (dt.offset !== 0 && IANAZone.create(offsetZ).valid) {\n z = offsetZ;\n this.dt = dt;\n } else {\n // Not all fixed-offset zones like Etc/+4:30 are present in tzdata so\n // we manually apply the offset and substitute the zone as needed.\n z = \"UTC\";\n this.dt = dt.offset === 0 ? dt : dt.setZone(\"UTC\").plus({ minutes: dt.offset });\n this.originalZone = dt.zone;\n }\n } else if (dt.zone.type === \"system\") {\n this.dt = dt;\n } else if (dt.zone.type === \"iana\") {\n this.dt = dt;\n z = dt.zone.name;\n } else {\n // Custom zones can have any offset / offsetName so we just manually\n // apply the offset and substitute the zone as needed.\n z = \"UTC\";\n this.dt = dt.setZone(\"UTC\").plus({ minutes: dt.offset });\n this.originalZone = dt.zone;\n }\n\n const intlOpts = { ...this.opts };\n intlOpts.timeZone = intlOpts.timeZone || z;\n this.dtf = getCachedDTF(intl, intlOpts);\n }\n\n format() {\n if (this.originalZone) {\n // If we have to substitute in the actual zone name, we have to use\n // formatToParts so that the timezone can be replaced.\n return this.formatToParts()\n .map(({ value }) => value)\n .join(\"\");\n }\n return this.dtf.format(this.dt.toJSDate());\n }\n\n formatToParts() {\n const parts = this.dtf.formatToParts(this.dt.toJSDate());\n if (this.originalZone) {\n return parts.map((part) => {\n if (part.type === \"timeZoneName\") {\n const offsetName = this.originalZone.offsetName(this.dt.ts, {\n locale: this.dt.locale,\n format: this.opts.timeZoneName,\n });\n return {\n ...part,\n value: offsetName,\n };\n } else {\n return part;\n }\n });\n }\n return parts;\n }\n\n resolvedOptions() {\n return this.dtf.resolvedOptions();\n }\n}\n\n/**\n * @private\n */\nclass PolyRelFormatter {\n constructor(intl, isEnglish, opts) {\n this.opts = { style: \"long\", ...opts };\n if (!isEnglish && hasRelative()) {\n this.rtf = getCachedRTF(intl, opts);\n }\n }\n\n format(count, unit) {\n if (this.rtf) {\n return this.rtf.format(count, unit);\n } else {\n return English.formatRelativeTime(unit, count, this.opts.numeric, this.opts.style !== \"long\");\n }\n }\n\n formatToParts(count, unit) {\n if (this.rtf) {\n return this.rtf.formatToParts(count, unit);\n } else {\n return [];\n }\n }\n}\n\nconst fallbackWeekSettings = {\n firstDay: 1,\n minimalDays: 4,\n weekend: [6, 7],\n};\n\n/**\n * @private\n */\n\nexport default class Locale {\n static fromOpts(opts) {\n return Locale.create(\n opts.locale,\n opts.numberingSystem,\n opts.outputCalendar,\n opts.weekSettings,\n opts.defaultToEN\n );\n }\n\n static create(locale, numberingSystem, outputCalendar, weekSettings, defaultToEN = false) {\n const specifiedLocale = locale || Settings.defaultLocale;\n // the system locale is useful for human readable strings but annoying for parsing/formatting known formats\n const localeR = specifiedLocale || (defaultToEN ? \"en-US\" : systemLocale());\n const numberingSystemR = numberingSystem || Settings.defaultNumberingSystem;\n const outputCalendarR = outputCalendar || Settings.defaultOutputCalendar;\n const weekSettingsR = validateWeekSettings(weekSettings) || Settings.defaultWeekSettings;\n return new Locale(localeR, numberingSystemR, outputCalendarR, weekSettingsR, specifiedLocale);\n }\n\n static resetCache() {\n sysLocaleCache = null;\n intlDTCache = {};\n intlNumCache = {};\n intlRelCache = {};\n }\n\n static fromObject({ locale, numberingSystem, outputCalendar, weekSettings } = {}) {\n return Locale.create(locale, numberingSystem, outputCalendar, weekSettings);\n }\n\n constructor(locale, numbering, outputCalendar, weekSettings, specifiedLocale) {\n const [parsedLocale, parsedNumberingSystem, parsedOutputCalendar] = parseLocaleString(locale);\n\n this.locale = parsedLocale;\n this.numberingSystem = numbering || parsedNumberingSystem || null;\n this.outputCalendar = outputCalendar || parsedOutputCalendar || null;\n this.weekSettings = weekSettings;\n this.intl = intlConfigString(this.locale, this.numberingSystem, this.outputCalendar);\n\n this.weekdaysCache = { format: {}, standalone: {} };\n this.monthsCache = { format: {}, standalone: {} };\n this.meridiemCache = null;\n this.eraCache = {};\n\n this.specifiedLocale = specifiedLocale;\n this.fastNumbersCached = null;\n }\n\n get fastNumbers() {\n if (this.fastNumbersCached == null) {\n this.fastNumbersCached = supportsFastNumbers(this);\n }\n\n return this.fastNumbersCached;\n }\n\n listingMode() {\n const isActuallyEn = this.isEnglish();\n const hasNoWeirdness =\n (this.numberingSystem === null || this.numberingSystem === \"latn\") &&\n (this.outputCalendar === null || this.outputCalendar === \"gregory\");\n return isActuallyEn && hasNoWeirdness ? \"en\" : \"intl\";\n }\n\n clone(alts) {\n if (!alts || Object.getOwnPropertyNames(alts).length === 0) {\n return this;\n } else {\n return Locale.create(\n alts.locale || this.specifiedLocale,\n alts.numberingSystem || this.numberingSystem,\n alts.outputCalendar || this.outputCalendar,\n validateWeekSettings(alts.weekSettings) || this.weekSettings,\n alts.defaultToEN || false\n );\n }\n }\n\n redefaultToEN(alts = {}) {\n return this.clone({ ...alts, defaultToEN: true });\n }\n\n redefaultToSystem(alts = {}) {\n return this.clone({ ...alts, defaultToEN: false });\n }\n\n months(length, format = false) {\n return listStuff(this, length, English.months, () => {\n const intl = format ? { month: length, day: \"numeric\" } : { month: length },\n formatStr = format ? \"format\" : \"standalone\";\n if (!this.monthsCache[formatStr][length]) {\n this.monthsCache[formatStr][length] = mapMonths((dt) => this.extract(dt, intl, \"month\"));\n }\n return this.monthsCache[formatStr][length];\n });\n }\n\n weekdays(length, format = false) {\n return listStuff(this, length, English.weekdays, () => {\n const intl = format\n ? { weekday: length, year: \"numeric\", month: \"long\", day: \"numeric\" }\n : { weekday: length },\n formatStr = format ? \"format\" : \"standalone\";\n if (!this.weekdaysCache[formatStr][length]) {\n this.weekdaysCache[formatStr][length] = mapWeekdays((dt) =>\n this.extract(dt, intl, \"weekday\")\n );\n }\n return this.weekdaysCache[formatStr][length];\n });\n }\n\n meridiems() {\n return listStuff(\n this,\n undefined,\n () => English.meridiems,\n () => {\n // In theory there could be aribitrary day periods. We're gonna assume there are exactly two\n // for AM and PM. This is probably wrong, but it's makes parsing way easier.\n if (!this.meridiemCache) {\n const intl = { hour: \"numeric\", hourCycle: \"h12\" };\n this.meridiemCache = [DateTime.utc(2016, 11, 13, 9), DateTime.utc(2016, 11, 13, 19)].map(\n (dt) => this.extract(dt, intl, \"dayperiod\")\n );\n }\n\n return this.meridiemCache;\n }\n );\n }\n\n eras(length) {\n return listStuff(this, length, English.eras, () => {\n const intl = { era: length };\n\n // This is problematic. Different calendars are going to define eras totally differently. What I need is the minimum set of dates\n // to definitely enumerate them.\n if (!this.eraCache[length]) {\n this.eraCache[length] = [DateTime.utc(-40, 1, 1), DateTime.utc(2017, 1, 1)].map((dt) =>\n this.extract(dt, intl, \"era\")\n );\n }\n\n return this.eraCache[length];\n });\n }\n\n extract(dt, intlOpts, field) {\n const df = this.dtFormatter(dt, intlOpts),\n results = df.formatToParts(),\n matching = results.find((m) => m.type.toLowerCase() === field);\n return matching ? matching.value : null;\n }\n\n numberFormatter(opts = {}) {\n // this forcesimple option is never used (the only caller short-circuits on it, but it seems safer to leave)\n // (in contrast, the rest of the condition is used heavily)\n return new PolyNumberFormatter(this.intl, opts.forceSimple || this.fastNumbers, opts);\n }\n\n dtFormatter(dt, intlOpts = {}) {\n return new PolyDateFormatter(dt, this.intl, intlOpts);\n }\n\n relFormatter(opts = {}) {\n return new PolyRelFormatter(this.intl, this.isEnglish(), opts);\n }\n\n listFormatter(opts = {}) {\n return getCachedLF(this.intl, opts);\n }\n\n isEnglish() {\n return (\n this.locale === \"en\" ||\n this.locale.toLowerCase() === \"en-us\" ||\n new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith(\"en-us\")\n );\n }\n\n getWeekSettings() {\n if (this.weekSettings) {\n return this.weekSettings;\n } else if (!hasLocaleWeekInfo()) {\n return fallbackWeekSettings;\n } else {\n return getCachedWeekInfo(this.locale);\n }\n }\n\n getStartOfWeek() {\n return this.getWeekSettings().firstDay;\n }\n\n getMinDaysInFirstWeek() {\n return this.getWeekSettings().minimalDays;\n }\n\n getWeekendDays() {\n return this.getWeekSettings().weekend;\n }\n\n equals(other) {\n return (\n this.locale === other.locale &&\n this.numberingSystem === other.numberingSystem &&\n this.outputCalendar === other.outputCalendar\n );\n }\n}\n","import * as Formats from \"./formats.js\";\nimport { pick } from \"./util.js\";\n\nfunction stringify(obj) {\n return JSON.stringify(obj, Object.keys(obj).sort());\n}\n\n/**\n * @private\n */\n\nexport const monthsLong = [\n \"January\",\n \"February\",\n \"March\",\n \"April\",\n \"May\",\n \"June\",\n \"July\",\n \"August\",\n \"September\",\n \"October\",\n \"November\",\n \"December\",\n];\n\nexport const monthsShort = [\n \"Jan\",\n \"Feb\",\n \"Mar\",\n \"Apr\",\n \"May\",\n \"Jun\",\n \"Jul\",\n \"Aug\",\n \"Sep\",\n \"Oct\",\n \"Nov\",\n \"Dec\",\n];\n\nexport const monthsNarrow = [\"J\", \"F\", \"M\", \"A\", \"M\", \"J\", \"J\", \"A\", \"S\", \"O\", \"N\", \"D\"];\n\nexport function months(length) {\n switch (length) {\n case \"narrow\":\n return [...monthsNarrow];\n case \"short\":\n return [...monthsShort];\n case \"long\":\n return [...monthsLong];\n case \"numeric\":\n return [\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"11\", \"12\"];\n case \"2-digit\":\n return [\"01\", \"02\", \"03\", \"04\", \"05\", \"06\", \"07\", \"08\", \"09\", \"10\", \"11\", \"12\"];\n default:\n return null;\n }\n}\n\nexport const weekdaysLong = [\n \"Monday\",\n \"Tuesday\",\n \"Wednesday\",\n \"Thursday\",\n \"Friday\",\n \"Saturday\",\n \"Sunday\",\n];\n\nexport const weekdaysShort = [\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"];\n\nexport const weekdaysNarrow = [\"M\", \"T\", \"W\", \"T\", \"F\", \"S\", \"S\"];\n\nexport function weekdays(length) {\n switch (length) {\n case \"narrow\":\n return [...weekdaysNarrow];\n case \"short\":\n return [...weekdaysShort];\n case \"long\":\n return [...weekdaysLong];\n case \"numeric\":\n return [\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\"];\n default:\n return null;\n }\n}\n\nexport const meridiems = [\"AM\", \"PM\"];\n\nexport const erasLong = [\"Before Christ\", \"Anno Domini\"];\n\nexport const erasShort = [\"BC\", \"AD\"];\n\nexport const erasNarrow = [\"B\", \"A\"];\n\nexport function eras(length) {\n switch (length) {\n case \"narrow\":\n return [...erasNarrow];\n case \"short\":\n return [...erasShort];\n case \"long\":\n return [...erasLong];\n default:\n return null;\n }\n}\n\nexport function meridiemForDateTime(dt) {\n return meridiems[dt.hour < 12 ? 0 : 1];\n}\n\nexport function weekdayForDateTime(dt, length) {\n return weekdays(length)[dt.weekday - 1];\n}\n\nexport function monthForDateTime(dt, length) {\n return months(length)[dt.month - 1];\n}\n\nexport function eraForDateTime(dt, length) {\n return eras(length)[dt.year < 0 ? 0 : 1];\n}\n\nexport function formatRelativeTime(unit, count, numeric = \"always\", narrow = false) {\n const units = {\n years: [\"year\", \"yr.\"],\n quarters: [\"quarter\", \"qtr.\"],\n months: [\"month\", \"mo.\"],\n weeks: [\"week\", \"wk.\"],\n days: [\"day\", \"day\", \"days\"],\n hours: [\"hour\", \"hr.\"],\n minutes: [\"minute\", \"min.\"],\n seconds: [\"second\", \"sec.\"],\n };\n\n const lastable = [\"hours\", \"minutes\", \"seconds\"].indexOf(unit) === -1;\n\n if (numeric === \"auto\" && lastable) {\n const isDay = unit === \"days\";\n switch (count) {\n case 1:\n return isDay ? \"tomorrow\" : `next ${units[unit][0]}`;\n case -1:\n return isDay ? \"yesterday\" : `last ${units[unit][0]}`;\n case 0:\n return isDay ? \"today\" : `this ${units[unit][0]}`;\n default: // fall through\n }\n }\n\n const isInPast = Object.is(count, -0) || count < 0,\n fmtValue = Math.abs(count),\n singular = fmtValue === 1,\n lilUnits = units[unit],\n fmtUnit = narrow\n ? singular\n ? lilUnits[1]\n : lilUnits[2] || lilUnits[1]\n : singular\n ? units[unit][0]\n : unit;\n return isInPast ? `${fmtValue} ${fmtUnit} ago` : `in ${fmtValue} ${fmtUnit}`;\n}\n\nexport function formatString(knownFormat) {\n // these all have the offsets removed because we don't have access to them\n // without all the intl stuff this is backfilling\n const filtered = pick(knownFormat, [\n \"weekday\",\n \"era\",\n \"year\",\n \"month\",\n \"day\",\n \"hour\",\n \"minute\",\n \"second\",\n \"timeZoneName\",\n \"hourCycle\",\n ]),\n key = stringify(filtered),\n dateTimeHuge = \"EEEE, LLLL d, yyyy, h:mm a\";\n switch (key) {\n case stringify(Formats.DATE_SHORT):\n return \"M/d/yyyy\";\n case stringify(Formats.DATE_MED):\n return \"LLL d, yyyy\";\n case stringify(Formats.DATE_MED_WITH_WEEKDAY):\n return \"EEE, LLL d, yyyy\";\n case stringify(Formats.DATE_FULL):\n return \"LLLL d, yyyy\";\n case stringify(Formats.DATE_HUGE):\n return \"EEEE, LLLL d, yyyy\";\n case stringify(Formats.TIME_SIMPLE):\n return \"h:mm a\";\n case stringify(Formats.TIME_WITH_SECONDS):\n return \"h:mm:ss a\";\n case stringify(Formats.TIME_WITH_SHORT_OFFSET):\n return \"h:mm a\";\n case stringify(Formats.TIME_WITH_LONG_OFFSET):\n return \"h:mm a\";\n case stringify(Formats.TIME_24_SIMPLE):\n return \"HH:mm\";\n case stringify(Formats.TIME_24_WITH_SECONDS):\n return \"HH:mm:ss\";\n case stringify(Formats.TIME_24_WITH_SHORT_OFFSET):\n return \"HH:mm\";\n case stringify(Formats.TIME_24_WITH_LONG_OFFSET):\n return \"HH:mm\";\n case stringify(Formats.DATETIME_SHORT):\n return \"M/d/yyyy, h:mm a\";\n case stringify(Formats.DATETIME_MED):\n return \"LLL d, yyyy, h:mm a\";\n case stringify(Formats.DATETIME_FULL):\n return \"LLLL d, yyyy, h:mm a\";\n case stringify(Formats.DATETIME_HUGE):\n return dateTimeHuge;\n case stringify(Formats.DATETIME_SHORT_WITH_SECONDS):\n return \"M/d/yyyy, h:mm:ss a\";\n case stringify(Formats.DATETIME_MED_WITH_SECONDS):\n return \"LLL d, yyyy, h:mm:ss a\";\n case stringify(Formats.DATETIME_MED_WITH_WEEKDAY):\n return \"EEE, d LLL yyyy, h:mm a\";\n case stringify(Formats.DATETIME_FULL_WITH_SECONDS):\n return \"LLLL d, yyyy, h:mm:ss a\";\n case stringify(Formats.DATETIME_HUGE_WITH_SECONDS):\n return \"EEEE, LLLL d, yyyy, h:mm:ss a\";\n default:\n return dateTimeHuge;\n }\n}\n","import { formatOffset, signedOffset } from \"../impl/util.js\";\nimport Zone from \"../zone.js\";\n\nlet singleton = null;\n\n/**\n * A zone with a fixed offset (meaning no DST)\n * @implements {Zone}\n */\nexport default class FixedOffsetZone extends Zone {\n /**\n * Get a singleton instance of UTC\n * @return {FixedOffsetZone}\n */\n static get utcInstance() {\n if (singleton === null) {\n singleton = new FixedOffsetZone(0);\n }\n return singleton;\n }\n\n /**\n * Get an instance with a specified offset\n * @param {number} offset - The offset in minutes\n * @return {FixedOffsetZone}\n */\n static instance(offset) {\n return offset === 0 ? FixedOffsetZone.utcInstance : new FixedOffsetZone(offset);\n }\n\n /**\n * Get an instance of FixedOffsetZone from a UTC offset string, like \"UTC+6\"\n * @param {string} s - The offset string to parse\n * @example FixedOffsetZone.parseSpecifier(\"UTC+6\")\n * @example FixedOffsetZone.parseSpecifier(\"UTC+06\")\n * @example FixedOffsetZone.parseSpecifier(\"UTC-6:00\")\n * @return {FixedOffsetZone}\n */\n static parseSpecifier(s) {\n if (s) {\n const r = s.match(/^utc(?:([+-]\\d{1,2})(?::(\\d{2}))?)?$/i);\n if (r) {\n return new FixedOffsetZone(signedOffset(r[1], r[2]));\n }\n }\n return null;\n }\n\n constructor(offset) {\n super();\n /** @private **/\n this.fixed = offset;\n }\n\n /** @override **/\n get type() {\n return \"fixed\";\n }\n\n /** @override **/\n get name() {\n return this.fixed === 0 ? \"UTC\" : `UTC${formatOffset(this.fixed, \"narrow\")}`;\n }\n\n get ianaName() {\n if (this.fixed === 0) {\n return \"Etc/UTC\";\n } else {\n return `Etc/GMT${formatOffset(-this.fixed, \"narrow\")}`;\n }\n }\n\n /** @override **/\n offsetName() {\n return this.name;\n }\n\n /** @override **/\n formatOffset(ts, format) {\n return formatOffset(this.fixed, format);\n }\n\n /** @override **/\n get isUniversal() {\n return true;\n }\n\n /** @override **/\n offset() {\n return this.fixed;\n }\n\n /** @override **/\n equals(otherZone) {\n return otherZone.type === \"fixed\" && otherZone.fixed === this.fixed;\n }\n\n /** @override **/\n get isValid() {\n return true;\n }\n}\n","import Zone from \"../zone.js\";\n\n/**\n * A zone that failed to parse. You should never need to instantiate this.\n * @implements {Zone}\n */\nexport default class InvalidZone extends Zone {\n constructor(zoneName) {\n super();\n /** @private */\n this.zoneName = zoneName;\n }\n\n /** @override **/\n get type() {\n return \"invalid\";\n }\n\n /** @override **/\n get name() {\n return this.zoneName;\n }\n\n /** @override **/\n get isUniversal() {\n return false;\n }\n\n /** @override **/\n offsetName() {\n return null;\n }\n\n /** @override **/\n formatOffset() {\n return \"\";\n }\n\n /** @override **/\n offset() {\n return NaN;\n }\n\n /** @override **/\n equals() {\n return false;\n }\n\n /** @override **/\n get isValid() {\n return false;\n }\n}\n","/**\n * @private\n */\n\nimport Zone from \"../zone.js\";\nimport IANAZone from \"../zones/IANAZone.js\";\nimport FixedOffsetZone from \"../zones/fixedOffsetZone.js\";\nimport InvalidZone from \"../zones/invalidZone.js\";\n\nimport { isUndefined, isString, isNumber } from \"./util.js\";\nimport SystemZone from \"../zones/systemZone.js\";\n\nexport function normalizeZone(input, defaultZone) {\n let offset;\n if (isUndefined(input) || input === null) {\n return defaultZone;\n } else if (input instanceof Zone) {\n return input;\n } else if (isString(input)) {\n const lowered = input.toLowerCase();\n if (lowered === \"default\") return defaultZone;\n else if (lowered === \"local\" || lowered === \"system\") return SystemZone.instance;\n else if (lowered === \"utc\" || lowered === \"gmt\") return FixedOffsetZone.utcInstance;\n else return FixedOffsetZone.parseSpecifier(lowered) || IANAZone.create(input);\n } else if (isNumber(input)) {\n return FixedOffsetZone.instance(input);\n } else if (typeof input === \"object\" && \"offset\" in input && typeof input.offset === \"function\") {\n // This is dumb, but the instanceof check above doesn't seem to really work\n // so we're duck checking it\n return input;\n } else {\n return new InvalidZone(input);\n }\n}\n","/*\n This is just a junk drawer, containing anything used across multiple classes.\n Because Luxon is small(ish), this should stay small and we won't worry about splitting\n it up into, say, parsingUtil.js and basicUtil.js and so on. But they are divided up by feature area.\n*/\n\nimport { InvalidArgumentError } from \"../errors.js\";\nimport Settings from \"../settings.js\";\nimport { dayOfWeek, isoWeekdayToLocal } from \"./conversions.js\";\n\n/**\n * @private\n */\n\n// TYPES\n\nexport function isUndefined(o) {\n return typeof o === \"undefined\";\n}\n\nexport function isNumber(o) {\n return typeof o === \"number\";\n}\n\nexport function isInteger(o) {\n return typeof o === \"number\" && o % 1 === 0;\n}\n\nexport function isString(o) {\n return typeof o === \"string\";\n}\n\nexport function isDate(o) {\n return Object.prototype.toString.call(o) === \"[object Date]\";\n}\n\n// CAPABILITIES\n\nexport function hasRelative() {\n try {\n return typeof Intl !== \"undefined\" && !!Intl.RelativeTimeFormat;\n } catch (e) {\n return false;\n }\n}\n\nexport function hasLocaleWeekInfo() {\n try {\n return (\n typeof Intl !== \"undefined\" &&\n !!Intl.Locale &&\n (\"weekInfo\" in Intl.Locale.prototype || \"getWeekInfo\" in Intl.Locale.prototype)\n );\n } catch (e) {\n return false;\n }\n}\n\n// OBJECTS AND ARRAYS\n\nexport function maybeArray(thing) {\n return Array.isArray(thing) ? thing : [thing];\n}\n\nexport function bestBy(arr, by, compare) {\n if (arr.length === 0) {\n return undefined;\n }\n return arr.reduce((best, next) => {\n const pair = [by(next), next];\n if (!best) {\n return pair;\n } else if (compare(best[0], pair[0]) === best[0]) {\n return best;\n } else {\n return pair;\n }\n }, null)[1];\n}\n\nexport function pick(obj, keys) {\n return keys.reduce((a, k) => {\n a[k] = obj[k];\n return a;\n }, {});\n}\n\nexport function hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n\nexport function validateWeekSettings(settings) {\n if (settings == null) {\n return null;\n } else if (typeof settings !== \"object\") {\n throw new InvalidArgumentError(\"Week settings must be an object\");\n } else {\n if (\n !integerBetween(settings.firstDay, 1, 7) ||\n !integerBetween(settings.minimalDays, 1, 7) ||\n !Array.isArray(settings.weekend) ||\n settings.weekend.some((v) => !integerBetween(v, 1, 7))\n ) {\n throw new InvalidArgumentError(\"Invalid week settings\");\n }\n return {\n firstDay: settings.firstDay,\n minimalDays: settings.minimalDays,\n weekend: Array.from(settings.weekend),\n };\n }\n}\n\n// NUMBERS AND STRINGS\n\nexport function integerBetween(thing, bottom, top) {\n return isInteger(thing) && thing >= bottom && thing <= top;\n}\n\n// x % n but takes the sign of n instead of x\nexport function floorMod(x, n) {\n return x - n * Math.floor(x / n);\n}\n\nexport function padStart(input, n = 2) {\n const isNeg = input < 0;\n let padded;\n if (isNeg) {\n padded = \"-\" + (\"\" + -input).padStart(n, \"0\");\n } else {\n padded = (\"\" + input).padStart(n, \"0\");\n }\n return padded;\n}\n\nexport function parseInteger(string) {\n if (isUndefined(string) || string === null || string === \"\") {\n return undefined;\n } else {\n return parseInt(string, 10);\n }\n}\n\nexport function parseFloating(string) {\n if (isUndefined(string) || string === null || string === \"\") {\n return undefined;\n } else {\n return parseFloat(string);\n }\n}\n\nexport function parseMillis(fraction) {\n // Return undefined (instead of 0) in these cases, where fraction is not set\n if (isUndefined(fraction) || fraction === null || fraction === \"\") {\n return undefined;\n } else {\n const f = parseFloat(\"0.\" + fraction) * 1000;\n return Math.floor(f);\n }\n}\n\nexport function roundTo(number, digits, towardZero = false) {\n const factor = 10 ** digits,\n rounder = towardZero ? Math.trunc : Math.round;\n return rounder(number * factor) / factor;\n}\n\n// DATE BASICS\n\nexport function isLeapYear(year) {\n return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);\n}\n\nexport function daysInYear(year) {\n return isLeapYear(year) ? 366 : 365;\n}\n\nexport function daysInMonth(year, month) {\n const modMonth = floorMod(month - 1, 12) + 1,\n modYear = year + (month - modMonth) / 12;\n\n if (modMonth === 2) {\n return isLeapYear(modYear) ? 29 : 28;\n } else {\n return [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][modMonth - 1];\n }\n}\n\n// convert a calendar object to a local timestamp (epoch, but with the offset baked in)\nexport function objToLocalTS(obj) {\n let d = Date.UTC(\n obj.year,\n obj.month - 1,\n obj.day,\n obj.hour,\n obj.minute,\n obj.second,\n obj.millisecond\n );\n\n // for legacy reasons, years between 0 and 99 are interpreted as 19XX; revert that\n if (obj.year < 100 && obj.year >= 0) {\n d = new Date(d);\n // set the month and day again, this is necessary because year 2000 is a leap year, but year 100 is not\n // so if obj.year is in 99, but obj.day makes it roll over into year 100,\n // the calculations done by Date.UTC are using year 2000 - which is incorrect\n d.setUTCFullYear(obj.year, obj.month - 1, obj.day);\n }\n return +d;\n}\n\n// adapted from moment.js: https://github.com/moment/moment/blob/000ac1800e620f770f4eb31b5ae908f6167b0ab2/src/lib/units/week-calendar-utils.js\nfunction firstWeekOffset(year, minDaysInFirstWeek, startOfWeek) {\n const fwdlw = isoWeekdayToLocal(dayOfWeek(year, 1, minDaysInFirstWeek), startOfWeek);\n return -fwdlw + minDaysInFirstWeek - 1;\n}\n\nexport function weeksInWeekYear(weekYear, minDaysInFirstWeek = 4, startOfWeek = 1) {\n const weekOffset = firstWeekOffset(weekYear, minDaysInFirstWeek, startOfWeek);\n const weekOffsetNext = firstWeekOffset(weekYear + 1, minDaysInFirstWeek, startOfWeek);\n return (daysInYear(weekYear) - weekOffset + weekOffsetNext) / 7;\n}\n\nexport function untruncateYear(year) {\n if (year > 99) {\n return year;\n } else return year > Settings.twoDigitCutoffYear ? 1900 + year : 2000 + year;\n}\n\n// PARSING\n\nexport function parseZoneInfo(ts, offsetFormat, locale, timeZone = null) {\n const date = new Date(ts),\n intlOpts = {\n hourCycle: \"h23\",\n year: \"numeric\",\n month: \"2-digit\",\n day: \"2-digit\",\n hour: \"2-digit\",\n minute: \"2-digit\",\n };\n\n if (timeZone) {\n intlOpts.timeZone = timeZone;\n }\n\n const modified = { timeZoneName: offsetFormat, ...intlOpts };\n\n const parsed = new Intl.DateTimeFormat(locale, modified)\n .formatToParts(date)\n .find((m) => m.type.toLowerCase() === \"timezonename\");\n return parsed ? parsed.value : null;\n}\n\n// signedOffset('-5', '30') -> -330\nexport function signedOffset(offHourStr, offMinuteStr) {\n let offHour = parseInt(offHourStr, 10);\n\n // don't || this because we want to preserve -0\n if (Number.isNaN(offHour)) {\n offHour = 0;\n }\n\n const offMin = parseInt(offMinuteStr, 10) || 0,\n offMinSigned = offHour < 0 || Object.is(offHour, -0) ? -offMin : offMin;\n return offHour * 60 + offMinSigned;\n}\n\n// COERCION\n\nexport function asNumber(value) {\n const numericValue = Number(value);\n if (typeof value === \"boolean\" || value === \"\" || Number.isNaN(numericValue))\n throw new InvalidArgumentError(`Invalid unit value ${value}`);\n return numericValue;\n}\n\nexport function normalizeObject(obj, normalizer) {\n const normalized = {};\n for (const u in obj) {\n if (hasOwnProperty(obj, u)) {\n const v = obj[u];\n if (v === undefined || v === null) continue;\n normalized[normalizer(u)] = asNumber(v);\n }\n }\n return normalized;\n}\n\nexport function formatOffset(offset, format) {\n const hours = Math.trunc(Math.abs(offset / 60)),\n minutes = Math.trunc(Math.abs(offset % 60)),\n sign = offset >= 0 ? \"+\" : \"-\";\n\n switch (format) {\n case \"short\":\n return `${sign}${padStart(hours, 2)}:${padStart(minutes, 2)}`;\n case \"narrow\":\n return `${sign}${hours}${minutes > 0 ? `:${minutes}` : \"\"}`;\n case \"techie\":\n return `${sign}${padStart(hours, 2)}${padStart(minutes, 2)}`;\n default:\n throw new RangeError(`Value format ${format} is out of range for property format`);\n }\n}\n\nexport function timeObject(obj) {\n return pick(obj, [\"hour\", \"minute\", \"second\", \"millisecond\"]);\n}\n","import SystemZone from \"./zones/systemZone.js\";\nimport IANAZone from \"./zones/IANAZone.js\";\nimport Locale from \"./impl/locale.js\";\n\nimport { normalizeZone } from \"./impl/zoneUtil.js\";\nimport { validateWeekSettings } from \"./impl/util.js\";\n\nlet now = () => Date.now(),\n defaultZone = \"system\",\n defaultLocale = null,\n defaultNumberingSystem = null,\n defaultOutputCalendar = null,\n twoDigitCutoffYear = 60,\n throwOnInvalid,\n defaultWeekSettings = null;\n\n/**\n * Settings contains static getters and setters that control Luxon's overall behavior. Luxon is a simple library with few options, but the ones it does have live here.\n */\nexport default class Settings {\n /**\n * Get the callback for returning the current timestamp.\n * @type {function}\n */\n static get now() {\n return now;\n }\n\n /**\n * Set the callback for returning the current timestamp.\n * The function should return a number, which will be interpreted as an Epoch millisecond count\n * @type {function}\n * @example Settings.now = () => Date.now() + 3000 // pretend it is 3 seconds in the future\n * @example Settings.now = () => 0 // always pretend it's Jan 1, 1970 at midnight in UTC time\n */\n static set now(n) {\n now = n;\n }\n\n /**\n * Set the default time zone to create DateTimes in. Does not affect existing instances.\n * Use the value \"system\" to reset this value to the system's time zone.\n * @type {string}\n */\n static set defaultZone(zone) {\n defaultZone = zone;\n }\n\n /**\n * Get the default time zone object currently used to create DateTimes. Does not affect existing instances.\n * The default value is the system's time zone (the one set on the machine that runs this code).\n * @type {Zone}\n */\n static get defaultZone() {\n return normalizeZone(defaultZone, SystemZone.instance);\n }\n\n /**\n * Get the default locale to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static get defaultLocale() {\n return defaultLocale;\n }\n\n /**\n * Set the default locale to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static set defaultLocale(locale) {\n defaultLocale = locale;\n }\n\n /**\n * Get the default numbering system to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static get defaultNumberingSystem() {\n return defaultNumberingSystem;\n }\n\n /**\n * Set the default numbering system to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static set defaultNumberingSystem(numberingSystem) {\n defaultNumberingSystem = numberingSystem;\n }\n\n /**\n * Get the default output calendar to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static get defaultOutputCalendar() {\n return defaultOutputCalendar;\n }\n\n /**\n * Set the default output calendar to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static set defaultOutputCalendar(outputCalendar) {\n defaultOutputCalendar = outputCalendar;\n }\n\n /**\n * @typedef {Object} WeekSettings\n * @property {number} firstDay\n * @property {number} minimalDays\n * @property {number[]} weekend\n */\n\n /**\n * @return {WeekSettings|null}\n */\n static get defaultWeekSettings() {\n return defaultWeekSettings;\n }\n\n /**\n * Allows overriding the default locale week settings, i.e. the start of the week, the weekend and\n * how many days are required in the first week of a year.\n * Does not affect existing instances.\n *\n * @param {WeekSettings|null} weekSettings\n */\n static set defaultWeekSettings(weekSettings) {\n defaultWeekSettings = validateWeekSettings(weekSettings);\n }\n\n /**\n * Get the cutoff year after which a string encoding a year as two digits is interpreted to occur in the current century.\n * @type {number}\n */\n static get twoDigitCutoffYear() {\n return twoDigitCutoffYear;\n }\n\n /**\n * Set the cutoff year after which a string encoding a year as two digits is interpreted to occur in the current century.\n * @type {number}\n * @example Settings.twoDigitCutoffYear = 0 // cut-off year is 0, so all 'yy' are interpreted as current century\n * @example Settings.twoDigitCutoffYear = 50 // '49' -> 1949; '50' -> 2050\n * @example Settings.twoDigitCutoffYear = 1950 // interpreted as 50\n * @example Settings.twoDigitCutoffYear = 2050 // ALSO interpreted as 50\n */\n static set twoDigitCutoffYear(cutoffYear) {\n twoDigitCutoffYear = cutoffYear % 100;\n }\n\n /**\n * Get whether Luxon will throw when it encounters invalid DateTimes, Durations, or Intervals\n * @type {boolean}\n */\n static get throwOnInvalid() {\n return throwOnInvalid;\n }\n\n /**\n * Set whether Luxon will throw when it encounters invalid DateTimes, Durations, or Intervals\n * @type {boolean}\n */\n static set throwOnInvalid(t) {\n throwOnInvalid = t;\n }\n\n /**\n * Reset Luxon's global caches. Should only be necessary in testing scenarios.\n * @return {void}\n */\n static resetCaches() {\n Locale.resetCache();\n IANAZone.resetCache();\n }\n}\n","export default class Invalid {\n constructor(reason, explanation) {\n this.reason = reason;\n this.explanation = explanation;\n }\n\n toMessage() {\n if (this.explanation) {\n return `${this.reason}: ${this.explanation}`;\n } else {\n return this.reason;\n }\n }\n}\n","import {\n integerBetween,\n isLeapYear,\n timeObject,\n daysInYear,\n daysInMonth,\n weeksInWeekYear,\n isInteger,\n isUndefined,\n} from \"./util.js\";\nimport Invalid from \"./invalid.js\";\nimport { ConflictingSpecificationError } from \"../errors.js\";\n\nconst nonLeapLadder = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334],\n leapLadder = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335];\n\nfunction unitOutOfRange(unit, value) {\n return new Invalid(\n \"unit out of range\",\n `you specified ${value} (of type ${typeof value}) as a ${unit}, which is invalid`\n );\n}\n\nexport function dayOfWeek(year, month, day) {\n const d = new Date(Date.UTC(year, month - 1, day));\n\n if (year < 100 && year >= 0) {\n d.setUTCFullYear(d.getUTCFullYear() - 1900);\n }\n\n const js = d.getUTCDay();\n\n return js === 0 ? 7 : js;\n}\n\nfunction computeOrdinal(year, month, day) {\n return day + (isLeapYear(year) ? leapLadder : nonLeapLadder)[month - 1];\n}\n\nfunction uncomputeOrdinal(year, ordinal) {\n const table = isLeapYear(year) ? leapLadder : nonLeapLadder,\n month0 = table.findIndex((i) => i < ordinal),\n day = ordinal - table[month0];\n return { month: month0 + 1, day };\n}\n\nexport function isoWeekdayToLocal(isoWeekday, startOfWeek) {\n return ((isoWeekday - startOfWeek + 7) % 7) + 1;\n}\n\n/**\n * @private\n */\n\nexport function gregorianToWeek(gregObj, minDaysInFirstWeek = 4, startOfWeek = 1) {\n const { year, month, day } = gregObj,\n ordinal = computeOrdinal(year, month, day),\n weekday = isoWeekdayToLocal(dayOfWeek(year, month, day), startOfWeek);\n\n let weekNumber = Math.floor((ordinal - weekday + 14 - minDaysInFirstWeek) / 7),\n weekYear;\n\n if (weekNumber < 1) {\n weekYear = year - 1;\n weekNumber = weeksInWeekYear(weekYear, minDaysInFirstWeek, startOfWeek);\n } else if (weekNumber > weeksInWeekYear(year, minDaysInFirstWeek, startOfWeek)) {\n weekYear = year + 1;\n weekNumber = 1;\n } else {\n weekYear = year;\n }\n\n return { weekYear, weekNumber, weekday, ...timeObject(gregObj) };\n}\n\nexport function weekToGregorian(weekData, minDaysInFirstWeek = 4, startOfWeek = 1) {\n const { weekYear, weekNumber, weekday } = weekData,\n weekdayOfJan4 = isoWeekdayToLocal(dayOfWeek(weekYear, 1, minDaysInFirstWeek), startOfWeek),\n yearInDays = daysInYear(weekYear);\n\n let ordinal = weekNumber * 7 + weekday - weekdayOfJan4 - 7 + minDaysInFirstWeek,\n year;\n\n if (ordinal < 1) {\n year = weekYear - 1;\n ordinal += daysInYear(year);\n } else if (ordinal > yearInDays) {\n year = weekYear + 1;\n ordinal -= daysInYear(weekYear);\n } else {\n year = weekYear;\n }\n\n const { month, day } = uncomputeOrdinal(year, ordinal);\n return { year, month, day, ...timeObject(weekData) };\n}\n\nexport function gregorianToOrdinal(gregData) {\n const { year, month, day } = gregData;\n const ordinal = computeOrdinal(year, month, day);\n return { year, ordinal, ...timeObject(gregData) };\n}\n\nexport function ordinalToGregorian(ordinalData) {\n const { year, ordinal } = ordinalData;\n const { month, day } = uncomputeOrdinal(year, ordinal);\n return { year, month, day, ...timeObject(ordinalData) };\n}\n\n/**\n * Check if local week units like localWeekday are used in obj.\n * If so, validates that they are not mixed with ISO week units and then copies them to the normal week unit properties.\n * Modifies obj in-place!\n * @param obj the object values\n */\nexport function usesLocalWeekValues(obj, loc) {\n const hasLocaleWeekData =\n !isUndefined(obj.localWeekday) ||\n !isUndefined(obj.localWeekNumber) ||\n !isUndefined(obj.localWeekYear);\n if (hasLocaleWeekData) {\n const hasIsoWeekData =\n !isUndefined(obj.weekday) || !isUndefined(obj.weekNumber) || !isUndefined(obj.weekYear);\n\n if (hasIsoWeekData) {\n throw new ConflictingSpecificationError(\n \"Cannot mix locale-based week fields with ISO-based week fields\"\n );\n }\n if (!isUndefined(obj.localWeekday)) obj.weekday = obj.localWeekday;\n if (!isUndefined(obj.localWeekNumber)) obj.weekNumber = obj.localWeekNumber;\n if (!isUndefined(obj.localWeekYear)) obj.weekYear = obj.localWeekYear;\n delete obj.localWeekday;\n delete obj.localWeekNumber;\n delete obj.localWeekYear;\n return {\n minDaysInFirstWeek: loc.getMinDaysInFirstWeek(),\n startOfWeek: loc.getStartOfWeek(),\n };\n } else {\n return { minDaysInFirstWeek: 4, startOfWeek: 1 };\n }\n}\n\nexport function hasInvalidWeekData(obj, minDaysInFirstWeek = 4, startOfWeek = 1) {\n const validYear = isInteger(obj.weekYear),\n validWeek = integerBetween(\n obj.weekNumber,\n 1,\n weeksInWeekYear(obj.weekYear, minDaysInFirstWeek, startOfWeek)\n ),\n validWeekday = integerBetween(obj.weekday, 1, 7);\n\n if (!validYear) {\n return unitOutOfRange(\"weekYear\", obj.weekYear);\n } else if (!validWeek) {\n return unitOutOfRange(\"week\", obj.weekNumber);\n } else if (!validWeekday) {\n return unitOutOfRange(\"weekday\", obj.weekday);\n } else return false;\n}\n\nexport function hasInvalidOrdinalData(obj) {\n const validYear = isInteger(obj.year),\n validOrdinal = integerBetween(obj.ordinal, 1, daysInYear(obj.year));\n\n if (!validYear) {\n return unitOutOfRange(\"year\", obj.year);\n } else if (!validOrdinal) {\n return unitOutOfRange(\"ordinal\", obj.ordinal);\n } else return false;\n}\n\nexport function hasInvalidGregorianData(obj) {\n const validYear = isInteger(obj.year),\n validMonth = integerBetween(obj.month, 1, 12),\n validDay = integerBetween(obj.day, 1, daysInMonth(obj.year, obj.month));\n\n if (!validYear) {\n return unitOutOfRange(\"year\", obj.year);\n } else if (!validMonth) {\n return unitOutOfRange(\"month\", obj.month);\n } else if (!validDay) {\n return unitOutOfRange(\"day\", obj.day);\n } else return false;\n}\n\nexport function hasInvalidTimeData(obj) {\n const { hour, minute, second, millisecond } = obj;\n const validHour =\n integerBetween(hour, 0, 23) ||\n (hour === 24 && minute === 0 && second === 0 && millisecond === 0),\n validMinute = integerBetween(minute, 0, 59),\n validSecond = integerBetween(second, 0, 59),\n validMillisecond = integerBetween(millisecond, 0, 999);\n\n if (!validHour) {\n return unitOutOfRange(\"hour\", hour);\n } else if (!validMinute) {\n return unitOutOfRange(\"minute\", minute);\n } else if (!validSecond) {\n return unitOutOfRange(\"second\", second);\n } else if (!validMillisecond) {\n return unitOutOfRange(\"millisecond\", millisecond);\n } else return false;\n}\n","import * as English from \"./english.js\";\nimport * as Formats from \"./formats.js\";\nimport { padStart } from \"./util.js\";\n\nfunction stringifyTokens(splits, tokenToString) {\n let s = \"\";\n for (const token of splits) {\n if (token.literal) {\n s += token.val;\n } else {\n s += tokenToString(token.val);\n }\n }\n return s;\n}\n\nconst macroTokenToFormatOpts = {\n D: Formats.DATE_SHORT,\n DD: Formats.DATE_MED,\n DDD: Formats.DATE_FULL,\n DDDD: Formats.DATE_HUGE,\n t: Formats.TIME_SIMPLE,\n tt: Formats.TIME_WITH_SECONDS,\n ttt: Formats.TIME_WITH_SHORT_OFFSET,\n tttt: Formats.TIME_WITH_LONG_OFFSET,\n T: Formats.TIME_24_SIMPLE,\n TT: Formats.TIME_24_WITH_SECONDS,\n TTT: Formats.TIME_24_WITH_SHORT_OFFSET,\n TTTT: Formats.TIME_24_WITH_LONG_OFFSET,\n f: Formats.DATETIME_SHORT,\n ff: Formats.DATETIME_MED,\n fff: Formats.DATETIME_FULL,\n ffff: Formats.DATETIME_HUGE,\n F: Formats.DATETIME_SHORT_WITH_SECONDS,\n FF: Formats.DATETIME_MED_WITH_SECONDS,\n FFF: Formats.DATETIME_FULL_WITH_SECONDS,\n FFFF: Formats.DATETIME_HUGE_WITH_SECONDS,\n};\n\n/**\n * @private\n */\n\nexport default class Formatter {\n static create(locale, opts = {}) {\n return new Formatter(locale, opts);\n }\n\n static parseFormat(fmt) {\n // white-space is always considered a literal in user-provided formats\n // the \" \" token has a special meaning (see unitForToken)\n\n let current = null,\n currentFull = \"\",\n bracketed = false;\n const splits = [];\n for (let i = 0; i < fmt.length; i++) {\n const c = fmt.charAt(i);\n if (c === \"'\") {\n if (currentFull.length > 0) {\n splits.push({ literal: bracketed || /^\\s+$/.test(currentFull), val: currentFull });\n }\n current = null;\n currentFull = \"\";\n bracketed = !bracketed;\n } else if (bracketed) {\n currentFull += c;\n } else if (c === current) {\n currentFull += c;\n } else {\n if (currentFull.length > 0) {\n splits.push({ literal: /^\\s+$/.test(currentFull), val: currentFull });\n }\n currentFull = c;\n current = c;\n }\n }\n\n if (currentFull.length > 0) {\n splits.push({ literal: bracketed || /^\\s+$/.test(currentFull), val: currentFull });\n }\n\n return splits;\n }\n\n static macroTokenToFormatOpts(token) {\n return macroTokenToFormatOpts[token];\n }\n\n constructor(locale, formatOpts) {\n this.opts = formatOpts;\n this.loc = locale;\n this.systemLoc = null;\n }\n\n formatWithSystemDefault(dt, opts) {\n if (this.systemLoc === null) {\n this.systemLoc = this.loc.redefaultToSystem();\n }\n const df = this.systemLoc.dtFormatter(dt, { ...this.opts, ...opts });\n return df.format();\n }\n\n dtFormatter(dt, opts = {}) {\n return this.loc.dtFormatter(dt, { ...this.opts, ...opts });\n }\n\n formatDateTime(dt, opts) {\n return this.dtFormatter(dt, opts).format();\n }\n\n formatDateTimeParts(dt, opts) {\n return this.dtFormatter(dt, opts).formatToParts();\n }\n\n formatInterval(interval, opts) {\n const df = this.dtFormatter(interval.start, opts);\n return df.dtf.formatRange(interval.start.toJSDate(), interval.end.toJSDate());\n }\n\n resolvedOptions(dt, opts) {\n return this.dtFormatter(dt, opts).resolvedOptions();\n }\n\n num(n, p = 0) {\n // we get some perf out of doing this here, annoyingly\n if (this.opts.forceSimple) {\n return padStart(n, p);\n }\n\n const opts = { ...this.opts };\n\n if (p > 0) {\n opts.padTo = p;\n }\n\n return this.loc.numberFormatter(opts).format(n);\n }\n\n formatDateTimeFromString(dt, fmt) {\n const knownEnglish = this.loc.listingMode() === \"en\",\n useDateTimeFormatter = this.loc.outputCalendar && this.loc.outputCalendar !== \"gregory\",\n string = (opts, extract) => this.loc.extract(dt, opts, extract),\n formatOffset = (opts) => {\n if (dt.isOffsetFixed && dt.offset === 0 && opts.allowZ) {\n return \"Z\";\n }\n\n return dt.isValid ? dt.zone.formatOffset(dt.ts, opts.format) : \"\";\n },\n meridiem = () =>\n knownEnglish\n ? English.meridiemForDateTime(dt)\n : string({ hour: \"numeric\", hourCycle: \"h12\" }, \"dayperiod\"),\n month = (length, standalone) =>\n knownEnglish\n ? English.monthForDateTime(dt, length)\n : string(standalone ? { month: length } : { month: length, day: \"numeric\" }, \"month\"),\n weekday = (length, standalone) =>\n knownEnglish\n ? English.weekdayForDateTime(dt, length)\n : string(\n standalone ? { weekday: length } : { weekday: length, month: \"long\", day: \"numeric\" },\n \"weekday\"\n ),\n maybeMacro = (token) => {\n const formatOpts = Formatter.macroTokenToFormatOpts(token);\n if (formatOpts) {\n return this.formatWithSystemDefault(dt, formatOpts);\n } else {\n return token;\n }\n },\n era = (length) =>\n knownEnglish ? English.eraForDateTime(dt, length) : string({ era: length }, \"era\"),\n tokenToString = (token) => {\n // Where possible: https://cldr.unicode.org/translation/date-time/date-time-symbols\n switch (token) {\n // ms\n case \"S\":\n return this.num(dt.millisecond);\n case \"u\":\n // falls through\n case \"SSS\":\n return this.num(dt.millisecond, 3);\n // seconds\n case \"s\":\n return this.num(dt.second);\n case \"ss\":\n return this.num(dt.second, 2);\n // fractional seconds\n case \"uu\":\n return this.num(Math.floor(dt.millisecond / 10), 2);\n case \"uuu\":\n return this.num(Math.floor(dt.millisecond / 100));\n // minutes\n case \"m\":\n return this.num(dt.minute);\n case \"mm\":\n return this.num(dt.minute, 2);\n // hours\n case \"h\":\n return this.num(dt.hour % 12 === 0 ? 12 : dt.hour % 12);\n case \"hh\":\n return this.num(dt.hour % 12 === 0 ? 12 : dt.hour % 12, 2);\n case \"H\":\n return this.num(dt.hour);\n case \"HH\":\n return this.num(dt.hour, 2);\n // offset\n case \"Z\":\n // like +6\n return formatOffset({ format: \"narrow\", allowZ: this.opts.allowZ });\n case \"ZZ\":\n // like +06:00\n return formatOffset({ format: \"short\", allowZ: this.opts.allowZ });\n case \"ZZZ\":\n // like +0600\n return formatOffset({ format: \"techie\", allowZ: this.opts.allowZ });\n case \"ZZZZ\":\n // like EST\n return dt.zone.offsetName(dt.ts, { format: \"short\", locale: this.loc.locale });\n case \"ZZZZZ\":\n // like Eastern Standard Time\n return dt.zone.offsetName(dt.ts, { format: \"long\", locale: this.loc.locale });\n // zone\n case \"z\":\n // like America/New_York\n return dt.zoneName;\n // meridiems\n case \"a\":\n return meridiem();\n // dates\n case \"d\":\n return useDateTimeFormatter ? string({ day: \"numeric\" }, \"day\") : this.num(dt.day);\n case \"dd\":\n return useDateTimeFormatter ? string({ day: \"2-digit\" }, \"day\") : this.num(dt.day, 2);\n // weekdays - standalone\n case \"c\":\n // like 1\n return this.num(dt.weekday);\n case \"ccc\":\n // like 'Tues'\n return weekday(\"short\", true);\n case \"cccc\":\n // like 'Tuesday'\n return weekday(\"long\", true);\n case \"ccccc\":\n // like 'T'\n return weekday(\"narrow\", true);\n // weekdays - format\n case \"E\":\n // like 1\n return this.num(dt.weekday);\n case \"EEE\":\n // like 'Tues'\n return weekday(\"short\", false);\n case \"EEEE\":\n // like 'Tuesday'\n return weekday(\"long\", false);\n case \"EEEEE\":\n // like 'T'\n return weekday(\"narrow\", false);\n // months - standalone\n case \"L\":\n // like 1\n return useDateTimeFormatter\n ? string({ month: \"numeric\", day: \"numeric\" }, \"month\")\n : this.num(dt.month);\n case \"LL\":\n // like 01, doesn't seem to work\n return useDateTimeFormatter\n ? string({ month: \"2-digit\", day: \"numeric\" }, \"month\")\n : this.num(dt.month, 2);\n case \"LLL\":\n // like Jan\n return month(\"short\", true);\n case \"LLLL\":\n // like January\n return month(\"long\", true);\n case \"LLLLL\":\n // like J\n return month(\"narrow\", true);\n // months - format\n case \"M\":\n // like 1\n return useDateTimeFormatter\n ? string({ month: \"numeric\" }, \"month\")\n : this.num(dt.month);\n case \"MM\":\n // like 01\n return useDateTimeFormatter\n ? string({ month: \"2-digit\" }, \"month\")\n : this.num(dt.month, 2);\n case \"MMM\":\n // like Jan\n return month(\"short\", false);\n case \"MMMM\":\n // like January\n return month(\"long\", false);\n case \"MMMMM\":\n // like J\n return month(\"narrow\", false);\n // years\n case \"y\":\n // like 2014\n return useDateTimeFormatter ? string({ year: \"numeric\" }, \"year\") : this.num(dt.year);\n case \"yy\":\n // like 14\n return useDateTimeFormatter\n ? string({ year: \"2-digit\" }, \"year\")\n : this.num(dt.year.toString().slice(-2), 2);\n case \"yyyy\":\n // like 0012\n return useDateTimeFormatter\n ? string({ year: \"numeric\" }, \"year\")\n : this.num(dt.year, 4);\n case \"yyyyyy\":\n // like 000012\n return useDateTimeFormatter\n ? string({ year: \"numeric\" }, \"year\")\n : this.num(dt.year, 6);\n // eras\n case \"G\":\n // like AD\n return era(\"short\");\n case \"GG\":\n // like Anno Domini\n return era(\"long\");\n case \"GGGGG\":\n return era(\"narrow\");\n case \"kk\":\n return this.num(dt.weekYear.toString().slice(-2), 2);\n case \"kkkk\":\n return this.num(dt.weekYear, 4);\n case \"W\":\n return this.num(dt.weekNumber);\n case \"WW\":\n return this.num(dt.weekNumber, 2);\n case \"n\":\n return this.num(dt.localWeekNumber);\n case \"nn\":\n return this.num(dt.localWeekNumber, 2);\n case \"ii\":\n return this.num(dt.localWeekYear.toString().slice(-2), 2);\n case \"iiii\":\n return this.num(dt.localWeekYear, 4);\n case \"o\":\n return this.num(dt.ordinal);\n case \"ooo\":\n return this.num(dt.ordinal, 3);\n case \"q\":\n // like 1\n return this.num(dt.quarter);\n case \"qq\":\n // like 01\n return this.num(dt.quarter, 2);\n case \"X\":\n return this.num(Math.floor(dt.ts / 1000));\n case \"x\":\n return this.num(dt.ts);\n default:\n return maybeMacro(token);\n }\n };\n\n return stringifyTokens(Formatter.parseFormat(fmt), tokenToString);\n }\n\n formatDurationFromString(dur, fmt) {\n const tokenToField = (token) => {\n switch (token[0]) {\n case \"S\":\n return \"millisecond\";\n case \"s\":\n return \"second\";\n case \"m\":\n return \"minute\";\n case \"h\":\n return \"hour\";\n case \"d\":\n return \"day\";\n case \"w\":\n return \"week\";\n case \"M\":\n return \"month\";\n case \"y\":\n return \"year\";\n default:\n return null;\n }\n },\n tokenToString = (lildur) => (token) => {\n const mapped = tokenToField(token);\n if (mapped) {\n return this.num(lildur.get(mapped), token.length);\n } else {\n return token;\n }\n },\n tokens = Formatter.parseFormat(fmt),\n realTokens = tokens.reduce(\n (found, { literal, val }) => (literal ? found : found.concat(val)),\n []\n ),\n collapsed = dur.shiftTo(...realTokens.map(tokenToField).filter((t) => t));\n return stringifyTokens(tokens, tokenToString(collapsed));\n }\n}\n","import {\n untruncateYear,\n signedOffset,\n parseInteger,\n parseMillis,\n isUndefined,\n parseFloating,\n} from \"./util.js\";\nimport * as English from \"./english.js\";\nimport FixedOffsetZone from \"../zones/fixedOffsetZone.js\";\nimport IANAZone from \"../zones/IANAZone.js\";\n\n/*\n * This file handles parsing for well-specified formats. Here's how it works:\n * Two things go into parsing: a regex to match with and an extractor to take apart the groups in the match.\n * An extractor is just a function that takes a regex match array and returns a { year: ..., month: ... } object\n * parse() does the work of executing the regex and applying the extractor. It takes multiple regex/extractor pairs to try in sequence.\n * Extractors can take a \"cursor\" representing the offset in the match to look at. This makes it easy to combine extractors.\n * combineExtractors() does the work of combining them, keeping track of the cursor through multiple extractions.\n * Some extractions are super dumb and simpleParse and fromStrings help DRY them.\n */\n\nconst ianaRegex = /[A-Za-z_+-]{1,256}(?::?\\/[A-Za-z0-9_+-]{1,256}(?:\\/[A-Za-z0-9_+-]{1,256})?)?/;\n\nfunction combineRegexes(...regexes) {\n const full = regexes.reduce((f, r) => f + r.source, \"\");\n return RegExp(`^${full}$`);\n}\n\nfunction combineExtractors(...extractors) {\n return (m) =>\n extractors\n .reduce(\n ([mergedVals, mergedZone, cursor], ex) => {\n const [val, zone, next] = ex(m, cursor);\n return [{ ...mergedVals, ...val }, zone || mergedZone, next];\n },\n [{}, null, 1]\n )\n .slice(0, 2);\n}\n\nfunction parse(s, ...patterns) {\n if (s == null) {\n return [null, null];\n }\n\n for (const [regex, extractor] of patterns) {\n const m = regex.exec(s);\n if (m) {\n return extractor(m);\n }\n }\n return [null, null];\n}\n\nfunction simpleParse(...keys) {\n return (match, cursor) => {\n const ret = {};\n let i;\n\n for (i = 0; i < keys.length; i++) {\n ret[keys[i]] = parseInteger(match[cursor + i]);\n }\n return [ret, null, cursor + i];\n };\n}\n\n// ISO and SQL parsing\nconst offsetRegex = /(?:(Z)|([+-]\\d\\d)(?::?(\\d\\d))?)/;\nconst isoExtendedZone = `(?:${offsetRegex.source}?(?:\\\\[(${ianaRegex.source})\\\\])?)?`;\nconst isoTimeBaseRegex = /(\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:[.,](\\d{1,30}))?)?)?/;\nconst isoTimeRegex = RegExp(`${isoTimeBaseRegex.source}${isoExtendedZone}`);\nconst isoTimeExtensionRegex = RegExp(`(?:T${isoTimeRegex.source})?`);\nconst isoYmdRegex = /([+-]\\d{6}|\\d{4})(?:-?(\\d\\d)(?:-?(\\d\\d))?)?/;\nconst isoWeekRegex = /(\\d{4})-?W(\\d\\d)(?:-?(\\d))?/;\nconst isoOrdinalRegex = /(\\d{4})-?(\\d{3})/;\nconst extractISOWeekData = simpleParse(\"weekYear\", \"weekNumber\", \"weekDay\");\nconst extractISOOrdinalData = simpleParse(\"year\", \"ordinal\");\nconst sqlYmdRegex = /(\\d{4})-(\\d\\d)-(\\d\\d)/; // dumbed-down version of the ISO one\nconst sqlTimeRegex = RegExp(\n `${isoTimeBaseRegex.source} ?(?:${offsetRegex.source}|(${ianaRegex.source}))?`\n);\nconst sqlTimeExtensionRegex = RegExp(`(?: ${sqlTimeRegex.source})?`);\n\nfunction int(match, pos, fallback) {\n const m = match[pos];\n return isUndefined(m) ? fallback : parseInteger(m);\n}\n\nfunction extractISOYmd(match, cursor) {\n const item = {\n year: int(match, cursor),\n month: int(match, cursor + 1, 1),\n day: int(match, cursor + 2, 1),\n };\n\n return [item, null, cursor + 3];\n}\n\nfunction extractISOTime(match, cursor) {\n const item = {\n hours: int(match, cursor, 0),\n minutes: int(match, cursor + 1, 0),\n seconds: int(match, cursor + 2, 0),\n milliseconds: parseMillis(match[cursor + 3]),\n };\n\n return [item, null, cursor + 4];\n}\n\nfunction extractISOOffset(match, cursor) {\n const local = !match[cursor] && !match[cursor + 1],\n fullOffset = signedOffset(match[cursor + 1], match[cursor + 2]),\n zone = local ? null : FixedOffsetZone.instance(fullOffset);\n return [{}, zone, cursor + 3];\n}\n\nfunction extractIANAZone(match, cursor) {\n const zone = match[cursor] ? IANAZone.create(match[cursor]) : null;\n return [{}, zone, cursor + 1];\n}\n\n// ISO time parsing\n\nconst isoTimeOnly = RegExp(`^T?${isoTimeBaseRegex.source}$`);\n\n// ISO duration parsing\n\nconst isoDuration =\n /^-?P(?:(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)Y)?(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)M)?(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)W)?(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)D)?(?:T(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)H)?(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)M)?(?:(-?\\d{1,20})(?:[.,](-?\\d{1,20}))?S)?)?)$/;\n\nfunction extractISODuration(match) {\n const [s, yearStr, monthStr, weekStr, dayStr, hourStr, minuteStr, secondStr, millisecondsStr] =\n match;\n\n const hasNegativePrefix = s[0] === \"-\";\n const negativeSeconds = secondStr && secondStr[0] === \"-\";\n\n const maybeNegate = (num, force = false) =>\n num !== undefined && (force || (num && hasNegativePrefix)) ? -num : num;\n\n return [\n {\n years: maybeNegate(parseFloating(yearStr)),\n months: maybeNegate(parseFloating(monthStr)),\n weeks: maybeNegate(parseFloating(weekStr)),\n days: maybeNegate(parseFloating(dayStr)),\n hours: maybeNegate(parseFloating(hourStr)),\n minutes: maybeNegate(parseFloating(minuteStr)),\n seconds: maybeNegate(parseFloating(secondStr), secondStr === \"-0\"),\n milliseconds: maybeNegate(parseMillis(millisecondsStr), negativeSeconds),\n },\n ];\n}\n\n// These are a little braindead. EDT *should* tell us that we're in, say, America/New_York\n// and not just that we're in -240 *right now*. But since I don't think these are used that often\n// I'm just going to ignore that\nconst obsOffsets = {\n GMT: 0,\n EDT: -4 * 60,\n EST: -5 * 60,\n CDT: -5 * 60,\n CST: -6 * 60,\n MDT: -6 * 60,\n MST: -7 * 60,\n PDT: -7 * 60,\n PST: -8 * 60,\n};\n\nfunction fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) {\n const result = {\n year: yearStr.length === 2 ? untruncateYear(parseInteger(yearStr)) : parseInteger(yearStr),\n month: English.monthsShort.indexOf(monthStr) + 1,\n day: parseInteger(dayStr),\n hour: parseInteger(hourStr),\n minute: parseInteger(minuteStr),\n };\n\n if (secondStr) result.second = parseInteger(secondStr);\n if (weekdayStr) {\n result.weekday =\n weekdayStr.length > 3\n ? English.weekdaysLong.indexOf(weekdayStr) + 1\n : English.weekdaysShort.indexOf(weekdayStr) + 1;\n }\n\n return result;\n}\n\n// RFC 2822/5322\nconst rfc2822 =\n /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\\s)?(\\d{1,2})\\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\s(\\d{2,4})\\s(\\d\\d):(\\d\\d)(?::(\\d\\d))?\\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\\d\\d)(\\d\\d)))$/;\n\nfunction extractRFC2822(match) {\n const [\n ,\n weekdayStr,\n dayStr,\n monthStr,\n yearStr,\n hourStr,\n minuteStr,\n secondStr,\n obsOffset,\n milOffset,\n offHourStr,\n offMinuteStr,\n ] = match,\n result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr);\n\n let offset;\n if (obsOffset) {\n offset = obsOffsets[obsOffset];\n } else if (milOffset) {\n offset = 0;\n } else {\n offset = signedOffset(offHourStr, offMinuteStr);\n }\n\n return [result, new FixedOffsetZone(offset)];\n}\n\nfunction preprocessRFC2822(s) {\n // Remove comments and folding whitespace and replace multiple-spaces with a single space\n return s\n .replace(/\\([^()]*\\)|[\\n\\t]/g, \" \")\n .replace(/(\\s\\s+)/g, \" \")\n .trim();\n}\n\n// http date\n\nconst rfc1123 =\n /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\\d\\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\\d{4}) (\\d\\d):(\\d\\d):(\\d\\d) GMT$/,\n rfc850 =\n /^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\\d\\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\\d\\d) (\\d\\d):(\\d\\d):(\\d\\d) GMT$/,\n ascii =\n /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \\d|\\d\\d) (\\d\\d):(\\d\\d):(\\d\\d) (\\d{4})$/;\n\nfunction extractRFC1123Or850(match) {\n const [, weekdayStr, dayStr, monthStr, yearStr, hourStr, minuteStr, secondStr] = match,\n result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr);\n return [result, FixedOffsetZone.utcInstance];\n}\n\nfunction extractASCII(match) {\n const [, weekdayStr, monthStr, dayStr, hourStr, minuteStr, secondStr, yearStr] = match,\n result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr);\n return [result, FixedOffsetZone.utcInstance];\n}\n\nconst isoYmdWithTimeExtensionRegex = combineRegexes(isoYmdRegex, isoTimeExtensionRegex);\nconst isoWeekWithTimeExtensionRegex = combineRegexes(isoWeekRegex, isoTimeExtensionRegex);\nconst isoOrdinalWithTimeExtensionRegex = combineRegexes(isoOrdinalRegex, isoTimeExtensionRegex);\nconst isoTimeCombinedRegex = combineRegexes(isoTimeRegex);\n\nconst extractISOYmdTimeAndOffset = combineExtractors(\n extractISOYmd,\n extractISOTime,\n extractISOOffset,\n extractIANAZone\n);\nconst extractISOWeekTimeAndOffset = combineExtractors(\n extractISOWeekData,\n extractISOTime,\n extractISOOffset,\n extractIANAZone\n);\nconst extractISOOrdinalDateAndTime = combineExtractors(\n extractISOOrdinalData,\n extractISOTime,\n extractISOOffset,\n extractIANAZone\n);\nconst extractISOTimeAndOffset = combineExtractors(\n extractISOTime,\n extractISOOffset,\n extractIANAZone\n);\n\n/*\n * @private\n */\n\nexport function parseISODate(s) {\n return parse(\n s,\n [isoYmdWithTimeExtensionRegex, extractISOYmdTimeAndOffset],\n [isoWeekWithTimeExtensionRegex, extractISOWeekTimeAndOffset],\n [isoOrdinalWithTimeExtensionRegex, extractISOOrdinalDateAndTime],\n [isoTimeCombinedRegex, extractISOTimeAndOffset]\n );\n}\n\nexport function parseRFC2822Date(s) {\n return parse(preprocessRFC2822(s), [rfc2822, extractRFC2822]);\n}\n\nexport function parseHTTPDate(s) {\n return parse(\n s,\n [rfc1123, extractRFC1123Or850],\n [rfc850, extractRFC1123Or850],\n [ascii, extractASCII]\n );\n}\n\nexport function parseISODuration(s) {\n return parse(s, [isoDuration, extractISODuration]);\n}\n\nconst extractISOTimeOnly = combineExtractors(extractISOTime);\n\nexport function parseISOTimeOnly(s) {\n return parse(s, [isoTimeOnly, extractISOTimeOnly]);\n}\n\nconst sqlYmdWithTimeExtensionRegex = combineRegexes(sqlYmdRegex, sqlTimeExtensionRegex);\nconst sqlTimeCombinedRegex = combineRegexes(sqlTimeRegex);\n\nconst extractISOTimeOffsetAndIANAZone = combineExtractors(\n extractISOTime,\n extractISOOffset,\n extractIANAZone\n);\n\nexport function parseSQL(s) {\n return parse(\n s,\n [sqlYmdWithTimeExtensionRegex, extractISOYmdTimeAndOffset],\n [sqlTimeCombinedRegex, extractISOTimeOffsetAndIANAZone]\n );\n}\n","import { InvalidArgumentError, InvalidDurationError, InvalidUnitError } from \"./errors.js\";\nimport Formatter from \"./impl/formatter.js\";\nimport Invalid from \"./impl/invalid.js\";\nimport Locale from \"./impl/locale.js\";\nimport { parseISODuration, parseISOTimeOnly } from \"./impl/regexParser.js\";\nimport {\n asNumber,\n hasOwnProperty,\n isNumber,\n isUndefined,\n normalizeObject,\n roundTo,\n} from \"./impl/util.js\";\nimport Settings from \"./settings.js\";\nimport DateTime from \"./datetime.js\";\n\nconst INVALID = \"Invalid Duration\";\n\n// unit conversion constants\nexport const lowOrderMatrix = {\n weeks: {\n days: 7,\n hours: 7 * 24,\n minutes: 7 * 24 * 60,\n seconds: 7 * 24 * 60 * 60,\n milliseconds: 7 * 24 * 60 * 60 * 1000,\n },\n days: {\n hours: 24,\n minutes: 24 * 60,\n seconds: 24 * 60 * 60,\n milliseconds: 24 * 60 * 60 * 1000,\n },\n hours: { minutes: 60, seconds: 60 * 60, milliseconds: 60 * 60 * 1000 },\n minutes: { seconds: 60, milliseconds: 60 * 1000 },\n seconds: { milliseconds: 1000 },\n },\n casualMatrix = {\n years: {\n quarters: 4,\n months: 12,\n weeks: 52,\n days: 365,\n hours: 365 * 24,\n minutes: 365 * 24 * 60,\n seconds: 365 * 24 * 60 * 60,\n milliseconds: 365 * 24 * 60 * 60 * 1000,\n },\n quarters: {\n months: 3,\n weeks: 13,\n days: 91,\n hours: 91 * 24,\n minutes: 91 * 24 * 60,\n seconds: 91 * 24 * 60 * 60,\n milliseconds: 91 * 24 * 60 * 60 * 1000,\n },\n months: {\n weeks: 4,\n days: 30,\n hours: 30 * 24,\n minutes: 30 * 24 * 60,\n seconds: 30 * 24 * 60 * 60,\n milliseconds: 30 * 24 * 60 * 60 * 1000,\n },\n\n ...lowOrderMatrix,\n },\n daysInYearAccurate = 146097.0 / 400,\n daysInMonthAccurate = 146097.0 / 4800,\n accurateMatrix = {\n years: {\n quarters: 4,\n months: 12,\n weeks: daysInYearAccurate / 7,\n days: daysInYearAccurate,\n hours: daysInYearAccurate * 24,\n minutes: daysInYearAccurate * 24 * 60,\n seconds: daysInYearAccurate * 24 * 60 * 60,\n milliseconds: daysInYearAccurate * 24 * 60 * 60 * 1000,\n },\n quarters: {\n months: 3,\n weeks: daysInYearAccurate / 28,\n days: daysInYearAccurate / 4,\n hours: (daysInYearAccurate * 24) / 4,\n minutes: (daysInYearAccurate * 24 * 60) / 4,\n seconds: (daysInYearAccurate * 24 * 60 * 60) / 4,\n milliseconds: (daysInYearAccurate * 24 * 60 * 60 * 1000) / 4,\n },\n months: {\n weeks: daysInMonthAccurate / 7,\n days: daysInMonthAccurate,\n hours: daysInMonthAccurate * 24,\n minutes: daysInMonthAccurate * 24 * 60,\n seconds: daysInMonthAccurate * 24 * 60 * 60,\n milliseconds: daysInMonthAccurate * 24 * 60 * 60 * 1000,\n },\n ...lowOrderMatrix,\n };\n\n// units ordered by size\nconst orderedUnits = [\n \"years\",\n \"quarters\",\n \"months\",\n \"weeks\",\n \"days\",\n \"hours\",\n \"minutes\",\n \"seconds\",\n \"milliseconds\",\n];\n\nconst reverseUnits = orderedUnits.slice(0).reverse();\n\n// clone really means \"create another instance just like this one, but with these changes\"\nfunction clone(dur, alts, clear = false) {\n // deep merge for vals\n const conf = {\n values: clear ? alts.values : { ...dur.values, ...(alts.values || {}) },\n loc: dur.loc.clone(alts.loc),\n conversionAccuracy: alts.conversionAccuracy || dur.conversionAccuracy,\n matrix: alts.matrix || dur.matrix,\n };\n return new Duration(conf);\n}\n\nfunction durationToMillis(matrix, vals) {\n let sum = vals.milliseconds ?? 0;\n for (const unit of reverseUnits.slice(1)) {\n if (vals[unit]) {\n sum += vals[unit] * matrix[unit][\"milliseconds\"];\n }\n }\n return sum;\n}\n\n// NB: mutates parameters\nfunction normalizeValues(matrix, vals) {\n // the logic below assumes the overall value of the duration is positive\n // if this is not the case, factor is used to make it so\n const factor = durationToMillis(matrix, vals) < 0 ? -1 : 1;\n\n orderedUnits.reduceRight((previous, current) => {\n if (!isUndefined(vals[current])) {\n if (previous) {\n const previousVal = vals[previous] * factor;\n const conv = matrix[current][previous];\n\n // if (previousVal < 0):\n // lower order unit is negative (e.g. { years: 2, days: -2 })\n // normalize this by reducing the higher order unit by the appropriate amount\n // and increasing the lower order unit\n // this can never make the higher order unit negative, because this function only operates\n // on positive durations, so the amount of time represented by the lower order unit cannot\n // be larger than the higher order unit\n // else:\n // lower order unit is positive (e.g. { years: 2, days: 450 } or { years: -2, days: 450 })\n // in this case we attempt to convert as much as possible from the lower order unit into\n // the higher order one\n //\n // Math.floor takes care of both of these cases, rounding away from 0\n // if previousVal < 0 it makes the absolute value larger\n // if previousVal >= it makes the absolute value smaller\n const rollUp = Math.floor(previousVal / conv);\n vals[current] += rollUp * factor;\n vals[previous] -= rollUp * conv * factor;\n }\n return current;\n } else {\n return previous;\n }\n }, null);\n\n // try to convert any decimals into smaller units if possible\n // for example for { years: 2.5, days: 0, seconds: 0 } we want to get { years: 2, days: 182, hours: 12 }\n orderedUnits.reduce((previous, current) => {\n if (!isUndefined(vals[current])) {\n if (previous) {\n const fraction = vals[previous] % 1;\n vals[previous] -= fraction;\n vals[current] += fraction * matrix[previous][current];\n }\n return current;\n } else {\n return previous;\n }\n }, null);\n}\n\n// Remove all properties with a value of 0 from an object\nfunction removeZeroes(vals) {\n const newVals = {};\n for (const [key, value] of Object.entries(vals)) {\n if (value !== 0) {\n newVals[key] = value;\n }\n }\n return newVals;\n}\n\n/**\n * A Duration object represents a period of time, like \"2 months\" or \"1 day, 1 hour\". Conceptually, it's just a map of units to their quantities, accompanied by some additional configuration and methods for creating, parsing, interrogating, transforming, and formatting them. They can be used on their own or in conjunction with other Luxon types; for example, you can use {@link DateTime#plus} to add a Duration object to a DateTime, producing another DateTime.\n *\n * Here is a brief overview of commonly used methods and getters in Duration:\n *\n * * **Creation** To create a Duration, use {@link Duration.fromMillis}, {@link Duration.fromObject}, or {@link Duration.fromISO}.\n * * **Unit values** See the {@link Duration#years}, {@link Duration#months}, {@link Duration#weeks}, {@link Duration#days}, {@link Duration#hours}, {@link Duration#minutes}, {@link Duration#seconds}, {@link Duration#milliseconds} accessors.\n * * **Configuration** See {@link Duration#locale} and {@link Duration#numberingSystem} accessors.\n * * **Transformation** To create new Durations out of old ones use {@link Duration#plus}, {@link Duration#minus}, {@link Duration#normalize}, {@link Duration#set}, {@link Duration#reconfigure}, {@link Duration#shiftTo}, and {@link Duration#negate}.\n * * **Output** To convert the Duration into other representations, see {@link Duration#as}, {@link Duration#toISO}, {@link Duration#toFormat}, and {@link Duration#toJSON}\n *\n * There's are more methods documented below. In addition, for more information on subtler topics like internationalization and validity, see the external documentation.\n */\nexport default class Duration {\n /**\n * @private\n */\n constructor(config) {\n const accurate = config.conversionAccuracy === \"longterm\" || false;\n let matrix = accurate ? accurateMatrix : casualMatrix;\n\n if (config.matrix) {\n matrix = config.matrix;\n }\n\n /**\n * @access private\n */\n this.values = config.values;\n /**\n * @access private\n */\n this.loc = config.loc || Locale.create();\n /**\n * @access private\n */\n this.conversionAccuracy = accurate ? \"longterm\" : \"casual\";\n /**\n * @access private\n */\n this.invalid = config.invalid || null;\n /**\n * @access private\n */\n this.matrix = matrix;\n /**\n * @access private\n */\n this.isLuxonDuration = true;\n }\n\n /**\n * Create Duration from a number of milliseconds.\n * @param {number} count of milliseconds\n * @param {Object} opts - options for parsing\n * @param {string} [opts.locale='en-US'] - the locale to use\n * @param {string} opts.numberingSystem - the numbering system to use\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @return {Duration}\n */\n static fromMillis(count, opts) {\n return Duration.fromObject({ milliseconds: count }, opts);\n }\n\n /**\n * Create a Duration from a JavaScript object with keys like 'years' and 'hours'.\n * If this object is empty then a zero milliseconds duration is returned.\n * @param {Object} obj - the object to create the DateTime from\n * @param {number} obj.years\n * @param {number} obj.quarters\n * @param {number} obj.months\n * @param {number} obj.weeks\n * @param {number} obj.days\n * @param {number} obj.hours\n * @param {number} obj.minutes\n * @param {number} obj.seconds\n * @param {number} obj.milliseconds\n * @param {Object} [opts=[]] - options for creating this Duration\n * @param {string} [opts.locale='en-US'] - the locale to use\n * @param {string} opts.numberingSystem - the numbering system to use\n * @param {string} [opts.conversionAccuracy='casual'] - the preset conversion system to use\n * @param {string} [opts.matrix=Object] - the custom conversion system to use\n * @return {Duration}\n */\n static fromObject(obj, opts = {}) {\n if (obj == null || typeof obj !== \"object\") {\n throw new InvalidArgumentError(\n `Duration.fromObject: argument expected to be an object, got ${\n obj === null ? \"null\" : typeof obj\n }`\n );\n }\n\n return new Duration({\n values: normalizeObject(obj, Duration.normalizeUnit),\n loc: Locale.fromObject(opts),\n conversionAccuracy: opts.conversionAccuracy,\n matrix: opts.matrix,\n });\n }\n\n /**\n * Create a Duration from DurationLike.\n *\n * @param {Object | number | Duration} durationLike\n * One of:\n * - object with keys like 'years' and 'hours'.\n * - number representing milliseconds\n * - Duration instance\n * @return {Duration}\n */\n static fromDurationLike(durationLike) {\n if (isNumber(durationLike)) {\n return Duration.fromMillis(durationLike);\n } else if (Duration.isDuration(durationLike)) {\n return durationLike;\n } else if (typeof durationLike === \"object\") {\n return Duration.fromObject(durationLike);\n } else {\n throw new InvalidArgumentError(\n `Unknown duration argument ${durationLike} of type ${typeof durationLike}`\n );\n }\n }\n\n /**\n * Create a Duration from an ISO 8601 duration string.\n * @param {string} text - text to parse\n * @param {Object} opts - options for parsing\n * @param {string} [opts.locale='en-US'] - the locale to use\n * @param {string} opts.numberingSystem - the numbering system to use\n * @param {string} [opts.conversionAccuracy='casual'] - the preset conversion system to use\n * @param {string} [opts.matrix=Object] - the preset conversion system to use\n * @see https://en.wikipedia.org/wiki/ISO_8601#Durations\n * @example Duration.fromISO('P3Y6M1W4DT12H30M5S').toObject() //=> { years: 3, months: 6, weeks: 1, days: 4, hours: 12, minutes: 30, seconds: 5 }\n * @example Duration.fromISO('PT23H').toObject() //=> { hours: 23 }\n * @example Duration.fromISO('P5Y3M').toObject() //=> { years: 5, months: 3 }\n * @return {Duration}\n */\n static fromISO(text, opts) {\n const [parsed] = parseISODuration(text);\n if (parsed) {\n return Duration.fromObject(parsed, opts);\n } else {\n return Duration.invalid(\"unparsable\", `the input \"${text}\" can't be parsed as ISO 8601`);\n }\n }\n\n /**\n * Create a Duration from an ISO 8601 time string.\n * @param {string} text - text to parse\n * @param {Object} opts - options for parsing\n * @param {string} [opts.locale='en-US'] - the locale to use\n * @param {string} opts.numberingSystem - the numbering system to use\n * @param {string} [opts.conversionAccuracy='casual'] - the preset conversion system to use\n * @param {string} [opts.matrix=Object] - the conversion system to use\n * @see https://en.wikipedia.org/wiki/ISO_8601#Times\n * @example Duration.fromISOTime('11:22:33.444').toObject() //=> { hours: 11, minutes: 22, seconds: 33, milliseconds: 444 }\n * @example Duration.fromISOTime('11:00').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }\n * @example Duration.fromISOTime('T11:00').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }\n * @example Duration.fromISOTime('1100').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }\n * @example Duration.fromISOTime('T1100').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }\n * @return {Duration}\n */\n static fromISOTime(text, opts) {\n const [parsed] = parseISOTimeOnly(text);\n if (parsed) {\n return Duration.fromObject(parsed, opts);\n } else {\n return Duration.invalid(\"unparsable\", `the input \"${text}\" can't be parsed as ISO 8601`);\n }\n }\n\n /**\n * Create an invalid Duration.\n * @param {string} reason - simple string of why this datetime is invalid. Should not contain parameters or anything else data-dependent\n * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information\n * @return {Duration}\n */\n static invalid(reason, explanation = null) {\n if (!reason) {\n throw new InvalidArgumentError(\"need to specify a reason the Duration is invalid\");\n }\n\n const invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation);\n\n if (Settings.throwOnInvalid) {\n throw new InvalidDurationError(invalid);\n } else {\n return new Duration({ invalid });\n }\n }\n\n /**\n * @private\n */\n static normalizeUnit(unit) {\n const normalized = {\n year: \"years\",\n years: \"years\",\n quarter: \"quarters\",\n quarters: \"quarters\",\n month: \"months\",\n months: \"months\",\n week: \"weeks\",\n weeks: \"weeks\",\n day: \"days\",\n days: \"days\",\n hour: \"hours\",\n hours: \"hours\",\n minute: \"minutes\",\n minutes: \"minutes\",\n second: \"seconds\",\n seconds: \"seconds\",\n millisecond: \"milliseconds\",\n milliseconds: \"milliseconds\",\n }[unit ? unit.toLowerCase() : unit];\n\n if (!normalized) throw new InvalidUnitError(unit);\n\n return normalized;\n }\n\n /**\n * Check if an object is a Duration. Works across context boundaries\n * @param {object} o\n * @return {boolean}\n */\n static isDuration(o) {\n return (o && o.isLuxonDuration) || false;\n }\n\n /**\n * Get the locale of a Duration, such 'en-GB'\n * @type {string}\n */\n get locale() {\n return this.isValid ? this.loc.locale : null;\n }\n\n /**\n * Get the numbering system of a Duration, such 'beng'. The numbering system is used when formatting the Duration\n *\n * @type {string}\n */\n get numberingSystem() {\n return this.isValid ? this.loc.numberingSystem : null;\n }\n\n /**\n * Returns a string representation of this Duration formatted according to the specified format string. You may use these tokens:\n * * `S` for milliseconds\n * * `s` for seconds\n * * `m` for minutes\n * * `h` for hours\n * * `d` for days\n * * `w` for weeks\n * * `M` for months\n * * `y` for years\n * Notes:\n * * Add padding by repeating the token, e.g. \"yy\" pads the years to two digits, \"hhhh\" pads the hours out to four digits\n * * Tokens can be escaped by wrapping with single quotes.\n * * The duration will be converted to the set of units in the format string using {@link Duration#shiftTo} and the Durations's conversion accuracy setting.\n * @param {string} fmt - the format string\n * @param {Object} opts - options\n * @param {boolean} [opts.floor=true] - floor numerical values\n * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat(\"y d s\") //=> \"1 6 2\"\n * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat(\"yy dd sss\") //=> \"01 06 002\"\n * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat(\"M S\") //=> \"12 518402000\"\n * @return {string}\n */\n toFormat(fmt, opts = {}) {\n // reverse-compat since 1.2; we always round down now, never up, and we do it by default\n const fmtOpts = {\n ...opts,\n floor: opts.round !== false && opts.floor !== false,\n };\n return this.isValid\n ? Formatter.create(this.loc, fmtOpts).formatDurationFromString(this, fmt)\n : INVALID;\n }\n\n /**\n * Returns a string representation of a Duration with all units included.\n * To modify its behavior, use `listStyle` and any Intl.NumberFormat option, though `unitDisplay` is especially relevant.\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#options\n * @param {Object} opts - Formatting options. Accepts the same keys as the options parameter of the native `Intl.NumberFormat` constructor, as well as `listStyle`.\n * @param {string} [opts.listStyle='narrow'] - How to format the merged list. Corresponds to the `style` property of the options parameter of the native `Intl.ListFormat` constructor.\n * @example\n * ```js\n * var dur = Duration.fromObject({ days: 1, hours: 5, minutes: 6 })\n * dur.toHuman() //=> '1 day, 5 hours, 6 minutes'\n * dur.toHuman({ listStyle: \"long\" }) //=> '1 day, 5 hours, and 6 minutes'\n * dur.toHuman({ unitDisplay: \"short\" }) //=> '1 day, 5 hr, 6 min'\n * ```\n */\n toHuman(opts = {}) {\n if (!this.isValid) return INVALID;\n\n const l = orderedUnits\n .map((unit) => {\n const val = this.values[unit];\n if (isUndefined(val)) {\n return null;\n }\n return this.loc\n .numberFormatter({ style: \"unit\", unitDisplay: \"long\", ...opts, unit: unit.slice(0, -1) })\n .format(val);\n })\n .filter((n) => n);\n\n return this.loc\n .listFormatter({ type: \"conjunction\", style: opts.listStyle || \"narrow\", ...opts })\n .format(l);\n }\n\n /**\n * Returns a JavaScript object with this Duration's values.\n * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toObject() //=> { years: 1, days: 6, seconds: 2 }\n * @return {Object}\n */\n toObject() {\n if (!this.isValid) return {};\n return { ...this.values };\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this Duration.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Durations\n * @example Duration.fromObject({ years: 3, seconds: 45 }).toISO() //=> 'P3YT45S'\n * @example Duration.fromObject({ months: 4, seconds: 45 }).toISO() //=> 'P4MT45S'\n * @example Duration.fromObject({ months: 5 }).toISO() //=> 'P5M'\n * @example Duration.fromObject({ minutes: 5 }).toISO() //=> 'PT5M'\n * @example Duration.fromObject({ milliseconds: 6 }).toISO() //=> 'PT0.006S'\n * @return {string}\n */\n toISO() {\n // we could use the formatter, but this is an easier way to get the minimum string\n if (!this.isValid) return null;\n\n let s = \"P\";\n if (this.years !== 0) s += this.years + \"Y\";\n if (this.months !== 0 || this.quarters !== 0) s += this.months + this.quarters * 3 + \"M\";\n if (this.weeks !== 0) s += this.weeks + \"W\";\n if (this.days !== 0) s += this.days + \"D\";\n if (this.hours !== 0 || this.minutes !== 0 || this.seconds !== 0 || this.milliseconds !== 0)\n s += \"T\";\n if (this.hours !== 0) s += this.hours + \"H\";\n if (this.minutes !== 0) s += this.minutes + \"M\";\n if (this.seconds !== 0 || this.milliseconds !== 0)\n // this will handle \"floating point madness\" by removing extra decimal places\n // https://stackoverflow.com/questions/588004/is-floating-point-math-broken\n s += roundTo(this.seconds + this.milliseconds / 1000, 3) + \"S\";\n if (s === \"P\") s += \"T0S\";\n return s;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this Duration, formatted as a time of day.\n * Note that this will return null if the duration is invalid, negative, or equal to or greater than 24 hours.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Times\n * @param {Object} opts - options\n * @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0\n * @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0\n * @param {boolean} [opts.includePrefix=false] - include the `T` prefix\n * @param {string} [opts.format='extended'] - choose between the basic and extended format\n * @example Duration.fromObject({ hours: 11 }).toISOTime() //=> '11:00:00.000'\n * @example Duration.fromObject({ hours: 11 }).toISOTime({ suppressMilliseconds: true }) //=> '11:00:00'\n * @example Duration.fromObject({ hours: 11 }).toISOTime({ suppressSeconds: true }) //=> '11:00'\n * @example Duration.fromObject({ hours: 11 }).toISOTime({ includePrefix: true }) //=> 'T11:00:00.000'\n * @example Duration.fromObject({ hours: 11 }).toISOTime({ format: 'basic' }) //=> '110000.000'\n * @return {string}\n */\n toISOTime(opts = {}) {\n if (!this.isValid) return null;\n\n const millis = this.toMillis();\n if (millis < 0 || millis >= 86400000) return null;\n\n opts = {\n suppressMilliseconds: false,\n suppressSeconds: false,\n includePrefix: false,\n format: \"extended\",\n ...opts,\n includeOffset: false,\n };\n\n const dateTime = DateTime.fromMillis(millis, { zone: \"UTC\" });\n return dateTime.toISOTime(opts);\n }\n\n /**\n * Returns an ISO 8601 representation of this Duration appropriate for use in JSON.\n * @return {string}\n */\n toJSON() {\n return this.toISO();\n }\n\n /**\n * Returns an ISO 8601 representation of this Duration appropriate for use in debugging.\n * @return {string}\n */\n toString() {\n return this.toISO();\n }\n\n /**\n * Returns a string representation of this Duration appropriate for the REPL.\n * @return {string}\n */\n [Symbol.for(\"nodejs.util.inspect.custom\")]() {\n if (this.isValid) {\n return `Duration { values: ${JSON.stringify(this.values)} }`;\n } else {\n return `Duration { Invalid, reason: ${this.invalidReason} }`;\n }\n }\n\n /**\n * Returns an milliseconds value of this Duration.\n * @return {number}\n */\n toMillis() {\n if (!this.isValid) return NaN;\n\n return durationToMillis(this.matrix, this.values);\n }\n\n /**\n * Returns an milliseconds value of this Duration. Alias of {@link toMillis}\n * @return {number}\n */\n valueOf() {\n return this.toMillis();\n }\n\n /**\n * Make this Duration longer by the specified amount. Return a newly-constructed Duration.\n * @param {Duration|Object|number} duration - The amount to add. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()\n * @return {Duration}\n */\n plus(duration) {\n if (!this.isValid) return this;\n\n const dur = Duration.fromDurationLike(duration),\n result = {};\n\n for (const k of orderedUnits) {\n if (hasOwnProperty(dur.values, k) || hasOwnProperty(this.values, k)) {\n result[k] = dur.get(k) + this.get(k);\n }\n }\n\n return clone(this, { values: result }, true);\n }\n\n /**\n * Make this Duration shorter by the specified amount. Return a newly-constructed Duration.\n * @param {Duration|Object|number} duration - The amount to subtract. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()\n * @return {Duration}\n */\n minus(duration) {\n if (!this.isValid) return this;\n\n const dur = Duration.fromDurationLike(duration);\n return this.plus(dur.negate());\n }\n\n /**\n * Scale this Duration by the specified amount. Return a newly-constructed Duration.\n * @param {function} fn - The function to apply to each unit. Arity is 1 or 2: the value of the unit and, optionally, the unit name. Must return a number.\n * @example Duration.fromObject({ hours: 1, minutes: 30 }).mapUnits(x => x * 2) //=> { hours: 2, minutes: 60 }\n * @example Duration.fromObject({ hours: 1, minutes: 30 }).mapUnits((x, u) => u === \"hours\" ? x * 2 : x) //=> { hours: 2, minutes: 30 }\n * @return {Duration}\n */\n mapUnits(fn) {\n if (!this.isValid) return this;\n const result = {};\n for (const k of Object.keys(this.values)) {\n result[k] = asNumber(fn(this.values[k], k));\n }\n return clone(this, { values: result }, true);\n }\n\n /**\n * Get the value of unit.\n * @param {string} unit - a unit such as 'minute' or 'day'\n * @example Duration.fromObject({years: 2, days: 3}).get('years') //=> 2\n * @example Duration.fromObject({years: 2, days: 3}).get('months') //=> 0\n * @example Duration.fromObject({years: 2, days: 3}).get('days') //=> 3\n * @return {number}\n */\n get(unit) {\n return this[Duration.normalizeUnit(unit)];\n }\n\n /**\n * \"Set\" the values of specified units. Return a newly-constructed Duration.\n * @param {Object} values - a mapping of units to numbers\n * @example dur.set({ years: 2017 })\n * @example dur.set({ hours: 8, minutes: 30 })\n * @return {Duration}\n */\n set(values) {\n if (!this.isValid) return this;\n\n const mixed = { ...this.values, ...normalizeObject(values, Duration.normalizeUnit) };\n return clone(this, { values: mixed });\n }\n\n /**\n * \"Set\" the locale and/or numberingSystem. Returns a newly-constructed Duration.\n * @example dur.reconfigure({ locale: 'en-GB' })\n * @return {Duration}\n */\n reconfigure({ locale, numberingSystem, conversionAccuracy, matrix } = {}) {\n const loc = this.loc.clone({ locale, numberingSystem });\n const opts = { loc, matrix, conversionAccuracy };\n return clone(this, opts);\n }\n\n /**\n * Return the length of the duration in the specified unit.\n * @param {string} unit - a unit such as 'minutes' or 'days'\n * @example Duration.fromObject({years: 1}).as('days') //=> 365\n * @example Duration.fromObject({years: 1}).as('months') //=> 12\n * @example Duration.fromObject({hours: 60}).as('days') //=> 2.5\n * @return {number}\n */\n as(unit) {\n return this.isValid ? this.shiftTo(unit).get(unit) : NaN;\n }\n\n /**\n * Reduce this Duration to its canonical representation in its current units.\n * Assuming the overall value of the Duration is positive, this means:\n * - excessive values for lower-order units are converted to higher-order units (if possible, see first and second example)\n * - negative lower-order units are converted to higher order units (there must be such a higher order unit, otherwise\n * the overall value would be negative, see third example)\n * - fractional values for higher-order units are converted to lower-order units (if possible, see fourth example)\n *\n * If the overall value is negative, the result of this method is equivalent to `this.negate().normalize().negate()`.\n * @example Duration.fromObject({ years: 2, days: 5000 }).normalize().toObject() //=> { years: 15, days: 255 }\n * @example Duration.fromObject({ days: 5000 }).normalize().toObject() //=> { days: 5000 }\n * @example Duration.fromObject({ hours: 12, minutes: -45 }).normalize().toObject() //=> { hours: 11, minutes: 15 }\n * @example Duration.fromObject({ years: 2.5, days: 0, hours: 0 }).normalize().toObject() //=> { years: 2, days: 182, hours: 12 }\n * @return {Duration}\n */\n normalize() {\n if (!this.isValid) return this;\n const vals = this.toObject();\n normalizeValues(this.matrix, vals);\n return clone(this, { values: vals }, true);\n }\n\n /**\n * Rescale units to its largest representation\n * @example Duration.fromObject({ milliseconds: 90000 }).rescale().toObject() //=> { minutes: 1, seconds: 30 }\n * @return {Duration}\n */\n rescale() {\n if (!this.isValid) return this;\n const vals = removeZeroes(this.normalize().shiftToAll().toObject());\n return clone(this, { values: vals }, true);\n }\n\n /**\n * Convert this Duration into its representation in a different set of units.\n * @example Duration.fromObject({ hours: 1, seconds: 30 }).shiftTo('minutes', 'milliseconds').toObject() //=> { minutes: 60, milliseconds: 30000 }\n * @return {Duration}\n */\n shiftTo(...units) {\n if (!this.isValid) return this;\n\n if (units.length === 0) {\n return this;\n }\n\n units = units.map((u) => Duration.normalizeUnit(u));\n\n const built = {},\n accumulated = {},\n vals = this.toObject();\n let lastUnit;\n\n for (const k of orderedUnits) {\n if (units.indexOf(k) >= 0) {\n lastUnit = k;\n\n let own = 0;\n\n // anything we haven't boiled down yet should get boiled to this unit\n for (const ak in accumulated) {\n own += this.matrix[ak][k] * accumulated[ak];\n accumulated[ak] = 0;\n }\n\n // plus anything that's already in this unit\n if (isNumber(vals[k])) {\n own += vals[k];\n }\n\n // only keep the integer part for now in the hopes of putting any decimal part\n // into a smaller unit later\n const i = Math.trunc(own);\n built[k] = i;\n accumulated[k] = (own * 1000 - i * 1000) / 1000;\n\n // otherwise, keep it in the wings to boil it later\n } else if (isNumber(vals[k])) {\n accumulated[k] = vals[k];\n }\n }\n\n // anything leftover becomes the decimal for the last unit\n // lastUnit must be defined since units is not empty\n for (const key in accumulated) {\n if (accumulated[key] !== 0) {\n built[lastUnit] +=\n key === lastUnit ? accumulated[key] : accumulated[key] / this.matrix[lastUnit][key];\n }\n }\n\n normalizeValues(this.matrix, built);\n return clone(this, { values: built }, true);\n }\n\n /**\n * Shift this Duration to all available units.\n * Same as shiftTo(\"years\", \"months\", \"weeks\", \"days\", \"hours\", \"minutes\", \"seconds\", \"milliseconds\")\n * @return {Duration}\n */\n shiftToAll() {\n if (!this.isValid) return this;\n return this.shiftTo(\n \"years\",\n \"months\",\n \"weeks\",\n \"days\",\n \"hours\",\n \"minutes\",\n \"seconds\",\n \"milliseconds\"\n );\n }\n\n /**\n * Return the negative of this Duration.\n * @example Duration.fromObject({ hours: 1, seconds: 30 }).negate().toObject() //=> { hours: -1, seconds: -30 }\n * @return {Duration}\n */\n negate() {\n if (!this.isValid) return this;\n const negated = {};\n for (const k of Object.keys(this.values)) {\n negated[k] = this.values[k] === 0 ? 0 : -this.values[k];\n }\n return clone(this, { values: negated }, true);\n }\n\n /**\n * Get the years.\n * @type {number}\n */\n get years() {\n return this.isValid ? this.values.years || 0 : NaN;\n }\n\n /**\n * Get the quarters.\n * @type {number}\n */\n get quarters() {\n return this.isValid ? this.values.quarters || 0 : NaN;\n }\n\n /**\n * Get the months.\n * @type {number}\n */\n get months() {\n return this.isValid ? this.values.months || 0 : NaN;\n }\n\n /**\n * Get the weeks\n * @type {number}\n */\n get weeks() {\n return this.isValid ? this.values.weeks || 0 : NaN;\n }\n\n /**\n * Get the days.\n * @type {number}\n */\n get days() {\n return this.isValid ? this.values.days || 0 : NaN;\n }\n\n /**\n * Get the hours.\n * @type {number}\n */\n get hours() {\n return this.isValid ? this.values.hours || 0 : NaN;\n }\n\n /**\n * Get the minutes.\n * @type {number}\n */\n get minutes() {\n return this.isValid ? this.values.minutes || 0 : NaN;\n }\n\n /**\n * Get the seconds.\n * @return {number}\n */\n get seconds() {\n return this.isValid ? this.values.seconds || 0 : NaN;\n }\n\n /**\n * Get the milliseconds.\n * @return {number}\n */\n get milliseconds() {\n return this.isValid ? this.values.milliseconds || 0 : NaN;\n }\n\n /**\n * Returns whether the Duration is invalid. Invalid durations are returned by diff operations\n * on invalid DateTimes or Intervals.\n * @return {boolean}\n */\n get isValid() {\n return this.invalid === null;\n }\n\n /**\n * Returns an error code if this Duration became invalid, or null if the Duration is valid\n * @return {string}\n */\n get invalidReason() {\n return this.invalid ? this.invalid.reason : null;\n }\n\n /**\n * Returns an explanation of why this Duration became invalid, or null if the Duration is valid\n * @type {string}\n */\n get invalidExplanation() {\n return this.invalid ? this.invalid.explanation : null;\n }\n\n /**\n * Equality check\n * Two Durations are equal iff they have the same units and the same values for each unit.\n * @param {Duration} other\n * @return {boolean}\n */\n equals(other) {\n if (!this.isValid || !other.isValid) {\n return false;\n }\n\n if (!this.loc.equals(other.loc)) {\n return false;\n }\n\n function eq(v1, v2) {\n // Consider 0 and undefined as equal\n if (v1 === undefined || v1 === 0) return v2 === undefined || v2 === 0;\n return v1 === v2;\n }\n\n for (const u of orderedUnits) {\n if (!eq(this.values[u], other.values[u])) {\n return false;\n }\n }\n return true;\n }\n}\n","import DateTime, { friendlyDateTime } from \"./datetime.js\";\nimport Duration from \"./duration.js\";\nimport Settings from \"./settings.js\";\nimport { InvalidArgumentError, InvalidIntervalError } from \"./errors.js\";\nimport Invalid from \"./impl/invalid.js\";\nimport Formatter from \"./impl/formatter.js\";\nimport * as Formats from \"./impl/formats.js\";\n\nconst INVALID = \"Invalid Interval\";\n\n// checks if the start is equal to or before the end\nfunction validateStartEnd(start, end) {\n if (!start || !start.isValid) {\n return Interval.invalid(\"missing or invalid start\");\n } else if (!end || !end.isValid) {\n return Interval.invalid(\"missing or invalid end\");\n } else if (end < start) {\n return Interval.invalid(\n \"end before start\",\n `The end of an interval must be after its start, but you had start=${start.toISO()} and end=${end.toISO()}`\n );\n } else {\n return null;\n }\n}\n\n/**\n * An Interval object represents a half-open interval of time, where each endpoint is a {@link DateTime}. Conceptually, it's a container for those two endpoints, accompanied by methods for creating, parsing, interrogating, comparing, transforming, and formatting them.\n *\n * Here is a brief overview of the most commonly used methods and getters in Interval:\n *\n * * **Creation** To create an Interval, use {@link Interval.fromDateTimes}, {@link Interval.after}, {@link Interval.before}, or {@link Interval.fromISO}.\n * * **Accessors** Use {@link Interval#start} and {@link Interval#end} to get the start and end.\n * * **Interrogation** To analyze the Interval, use {@link Interval#count}, {@link Interval#length}, {@link Interval#hasSame}, {@link Interval#contains}, {@link Interval#isAfter}, or {@link Interval#isBefore}.\n * * **Transformation** To create other Intervals out of this one, use {@link Interval#set}, {@link Interval#splitAt}, {@link Interval#splitBy}, {@link Interval#divideEqually}, {@link Interval.merge}, {@link Interval.xor}, {@link Interval#union}, {@link Interval#intersection}, or {@link Interval#difference}.\n * * **Comparison** To compare this Interval to another one, use {@link Interval#equals}, {@link Interval#overlaps}, {@link Interval#abutsStart}, {@link Interval#abutsEnd}, {@link Interval#engulfs}\n * * **Output** To convert the Interval into other representations, see {@link Interval#toString}, {@link Interval#toLocaleString}, {@link Interval#toISO}, {@link Interval#toISODate}, {@link Interval#toISOTime}, {@link Interval#toFormat}, and {@link Interval#toDuration}.\n */\nexport default class Interval {\n /**\n * @private\n */\n constructor(config) {\n /**\n * @access private\n */\n this.s = config.start;\n /**\n * @access private\n */\n this.e = config.end;\n /**\n * @access private\n */\n this.invalid = config.invalid || null;\n /**\n * @access private\n */\n this.isLuxonInterval = true;\n }\n\n /**\n * Create an invalid Interval.\n * @param {string} reason - simple string of why this Interval is invalid. Should not contain parameters or anything else data-dependent\n * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information\n * @return {Interval}\n */\n static invalid(reason, explanation = null) {\n if (!reason) {\n throw new InvalidArgumentError(\"need to specify a reason the Interval is invalid\");\n }\n\n const invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation);\n\n if (Settings.throwOnInvalid) {\n throw new InvalidIntervalError(invalid);\n } else {\n return new Interval({ invalid });\n }\n }\n\n /**\n * Create an Interval from a start DateTime and an end DateTime. Inclusive of the start but not the end.\n * @param {DateTime|Date|Object} start\n * @param {DateTime|Date|Object} end\n * @return {Interval}\n */\n static fromDateTimes(start, end) {\n const builtStart = friendlyDateTime(start),\n builtEnd = friendlyDateTime(end);\n\n const validateError = validateStartEnd(builtStart, builtEnd);\n\n if (validateError == null) {\n return new Interval({\n start: builtStart,\n end: builtEnd,\n });\n } else {\n return validateError;\n }\n }\n\n /**\n * Create an Interval from a start DateTime and a Duration to extend to.\n * @param {DateTime|Date|Object} start\n * @param {Duration|Object|number} duration - the length of the Interval.\n * @return {Interval}\n */\n static after(start, duration) {\n const dur = Duration.fromDurationLike(duration),\n dt = friendlyDateTime(start);\n return Interval.fromDateTimes(dt, dt.plus(dur));\n }\n\n /**\n * Create an Interval from an end DateTime and a Duration to extend backwards to.\n * @param {DateTime|Date|Object} end\n * @param {Duration|Object|number} duration - the length of the Interval.\n * @return {Interval}\n */\n static before(end, duration) {\n const dur = Duration.fromDurationLike(duration),\n dt = friendlyDateTime(end);\n return Interval.fromDateTimes(dt.minus(dur), dt);\n }\n\n /**\n * Create an Interval from an ISO 8601 string.\n * Accepts `/`, `/`, and `/` formats.\n * @param {string} text - the ISO string to parse\n * @param {Object} [opts] - options to pass {@link DateTime#fromISO} and optionally {@link Duration#fromISO}\n * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n * @return {Interval}\n */\n static fromISO(text, opts) {\n const [s, e] = (text || \"\").split(\"/\", 2);\n if (s && e) {\n let start, startIsValid;\n try {\n start = DateTime.fromISO(s, opts);\n startIsValid = start.isValid;\n } catch (e) {\n startIsValid = false;\n }\n\n let end, endIsValid;\n try {\n end = DateTime.fromISO(e, opts);\n endIsValid = end.isValid;\n } catch (e) {\n endIsValid = false;\n }\n\n if (startIsValid && endIsValid) {\n return Interval.fromDateTimes(start, end);\n }\n\n if (startIsValid) {\n const dur = Duration.fromISO(e, opts);\n if (dur.isValid) {\n return Interval.after(start, dur);\n }\n } else if (endIsValid) {\n const dur = Duration.fromISO(s, opts);\n if (dur.isValid) {\n return Interval.before(end, dur);\n }\n }\n }\n return Interval.invalid(\"unparsable\", `the input \"${text}\" can't be parsed as ISO 8601`);\n }\n\n /**\n * Check if an object is an Interval. Works across context boundaries\n * @param {object} o\n * @return {boolean}\n */\n static isInterval(o) {\n return (o && o.isLuxonInterval) || false;\n }\n\n /**\n * Returns the start of the Interval\n * @type {DateTime}\n */\n get start() {\n return this.isValid ? this.s : null;\n }\n\n /**\n * Returns the end of the Interval\n * @type {DateTime}\n */\n get end() {\n return this.isValid ? this.e : null;\n }\n\n /**\n * Returns whether this Interval's end is at least its start, meaning that the Interval isn't 'backwards'.\n * @type {boolean}\n */\n get isValid() {\n return this.invalidReason === null;\n }\n\n /**\n * Returns an error code if this Interval is invalid, or null if the Interval is valid\n * @type {string}\n */\n get invalidReason() {\n return this.invalid ? this.invalid.reason : null;\n }\n\n /**\n * Returns an explanation of why this Interval became invalid, or null if the Interval is valid\n * @type {string}\n */\n get invalidExplanation() {\n return this.invalid ? this.invalid.explanation : null;\n }\n\n /**\n * Returns the length of the Interval in the specified unit.\n * @param {string} unit - the unit (such as 'hours' or 'days') to return the length in.\n * @return {number}\n */\n length(unit = \"milliseconds\") {\n return this.isValid ? this.toDuration(...[unit]).get(unit) : NaN;\n }\n\n /**\n * Returns the count of minutes, hours, days, months, or years included in the Interval, even in part.\n * Unlike {@link Interval#length} this counts sections of the calendar, not periods of time, e.g. specifying 'day'\n * asks 'what dates are included in this interval?', not 'how many days long is this interval?'\n * @param {string} [unit='milliseconds'] - the unit of time to count.\n * @param {Object} opts - options\n * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week; this operation will always use the locale of the start DateTime\n * @return {number}\n */\n count(unit = \"milliseconds\", opts) {\n if (!this.isValid) return NaN;\n const start = this.start.startOf(unit, opts);\n let end;\n if (opts?.useLocaleWeeks) {\n end = this.end.reconfigure({ locale: start.locale });\n } else {\n end = this.end;\n }\n end = end.startOf(unit, opts);\n return Math.floor(end.diff(start, unit).get(unit)) + (end.valueOf() !== this.end.valueOf());\n }\n\n /**\n * Returns whether this Interval's start and end are both in the same unit of time\n * @param {string} unit - the unit of time to check sameness on\n * @return {boolean}\n */\n hasSame(unit) {\n return this.isValid ? this.isEmpty() || this.e.minus(1).hasSame(this.s, unit) : false;\n }\n\n /**\n * Return whether this Interval has the same start and end DateTimes.\n * @return {boolean}\n */\n isEmpty() {\n return this.s.valueOf() === this.e.valueOf();\n }\n\n /**\n * Return whether this Interval's start is after the specified DateTime.\n * @param {DateTime} dateTime\n * @return {boolean}\n */\n isAfter(dateTime) {\n if (!this.isValid) return false;\n return this.s > dateTime;\n }\n\n /**\n * Return whether this Interval's end is before the specified DateTime.\n * @param {DateTime} dateTime\n * @return {boolean}\n */\n isBefore(dateTime) {\n if (!this.isValid) return false;\n return this.e <= dateTime;\n }\n\n /**\n * Return whether this Interval contains the specified DateTime.\n * @param {DateTime} dateTime\n * @return {boolean}\n */\n contains(dateTime) {\n if (!this.isValid) return false;\n return this.s <= dateTime && this.e > dateTime;\n }\n\n /**\n * \"Sets\" the start and/or end dates. Returns a newly-constructed Interval.\n * @param {Object} values - the values to set\n * @param {DateTime} values.start - the starting DateTime\n * @param {DateTime} values.end - the ending DateTime\n * @return {Interval}\n */\n set({ start, end } = {}) {\n if (!this.isValid) return this;\n return Interval.fromDateTimes(start || this.s, end || this.e);\n }\n\n /**\n * Split this Interval at each of the specified DateTimes\n * @param {...DateTime} dateTimes - the unit of time to count.\n * @return {Array}\n */\n splitAt(...dateTimes) {\n if (!this.isValid) return [];\n const sorted = dateTimes\n .map(friendlyDateTime)\n .filter((d) => this.contains(d))\n .sort((a, b) => a.toMillis() - b.toMillis()),\n results = [];\n let { s } = this,\n i = 0;\n\n while (s < this.e) {\n const added = sorted[i] || this.e,\n next = +added > +this.e ? this.e : added;\n results.push(Interval.fromDateTimes(s, next));\n s = next;\n i += 1;\n }\n\n return results;\n }\n\n /**\n * Split this Interval into smaller Intervals, each of the specified length.\n * Left over time is grouped into a smaller interval\n * @param {Duration|Object|number} duration - The length of each resulting interval.\n * @return {Array}\n */\n splitBy(duration) {\n const dur = Duration.fromDurationLike(duration);\n\n if (!this.isValid || !dur.isValid || dur.as(\"milliseconds\") === 0) {\n return [];\n }\n\n let { s } = this,\n idx = 1,\n next;\n\n const results = [];\n while (s < this.e) {\n const added = this.start.plus(dur.mapUnits((x) => x * idx));\n next = +added > +this.e ? this.e : added;\n results.push(Interval.fromDateTimes(s, next));\n s = next;\n idx += 1;\n }\n\n return results;\n }\n\n /**\n * Split this Interval into the specified number of smaller intervals.\n * @param {number} numberOfParts - The number of Intervals to divide the Interval into.\n * @return {Array}\n */\n divideEqually(numberOfParts) {\n if (!this.isValid) return [];\n return this.splitBy(this.length() / numberOfParts).slice(0, numberOfParts);\n }\n\n /**\n * Return whether this Interval overlaps with the specified Interval\n * @param {Interval} other\n * @return {boolean}\n */\n overlaps(other) {\n return this.e > other.s && this.s < other.e;\n }\n\n /**\n * Return whether this Interval's end is adjacent to the specified Interval's start.\n * @param {Interval} other\n * @return {boolean}\n */\n abutsStart(other) {\n if (!this.isValid) return false;\n return +this.e === +other.s;\n }\n\n /**\n * Return whether this Interval's start is adjacent to the specified Interval's end.\n * @param {Interval} other\n * @return {boolean}\n */\n abutsEnd(other) {\n if (!this.isValid) return false;\n return +other.e === +this.s;\n }\n\n /**\n * Return whether this Interval engulfs the start and end of the specified Interval.\n * @param {Interval} other\n * @return {boolean}\n */\n engulfs(other) {\n if (!this.isValid) return false;\n return this.s <= other.s && this.e >= other.e;\n }\n\n /**\n * Return whether this Interval has the same start and end as the specified Interval.\n * @param {Interval} other\n * @return {boolean}\n */\n equals(other) {\n if (!this.isValid || !other.isValid) {\n return false;\n }\n\n return this.s.equals(other.s) && this.e.equals(other.e);\n }\n\n /**\n * Return an Interval representing the intersection of this Interval and the specified Interval.\n * Specifically, the resulting Interval has the maximum start time and the minimum end time of the two Intervals.\n * Returns null if the intersection is empty, meaning, the intervals don't intersect.\n * @param {Interval} other\n * @return {Interval}\n */\n intersection(other) {\n if (!this.isValid) return this;\n const s = this.s > other.s ? this.s : other.s,\n e = this.e < other.e ? this.e : other.e;\n\n if (s >= e) {\n return null;\n } else {\n return Interval.fromDateTimes(s, e);\n }\n }\n\n /**\n * Return an Interval representing the union of this Interval and the specified Interval.\n * Specifically, the resulting Interval has the minimum start time and the maximum end time of the two Intervals.\n * @param {Interval} other\n * @return {Interval}\n */\n union(other) {\n if (!this.isValid) return this;\n const s = this.s < other.s ? this.s : other.s,\n e = this.e > other.e ? this.e : other.e;\n return Interval.fromDateTimes(s, e);\n }\n\n /**\n * Merge an array of Intervals into a equivalent minimal set of Intervals.\n * Combines overlapping and adjacent Intervals.\n * @param {Array} intervals\n * @return {Array}\n */\n static merge(intervals) {\n const [found, final] = intervals\n .sort((a, b) => a.s - b.s)\n .reduce(\n ([sofar, current], item) => {\n if (!current) {\n return [sofar, item];\n } else if (current.overlaps(item) || current.abutsStart(item)) {\n return [sofar, current.union(item)];\n } else {\n return [sofar.concat([current]), item];\n }\n },\n [[], null]\n );\n if (final) {\n found.push(final);\n }\n return found;\n }\n\n /**\n * Return an array of Intervals representing the spans of time that only appear in one of the specified Intervals.\n * @param {Array} intervals\n * @return {Array}\n */\n static xor(intervals) {\n let start = null,\n currentCount = 0;\n const results = [],\n ends = intervals.map((i) => [\n { time: i.s, type: \"s\" },\n { time: i.e, type: \"e\" },\n ]),\n flattened = Array.prototype.concat(...ends),\n arr = flattened.sort((a, b) => a.time - b.time);\n\n for (const i of arr) {\n currentCount += i.type === \"s\" ? 1 : -1;\n\n if (currentCount === 1) {\n start = i.time;\n } else {\n if (start && +start !== +i.time) {\n results.push(Interval.fromDateTimes(start, i.time));\n }\n\n start = null;\n }\n }\n\n return Interval.merge(results);\n }\n\n /**\n * Return an Interval representing the span of time in this Interval that doesn't overlap with any of the specified Intervals.\n * @param {...Interval} intervals\n * @return {Array}\n */\n difference(...intervals) {\n return Interval.xor([this].concat(intervals))\n .map((i) => this.intersection(i))\n .filter((i) => i && !i.isEmpty());\n }\n\n /**\n * Returns a string representation of this Interval appropriate for debugging.\n * @return {string}\n */\n toString() {\n if (!this.isValid) return INVALID;\n return `[${this.s.toISO()} – ${this.e.toISO()})`;\n }\n\n /**\n * Returns a string representation of this Interval appropriate for the REPL.\n * @return {string}\n */\n [Symbol.for(\"nodejs.util.inspect.custom\")]() {\n if (this.isValid) {\n return `Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`;\n } else {\n return `Interval { Invalid, reason: ${this.invalidReason} }`;\n }\n }\n\n /**\n * Returns a localized string representing this Interval. Accepts the same options as the\n * Intl.DateTimeFormat constructor and any presets defined by Luxon, such as\n * {@link DateTime.DATE_FULL} or {@link DateTime.TIME_SIMPLE}. The exact behavior of this method\n * is browser-specific, but in general it will return an appropriate representation of the\n * Interval in the assigned locale. Defaults to the system's locale if no locale has been\n * specified.\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n * @param {Object} [formatOpts=DateTime.DATE_SHORT] - Either a DateTime preset or\n * Intl.DateTimeFormat constructor options.\n * @param {Object} opts - Options to override the configuration of the start DateTime.\n * @example Interval.fromISO('2022-11-07T09:00Z/2022-11-08T09:00Z').toLocaleString(); //=> 11/7/2022 – 11/8/2022\n * @example Interval.fromISO('2022-11-07T09:00Z/2022-11-08T09:00Z').toLocaleString(DateTime.DATE_FULL); //=> November 7 – 8, 2022\n * @example Interval.fromISO('2022-11-07T09:00Z/2022-11-08T09:00Z').toLocaleString(DateTime.DATE_FULL, { locale: 'fr-FR' }); //=> 7–8 novembre 2022\n * @example Interval.fromISO('2022-11-07T17:00Z/2022-11-07T19:00Z').toLocaleString(DateTime.TIME_SIMPLE); //=> 6:00 – 8:00 PM\n * @example Interval.fromISO('2022-11-07T17:00Z/2022-11-07T19:00Z').toLocaleString({ weekday: 'short', month: 'short', day: '2-digit', hour: '2-digit', minute: '2-digit' }); //=> Mon, Nov 07, 6:00 – 8:00 p\n * @return {string}\n */\n toLocaleString(formatOpts = Formats.DATE_SHORT, opts = {}) {\n return this.isValid\n ? Formatter.create(this.s.loc.clone(opts), formatOpts).formatInterval(this)\n : INVALID;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this Interval.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n * @param {Object} opts - The same options as {@link DateTime#toISO}\n * @return {string}\n */\n toISO(opts) {\n if (!this.isValid) return INVALID;\n return `${this.s.toISO(opts)}/${this.e.toISO(opts)}`;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of date of this Interval.\n * The time components are ignored.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n * @return {string}\n */\n toISODate() {\n if (!this.isValid) return INVALID;\n return `${this.s.toISODate()}/${this.e.toISODate()}`;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of time of this Interval.\n * The date components are ignored.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n * @param {Object} opts - The same options as {@link DateTime#toISO}\n * @return {string}\n */\n toISOTime(opts) {\n if (!this.isValid) return INVALID;\n return `${this.s.toISOTime(opts)}/${this.e.toISOTime(opts)}`;\n }\n\n /**\n * Returns a string representation of this Interval formatted according to the specified format\n * string. **You may not want this.** See {@link Interval#toLocaleString} for a more flexible\n * formatting tool.\n * @param {string} dateFormat - The format string. This string formats the start and end time.\n * See {@link DateTime#toFormat} for details.\n * @param {Object} opts - Options.\n * @param {string} [opts.separator = ' – '] - A separator to place between the start and end\n * representations.\n * @return {string}\n */\n toFormat(dateFormat, { separator = \" – \" } = {}) {\n if (!this.isValid) return INVALID;\n return `${this.s.toFormat(dateFormat)}${separator}${this.e.toFormat(dateFormat)}`;\n }\n\n /**\n * Return a Duration representing the time spanned by this interval.\n * @param {string|string[]} [unit=['milliseconds']] - the unit or units (such as 'hours' or 'days') to include in the duration.\n * @param {Object} opts - options that affect the creation of the Duration\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @example Interval.fromDateTimes(dt1, dt2).toDuration().toObject() //=> { milliseconds: 88489257 }\n * @example Interval.fromDateTimes(dt1, dt2).toDuration('days').toObject() //=> { days: 1.0241812152777778 }\n * @example Interval.fromDateTimes(dt1, dt2).toDuration(['hours', 'minutes']).toObject() //=> { hours: 24, minutes: 34.82095 }\n * @example Interval.fromDateTimes(dt1, dt2).toDuration(['hours', 'minutes', 'seconds']).toObject() //=> { hours: 24, minutes: 34, seconds: 49.257 }\n * @example Interval.fromDateTimes(dt1, dt2).toDuration('seconds').toObject() //=> { seconds: 88489.257 }\n * @return {Duration}\n */\n toDuration(unit, opts) {\n if (!this.isValid) {\n return Duration.invalid(this.invalidReason);\n }\n return this.e.diff(this.s, unit, opts);\n }\n\n /**\n * Run mapFn on the interval start and end, returning a new Interval from the resulting DateTimes\n * @param {function} mapFn\n * @return {Interval}\n * @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.toUTC())\n * @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.plus({ hours: 2 }))\n */\n mapEndpoints(mapFn) {\n return Interval.fromDateTimes(mapFn(this.s), mapFn(this.e));\n }\n}\n","import DateTime from \"./datetime.js\";\nimport Settings from \"./settings.js\";\nimport Locale from \"./impl/locale.js\";\nimport IANAZone from \"./zones/IANAZone.js\";\nimport { normalizeZone } from \"./impl/zoneUtil.js\";\n\nimport { hasLocaleWeekInfo, hasRelative } from \"./impl/util.js\";\n\n/**\n * The Info class contains static methods for retrieving general time and date related data. For example, it has methods for finding out if a time zone has a DST, for listing the months in any supported locale, and for discovering which of Luxon features are available in the current environment.\n */\nexport default class Info {\n /**\n * Return whether the specified zone contains a DST.\n * @param {string|Zone} [zone='local'] - Zone to check. Defaults to the environment's local zone.\n * @return {boolean}\n */\n static hasDST(zone = Settings.defaultZone) {\n const proto = DateTime.now().setZone(zone).set({ month: 12 });\n\n return !zone.isUniversal && proto.offset !== proto.set({ month: 6 }).offset;\n }\n\n /**\n * Return whether the specified zone is a valid IANA specifier.\n * @param {string} zone - Zone to check\n * @return {boolean}\n */\n static isValidIANAZone(zone) {\n return IANAZone.isValidZone(zone);\n }\n\n /**\n * Converts the input into a {@link Zone} instance.\n *\n * * If `input` is already a Zone instance, it is returned unchanged.\n * * If `input` is a string containing a valid time zone name, a Zone instance\n * with that name is returned.\n * * If `input` is a string that doesn't refer to a known time zone, a Zone\n * instance with {@link Zone#isValid} == false is returned.\n * * If `input is a number, a Zone instance with the specified fixed offset\n * in minutes is returned.\n * * If `input` is `null` or `undefined`, the default zone is returned.\n * @param {string|Zone|number} [input] - the value to be converted\n * @return {Zone}\n */\n static normalizeZone(input) {\n return normalizeZone(input, Settings.defaultZone);\n }\n\n /**\n * Get the weekday on which the week starts according to the given locale.\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @returns {number} the start of the week, 1 for Monday through 7 for Sunday\n */\n static getStartOfWeek({ locale = null, locObj = null } = {}) {\n return (locObj || Locale.create(locale)).getStartOfWeek();\n }\n\n /**\n * Get the minimum number of days necessary in a week before it is considered part of the next year according\n * to the given locale.\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @returns {number}\n */\n static getMinimumDaysInFirstWeek({ locale = null, locObj = null } = {}) {\n return (locObj || Locale.create(locale)).getMinDaysInFirstWeek();\n }\n\n /**\n * Get the weekdays, which are considered the weekend according to the given locale\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @returns {number[]} an array of weekdays, 1 for Monday through 7 for Sunday\n */\n static getWeekendWeekdays({ locale = null, locObj = null } = {}) {\n // copy the array, because we cache it internally\n return (locObj || Locale.create(locale)).getWeekendDays().slice();\n }\n\n /**\n * Return an array of standalone month names.\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n * @param {string} [length='long'] - the length of the month representation, such as \"numeric\", \"2-digit\", \"narrow\", \"short\", \"long\"\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @param {string} [opts.outputCalendar='gregory'] - the calendar\n * @example Info.months()[0] //=> 'January'\n * @example Info.months('short')[0] //=> 'Jan'\n * @example Info.months('numeric')[0] //=> '1'\n * @example Info.months('short', { locale: 'fr-CA' } )[0] //=> 'janv.'\n * @example Info.months('numeric', { locale: 'ar' })[0] //=> '١'\n * @example Info.months('long', { outputCalendar: 'islamic' })[0] //=> 'Rabiʻ I'\n * @return {Array}\n */\n static months(\n length = \"long\",\n { locale = null, numberingSystem = null, locObj = null, outputCalendar = \"gregory\" } = {}\n ) {\n return (locObj || Locale.create(locale, numberingSystem, outputCalendar)).months(length);\n }\n\n /**\n * Return an array of format month names.\n * Format months differ from standalone months in that they're meant to appear next to the day of the month. In some languages, that\n * changes the string.\n * See {@link Info#months}\n * @param {string} [length='long'] - the length of the month representation, such as \"numeric\", \"2-digit\", \"narrow\", \"short\", \"long\"\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @param {string} [opts.outputCalendar='gregory'] - the calendar\n * @return {Array}\n */\n static monthsFormat(\n length = \"long\",\n { locale = null, numberingSystem = null, locObj = null, outputCalendar = \"gregory\" } = {}\n ) {\n return (locObj || Locale.create(locale, numberingSystem, outputCalendar)).months(length, true);\n }\n\n /**\n * Return an array of standalone week names.\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n * @param {string} [length='long'] - the length of the weekday representation, such as \"narrow\", \"short\", \"long\".\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @example Info.weekdays()[0] //=> 'Monday'\n * @example Info.weekdays('short')[0] //=> 'Mon'\n * @example Info.weekdays('short', { locale: 'fr-CA' })[0] //=> 'lun.'\n * @example Info.weekdays('short', { locale: 'ar' })[0] //=> 'الاثنين'\n * @return {Array}\n */\n static weekdays(length = \"long\", { locale = null, numberingSystem = null, locObj = null } = {}) {\n return (locObj || Locale.create(locale, numberingSystem, null)).weekdays(length);\n }\n\n /**\n * Return an array of format week names.\n * Format weekdays differ from standalone weekdays in that they're meant to appear next to more date information. In some languages, that\n * changes the string.\n * See {@link Info#weekdays}\n * @param {string} [length='long'] - the length of the month representation, such as \"narrow\", \"short\", \"long\".\n * @param {Object} opts - options\n * @param {string} [opts.locale=null] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @return {Array}\n */\n static weekdaysFormat(\n length = \"long\",\n { locale = null, numberingSystem = null, locObj = null } = {}\n ) {\n return (locObj || Locale.create(locale, numberingSystem, null)).weekdays(length, true);\n }\n\n /**\n * Return an array of meridiems.\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @example Info.meridiems() //=> [ 'AM', 'PM' ]\n * @example Info.meridiems({ locale: 'my' }) //=> [ 'နံနက်', 'ညနေ' ]\n * @return {Array}\n */\n static meridiems({ locale = null } = {}) {\n return Locale.create(locale).meridiems();\n }\n\n /**\n * Return an array of eras, such as ['BC', 'AD']. The locale can be specified, but the calendar system is always Gregorian.\n * @param {string} [length='short'] - the length of the era representation, such as \"short\" or \"long\".\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @example Info.eras() //=> [ 'BC', 'AD' ]\n * @example Info.eras('long') //=> [ 'Before Christ', 'Anno Domini' ]\n * @example Info.eras('long', { locale: 'fr' }) //=> [ 'avant Jésus-Christ', 'après Jésus-Christ' ]\n * @return {Array}\n */\n static eras(length = \"short\", { locale = null } = {}) {\n return Locale.create(locale, null, \"gregory\").eras(length);\n }\n\n /**\n * Return the set of available features in this environment.\n * Some features of Luxon are not available in all environments. For example, on older browsers, relative time formatting support is not available. Use this function to figure out if that's the case.\n * Keys:\n * * `relative`: whether this environment supports relative time formatting\n * * `localeWeek`: whether this environment supports different weekdays for the start of the week based on the locale\n * @example Info.features() //=> { relative: false, localeWeek: true }\n * @return {Object}\n */\n static features() {\n return { relative: hasRelative(), localeWeek: hasLocaleWeekInfo() };\n }\n}\n","import Duration from \"../duration.js\";\n\nfunction dayDiff(earlier, later) {\n const utcDayStart = (dt) => dt.toUTC(0, { keepLocalTime: true }).startOf(\"day\").valueOf(),\n ms = utcDayStart(later) - utcDayStart(earlier);\n return Math.floor(Duration.fromMillis(ms).as(\"days\"));\n}\n\nfunction highOrderDiffs(cursor, later, units) {\n const differs = [\n [\"years\", (a, b) => b.year - a.year],\n [\"quarters\", (a, b) => b.quarter - a.quarter + (b.year - a.year) * 4],\n [\"months\", (a, b) => b.month - a.month + (b.year - a.year) * 12],\n [\n \"weeks\",\n (a, b) => {\n const days = dayDiff(a, b);\n return (days - (days % 7)) / 7;\n },\n ],\n [\"days\", dayDiff],\n ];\n\n const results = {};\n const earlier = cursor;\n let lowestOrder, highWater;\n\n /* This loop tries to diff using larger units first.\n If we overshoot, we backtrack and try the next smaller unit.\n \"cursor\" starts out at the earlier timestamp and moves closer and closer to \"later\"\n as we use smaller and smaller units.\n highWater keeps track of where we would be if we added one more of the smallest unit,\n this is used later to potentially convert any difference smaller than the smallest higher order unit\n into a fraction of that smallest higher order unit\n */\n for (const [unit, differ] of differs) {\n if (units.indexOf(unit) >= 0) {\n lowestOrder = unit;\n\n results[unit] = differ(cursor, later);\n highWater = earlier.plus(results);\n\n if (highWater > later) {\n // we overshot the end point, backtrack cursor by 1\n results[unit]--;\n cursor = earlier.plus(results);\n\n // if we are still overshooting now, we need to backtrack again\n // this happens in certain situations when diffing times in different zones,\n // because this calculation ignores time zones\n if (cursor > later) {\n // keep the \"overshot by 1\" around as highWater\n highWater = cursor;\n // backtrack cursor by 1\n results[unit]--;\n cursor = earlier.plus(results);\n }\n } else {\n cursor = highWater;\n }\n }\n }\n\n return [cursor, results, highWater, lowestOrder];\n}\n\nexport default function (earlier, later, units, opts) {\n let [cursor, results, highWater, lowestOrder] = highOrderDiffs(earlier, later, units);\n\n const remainingMillis = later - cursor;\n\n const lowerOrderUnits = units.filter(\n (u) => [\"hours\", \"minutes\", \"seconds\", \"milliseconds\"].indexOf(u) >= 0\n );\n\n if (lowerOrderUnits.length === 0) {\n if (highWater < later) {\n highWater = cursor.plus({ [lowestOrder]: 1 });\n }\n\n if (highWater !== cursor) {\n results[lowestOrder] = (results[lowestOrder] || 0) + remainingMillis / (highWater - cursor);\n }\n }\n\n const duration = Duration.fromObject(results, opts);\n\n if (lowerOrderUnits.length > 0) {\n return Duration.fromMillis(remainingMillis, opts)\n .shiftTo(...lowerOrderUnits)\n .plus(duration);\n } else {\n return duration;\n }\n}\n","const numberingSystems = {\n arab: \"[\\u0660-\\u0669]\",\n arabext: \"[\\u06F0-\\u06F9]\",\n bali: \"[\\u1B50-\\u1B59]\",\n beng: \"[\\u09E6-\\u09EF]\",\n deva: \"[\\u0966-\\u096F]\",\n fullwide: \"[\\uFF10-\\uFF19]\",\n gujr: \"[\\u0AE6-\\u0AEF]\",\n hanidec: \"[〇|一|二|三|四|五|六|七|八|九]\",\n khmr: \"[\\u17E0-\\u17E9]\",\n knda: \"[\\u0CE6-\\u0CEF]\",\n laoo: \"[\\u0ED0-\\u0ED9]\",\n limb: \"[\\u1946-\\u194F]\",\n mlym: \"[\\u0D66-\\u0D6F]\",\n mong: \"[\\u1810-\\u1819]\",\n mymr: \"[\\u1040-\\u1049]\",\n orya: \"[\\u0B66-\\u0B6F]\",\n tamldec: \"[\\u0BE6-\\u0BEF]\",\n telu: \"[\\u0C66-\\u0C6F]\",\n thai: \"[\\u0E50-\\u0E59]\",\n tibt: \"[\\u0F20-\\u0F29]\",\n latn: \"\\\\d\",\n};\n\nconst numberingSystemsUTF16 = {\n arab: [1632, 1641],\n arabext: [1776, 1785],\n bali: [6992, 7001],\n beng: [2534, 2543],\n deva: [2406, 2415],\n fullwide: [65296, 65303],\n gujr: [2790, 2799],\n khmr: [6112, 6121],\n knda: [3302, 3311],\n laoo: [3792, 3801],\n limb: [6470, 6479],\n mlym: [3430, 3439],\n mong: [6160, 6169],\n mymr: [4160, 4169],\n orya: [2918, 2927],\n tamldec: [3046, 3055],\n telu: [3174, 3183],\n thai: [3664, 3673],\n tibt: [3872, 3881],\n};\n\nconst hanidecChars = numberingSystems.hanidec.replace(/[\\[|\\]]/g, \"\").split(\"\");\n\nexport function parseDigits(str) {\n let value = parseInt(str, 10);\n if (isNaN(value)) {\n value = \"\";\n for (let i = 0; i < str.length; i++) {\n const code = str.charCodeAt(i);\n\n if (str[i].search(numberingSystems.hanidec) !== -1) {\n value += hanidecChars.indexOf(str[i]);\n } else {\n for (const key in numberingSystemsUTF16) {\n const [min, max] = numberingSystemsUTF16[key];\n if (code >= min && code <= max) {\n value += code - min;\n }\n }\n }\n }\n return parseInt(value, 10);\n } else {\n return value;\n }\n}\n\nexport function digitRegex({ numberingSystem }, append = \"\") {\n return new RegExp(`${numberingSystems[numberingSystem || \"latn\"]}${append}`);\n}\n","import { parseMillis, isUndefined, untruncateYear, signedOffset, hasOwnProperty } from \"./util.js\";\nimport Formatter from \"./formatter.js\";\nimport FixedOffsetZone from \"../zones/fixedOffsetZone.js\";\nimport IANAZone from \"../zones/IANAZone.js\";\nimport DateTime from \"../datetime.js\";\nimport { digitRegex, parseDigits } from \"./digits.js\";\nimport { ConflictingSpecificationError } from \"../errors.js\";\n\nconst MISSING_FTP = \"missing Intl.DateTimeFormat.formatToParts support\";\n\nfunction intUnit(regex, post = (i) => i) {\n return { regex, deser: ([s]) => post(parseDigits(s)) };\n}\n\nconst NBSP = String.fromCharCode(160);\nconst spaceOrNBSP = `[ ${NBSP}]`;\nconst spaceOrNBSPRegExp = new RegExp(spaceOrNBSP, \"g\");\n\nfunction fixListRegex(s) {\n // make dots optional and also make them literal\n // make space and non breakable space characters interchangeable\n return s.replace(/\\./g, \"\\\\.?\").replace(spaceOrNBSPRegExp, spaceOrNBSP);\n}\n\nfunction stripInsensitivities(s) {\n return s\n .replace(/\\./g, \"\") // ignore dots that were made optional\n .replace(spaceOrNBSPRegExp, \" \") // interchange space and nbsp\n .toLowerCase();\n}\n\nfunction oneOf(strings, startIndex) {\n if (strings === null) {\n return null;\n } else {\n return {\n regex: RegExp(strings.map(fixListRegex).join(\"|\")),\n deser: ([s]) =>\n strings.findIndex((i) => stripInsensitivities(s) === stripInsensitivities(i)) + startIndex,\n };\n }\n}\n\nfunction offset(regex, groups) {\n return { regex, deser: ([, h, m]) => signedOffset(h, m), groups };\n}\n\nfunction simple(regex) {\n return { regex, deser: ([s]) => s };\n}\n\nfunction escapeToken(value) {\n return value.replace(/[\\-\\[\\]{}()*+?.,\\\\\\^$|#\\s]/g, \"\\\\$&\");\n}\n\n/**\n * @param token\n * @param {Locale} loc\n */\nfunction unitForToken(token, loc) {\n const one = digitRegex(loc),\n two = digitRegex(loc, \"{2}\"),\n three = digitRegex(loc, \"{3}\"),\n four = digitRegex(loc, \"{4}\"),\n six = digitRegex(loc, \"{6}\"),\n oneOrTwo = digitRegex(loc, \"{1,2}\"),\n oneToThree = digitRegex(loc, \"{1,3}\"),\n oneToSix = digitRegex(loc, \"{1,6}\"),\n oneToNine = digitRegex(loc, \"{1,9}\"),\n twoToFour = digitRegex(loc, \"{2,4}\"),\n fourToSix = digitRegex(loc, \"{4,6}\"),\n literal = (t) => ({ regex: RegExp(escapeToken(t.val)), deser: ([s]) => s, literal: true }),\n unitate = (t) => {\n if (token.literal) {\n return literal(t);\n }\n switch (t.val) {\n // era\n case \"G\":\n return oneOf(loc.eras(\"short\"), 0);\n case \"GG\":\n return oneOf(loc.eras(\"long\"), 0);\n // years\n case \"y\":\n return intUnit(oneToSix);\n case \"yy\":\n return intUnit(twoToFour, untruncateYear);\n case \"yyyy\":\n return intUnit(four);\n case \"yyyyy\":\n return intUnit(fourToSix);\n case \"yyyyyy\":\n return intUnit(six);\n // months\n case \"M\":\n return intUnit(oneOrTwo);\n case \"MM\":\n return intUnit(two);\n case \"MMM\":\n return oneOf(loc.months(\"short\", true), 1);\n case \"MMMM\":\n return oneOf(loc.months(\"long\", true), 1);\n case \"L\":\n return intUnit(oneOrTwo);\n case \"LL\":\n return intUnit(two);\n case \"LLL\":\n return oneOf(loc.months(\"short\", false), 1);\n case \"LLLL\":\n return oneOf(loc.months(\"long\", false), 1);\n // dates\n case \"d\":\n return intUnit(oneOrTwo);\n case \"dd\":\n return intUnit(two);\n // ordinals\n case \"o\":\n return intUnit(oneToThree);\n case \"ooo\":\n return intUnit(three);\n // time\n case \"HH\":\n return intUnit(two);\n case \"H\":\n return intUnit(oneOrTwo);\n case \"hh\":\n return intUnit(two);\n case \"h\":\n return intUnit(oneOrTwo);\n case \"mm\":\n return intUnit(two);\n case \"m\":\n return intUnit(oneOrTwo);\n case \"q\":\n return intUnit(oneOrTwo);\n case \"qq\":\n return intUnit(two);\n case \"s\":\n return intUnit(oneOrTwo);\n case \"ss\":\n return intUnit(two);\n case \"S\":\n return intUnit(oneToThree);\n case \"SSS\":\n return intUnit(three);\n case \"u\":\n return simple(oneToNine);\n case \"uu\":\n return simple(oneOrTwo);\n case \"uuu\":\n return intUnit(one);\n // meridiem\n case \"a\":\n return oneOf(loc.meridiems(), 0);\n // weekYear (k)\n case \"kkkk\":\n return intUnit(four);\n case \"kk\":\n return intUnit(twoToFour, untruncateYear);\n // weekNumber (W)\n case \"W\":\n return intUnit(oneOrTwo);\n case \"WW\":\n return intUnit(two);\n // weekdays\n case \"E\":\n case \"c\":\n return intUnit(one);\n case \"EEE\":\n return oneOf(loc.weekdays(\"short\", false), 1);\n case \"EEEE\":\n return oneOf(loc.weekdays(\"long\", false), 1);\n case \"ccc\":\n return oneOf(loc.weekdays(\"short\", true), 1);\n case \"cccc\":\n return oneOf(loc.weekdays(\"long\", true), 1);\n // offset/zone\n case \"Z\":\n case \"ZZ\":\n return offset(new RegExp(`([+-]${oneOrTwo.source})(?::(${two.source}))?`), 2);\n case \"ZZZ\":\n return offset(new RegExp(`([+-]${oneOrTwo.source})(${two.source})?`), 2);\n // we don't support ZZZZ (PST) or ZZZZZ (Pacific Standard Time) in parsing\n // because we don't have any way to figure out what they are\n case \"z\":\n return simple(/[a-z_+-/]{1,256}?/i);\n // this special-case \"token\" represents a place where a macro-token expanded into a white-space literal\n // in this case we accept any non-newline white-space\n case \" \":\n return simple(/[^\\S\\n\\r]/);\n default:\n return literal(t);\n }\n };\n\n const unit = unitate(token) || {\n invalidReason: MISSING_FTP,\n };\n\n unit.token = token;\n\n return unit;\n}\n\nconst partTypeStyleToTokenVal = {\n year: {\n \"2-digit\": \"yy\",\n numeric: \"yyyyy\",\n },\n month: {\n numeric: \"M\",\n \"2-digit\": \"MM\",\n short: \"MMM\",\n long: \"MMMM\",\n },\n day: {\n numeric: \"d\",\n \"2-digit\": \"dd\",\n },\n weekday: {\n short: \"EEE\",\n long: \"EEEE\",\n },\n dayperiod: \"a\",\n dayPeriod: \"a\",\n hour12: {\n numeric: \"h\",\n \"2-digit\": \"hh\",\n },\n hour24: {\n numeric: \"H\",\n \"2-digit\": \"HH\",\n },\n minute: {\n numeric: \"m\",\n \"2-digit\": \"mm\",\n },\n second: {\n numeric: \"s\",\n \"2-digit\": \"ss\",\n },\n timeZoneName: {\n long: \"ZZZZZ\",\n short: \"ZZZ\",\n },\n};\n\nfunction tokenForPart(part, formatOpts, resolvedOpts) {\n const { type, value } = part;\n\n if (type === \"literal\") {\n const isSpace = /^\\s+$/.test(value);\n return {\n literal: !isSpace,\n val: isSpace ? \" \" : value,\n };\n }\n\n const style = formatOpts[type];\n\n // The user might have explicitly specified hour12 or hourCycle\n // if so, respect their decision\n // if not, refer back to the resolvedOpts, which are based on the locale\n let actualType = type;\n if (type === \"hour\") {\n if (formatOpts.hour12 != null) {\n actualType = formatOpts.hour12 ? \"hour12\" : \"hour24\";\n } else if (formatOpts.hourCycle != null) {\n if (formatOpts.hourCycle === \"h11\" || formatOpts.hourCycle === \"h12\") {\n actualType = \"hour12\";\n } else {\n actualType = \"hour24\";\n }\n } else {\n // tokens only differentiate between 24 hours or not,\n // so we do not need to check hourCycle here, which is less supported anyways\n actualType = resolvedOpts.hour12 ? \"hour12\" : \"hour24\";\n }\n }\n let val = partTypeStyleToTokenVal[actualType];\n if (typeof val === \"object\") {\n val = val[style];\n }\n\n if (val) {\n return {\n literal: false,\n val,\n };\n }\n\n return undefined;\n}\n\nfunction buildRegex(units) {\n const re = units.map((u) => u.regex).reduce((f, r) => `${f}(${r.source})`, \"\");\n return [`^${re}$`, units];\n}\n\nfunction match(input, regex, handlers) {\n const matches = input.match(regex);\n\n if (matches) {\n const all = {};\n let matchIndex = 1;\n for (const i in handlers) {\n if (hasOwnProperty(handlers, i)) {\n const h = handlers[i],\n groups = h.groups ? h.groups + 1 : 1;\n if (!h.literal && h.token) {\n all[h.token.val[0]] = h.deser(matches.slice(matchIndex, matchIndex + groups));\n }\n matchIndex += groups;\n }\n }\n return [matches, all];\n } else {\n return [matches, {}];\n }\n}\n\nfunction dateTimeFromMatches(matches) {\n const toField = (token) => {\n switch (token) {\n case \"S\":\n return \"millisecond\";\n case \"s\":\n return \"second\";\n case \"m\":\n return \"minute\";\n case \"h\":\n case \"H\":\n return \"hour\";\n case \"d\":\n return \"day\";\n case \"o\":\n return \"ordinal\";\n case \"L\":\n case \"M\":\n return \"month\";\n case \"y\":\n return \"year\";\n case \"E\":\n case \"c\":\n return \"weekday\";\n case \"W\":\n return \"weekNumber\";\n case \"k\":\n return \"weekYear\";\n case \"q\":\n return \"quarter\";\n default:\n return null;\n }\n };\n\n let zone = null;\n let specificOffset;\n if (!isUndefined(matches.z)) {\n zone = IANAZone.create(matches.z);\n }\n\n if (!isUndefined(matches.Z)) {\n if (!zone) {\n zone = new FixedOffsetZone(matches.Z);\n }\n specificOffset = matches.Z;\n }\n\n if (!isUndefined(matches.q)) {\n matches.M = (matches.q - 1) * 3 + 1;\n }\n\n if (!isUndefined(matches.h)) {\n if (matches.h < 12 && matches.a === 1) {\n matches.h += 12;\n } else if (matches.h === 12 && matches.a === 0) {\n matches.h = 0;\n }\n }\n\n if (matches.G === 0 && matches.y) {\n matches.y = -matches.y;\n }\n\n if (!isUndefined(matches.u)) {\n matches.S = parseMillis(matches.u);\n }\n\n const vals = Object.keys(matches).reduce((r, k) => {\n const f = toField(k);\n if (f) {\n r[f] = matches[k];\n }\n\n return r;\n }, {});\n\n return [vals, zone, specificOffset];\n}\n\nlet dummyDateTimeCache = null;\n\nfunction getDummyDateTime() {\n if (!dummyDateTimeCache) {\n dummyDateTimeCache = DateTime.fromMillis(1555555555555);\n }\n\n return dummyDateTimeCache;\n}\n\nfunction maybeExpandMacroToken(token, locale) {\n if (token.literal) {\n return token;\n }\n\n const formatOpts = Formatter.macroTokenToFormatOpts(token.val);\n const tokens = formatOptsToTokens(formatOpts, locale);\n\n if (tokens == null || tokens.includes(undefined)) {\n return token;\n }\n\n return tokens;\n}\n\nexport function expandMacroTokens(tokens, locale) {\n return Array.prototype.concat(...tokens.map((t) => maybeExpandMacroToken(t, locale)));\n}\n\n/**\n * @private\n */\n\nexport function explainFromTokens(locale, input, format) {\n const tokens = expandMacroTokens(Formatter.parseFormat(format), locale),\n units = tokens.map((t) => unitForToken(t, locale)),\n disqualifyingUnit = units.find((t) => t.invalidReason);\n\n if (disqualifyingUnit) {\n return { input, tokens, invalidReason: disqualifyingUnit.invalidReason };\n } else {\n const [regexString, handlers] = buildRegex(units),\n regex = RegExp(regexString, \"i\"),\n [rawMatches, matches] = match(input, regex, handlers),\n [result, zone, specificOffset] = matches\n ? dateTimeFromMatches(matches)\n : [null, null, undefined];\n if (hasOwnProperty(matches, \"a\") && hasOwnProperty(matches, \"H\")) {\n throw new ConflictingSpecificationError(\n \"Can't include meridiem when specifying 24-hour format\"\n );\n }\n return { input, tokens, regex, rawMatches, matches, result, zone, specificOffset };\n }\n}\n\nexport function parseFromTokens(locale, input, format) {\n const { result, zone, specificOffset, invalidReason } = explainFromTokens(locale, input, format);\n return [result, zone, specificOffset, invalidReason];\n}\n\nexport function formatOptsToTokens(formatOpts, locale) {\n if (!formatOpts) {\n return null;\n }\n\n const formatter = Formatter.create(locale, formatOpts);\n const df = formatter.dtFormatter(getDummyDateTime());\n const parts = df.formatToParts();\n const resolvedOpts = df.resolvedOptions();\n return parts.map((p) => tokenForPart(p, formatOpts, resolvedOpts));\n}\n","import Duration from \"./duration.js\";\nimport Interval from \"./interval.js\";\nimport Settings from \"./settings.js\";\nimport Info from \"./info.js\";\nimport Formatter from \"./impl/formatter.js\";\nimport FixedOffsetZone from \"./zones/fixedOffsetZone.js\";\nimport Locale from \"./impl/locale.js\";\nimport {\n isUndefined,\n maybeArray,\n isDate,\n isNumber,\n bestBy,\n daysInMonth,\n daysInYear,\n isLeapYear,\n weeksInWeekYear,\n normalizeObject,\n roundTo,\n objToLocalTS,\n padStart,\n} from \"./impl/util.js\";\nimport { normalizeZone } from \"./impl/zoneUtil.js\";\nimport diff from \"./impl/diff.js\";\nimport { parseRFC2822Date, parseISODate, parseHTTPDate, parseSQL } from \"./impl/regexParser.js\";\nimport {\n parseFromTokens,\n explainFromTokens,\n formatOptsToTokens,\n expandMacroTokens,\n} from \"./impl/tokenParser.js\";\nimport {\n gregorianToWeek,\n weekToGregorian,\n gregorianToOrdinal,\n ordinalToGregorian,\n hasInvalidGregorianData,\n hasInvalidWeekData,\n hasInvalidOrdinalData,\n hasInvalidTimeData,\n usesLocalWeekValues,\n isoWeekdayToLocal,\n} from \"./impl/conversions.js\";\nimport * as Formats from \"./impl/formats.js\";\nimport {\n InvalidArgumentError,\n ConflictingSpecificationError,\n InvalidUnitError,\n InvalidDateTimeError,\n} from \"./errors.js\";\nimport Invalid from \"./impl/invalid.js\";\n\nconst INVALID = \"Invalid DateTime\";\nconst MAX_DATE = 8.64e15;\n\nfunction unsupportedZone(zone) {\n return new Invalid(\"unsupported zone\", `the zone \"${zone.name}\" is not supported`);\n}\n\n// we cache week data on the DT object and this intermediates the cache\n/**\n * @param {DateTime} dt\n */\nfunction possiblyCachedWeekData(dt) {\n if (dt.weekData === null) {\n dt.weekData = gregorianToWeek(dt.c);\n }\n return dt.weekData;\n}\n\n/**\n * @param {DateTime} dt\n */\nfunction possiblyCachedLocalWeekData(dt) {\n if (dt.localWeekData === null) {\n dt.localWeekData = gregorianToWeek(\n dt.c,\n dt.loc.getMinDaysInFirstWeek(),\n dt.loc.getStartOfWeek()\n );\n }\n return dt.localWeekData;\n}\n\n// clone really means, \"make a new object with these modifications\". all \"setters\" really use this\n// to create a new object while only changing some of the properties\nfunction clone(inst, alts) {\n const current = {\n ts: inst.ts,\n zone: inst.zone,\n c: inst.c,\n o: inst.o,\n loc: inst.loc,\n invalid: inst.invalid,\n };\n return new DateTime({ ...current, ...alts, old: current });\n}\n\n// find the right offset a given local time. The o input is our guess, which determines which\n// offset we'll pick in ambiguous cases (e.g. there are two 3 AMs b/c Fallback DST)\nfunction fixOffset(localTS, o, tz) {\n // Our UTC time is just a guess because our offset is just a guess\n let utcGuess = localTS - o * 60 * 1000;\n\n // Test whether the zone matches the offset for this ts\n const o2 = tz.offset(utcGuess);\n\n // If so, offset didn't change and we're done\n if (o === o2) {\n return [utcGuess, o];\n }\n\n // If not, change the ts by the difference in the offset\n utcGuess -= (o2 - o) * 60 * 1000;\n\n // If that gives us the local time we want, we're done\n const o3 = tz.offset(utcGuess);\n if (o2 === o3) {\n return [utcGuess, o2];\n }\n\n // If it's different, we're in a hole time. The offset has changed, but the we don't adjust the time\n return [localTS - Math.min(o2, o3) * 60 * 1000, Math.max(o2, o3)];\n}\n\n// convert an epoch timestamp into a calendar object with the given offset\nfunction tsToObj(ts, offset) {\n ts += offset * 60 * 1000;\n\n const d = new Date(ts);\n\n return {\n year: d.getUTCFullYear(),\n month: d.getUTCMonth() + 1,\n day: d.getUTCDate(),\n hour: d.getUTCHours(),\n minute: d.getUTCMinutes(),\n second: d.getUTCSeconds(),\n millisecond: d.getUTCMilliseconds(),\n };\n}\n\n// convert a calendar object to a epoch timestamp\nfunction objToTS(obj, offset, zone) {\n return fixOffset(objToLocalTS(obj), offset, zone);\n}\n\n// create a new DT instance by adding a duration, adjusting for DSTs\nfunction adjustTime(inst, dur) {\n const oPre = inst.o,\n year = inst.c.year + Math.trunc(dur.years),\n month = inst.c.month + Math.trunc(dur.months) + Math.trunc(dur.quarters) * 3,\n c = {\n ...inst.c,\n year,\n month,\n day:\n Math.min(inst.c.day, daysInMonth(year, month)) +\n Math.trunc(dur.days) +\n Math.trunc(dur.weeks) * 7,\n },\n millisToAdd = Duration.fromObject({\n years: dur.years - Math.trunc(dur.years),\n quarters: dur.quarters - Math.trunc(dur.quarters),\n months: dur.months - Math.trunc(dur.months),\n weeks: dur.weeks - Math.trunc(dur.weeks),\n days: dur.days - Math.trunc(dur.days),\n hours: dur.hours,\n minutes: dur.minutes,\n seconds: dur.seconds,\n milliseconds: dur.milliseconds,\n }).as(\"milliseconds\"),\n localTS = objToLocalTS(c);\n\n let [ts, o] = fixOffset(localTS, oPre, inst.zone);\n\n if (millisToAdd !== 0) {\n ts += millisToAdd;\n // that could have changed the offset by going over a DST, but we want to keep the ts the same\n o = inst.zone.offset(ts);\n }\n\n return { ts, o };\n}\n\n// helper useful in turning the results of parsing into real dates\n// by handling the zone options\nfunction parseDataToDateTime(parsed, parsedZone, opts, format, text, specificOffset) {\n const { setZone, zone } = opts;\n if ((parsed && Object.keys(parsed).length !== 0) || parsedZone) {\n const interpretationZone = parsedZone || zone,\n inst = DateTime.fromObject(parsed, {\n ...opts,\n zone: interpretationZone,\n specificOffset,\n });\n return setZone ? inst : inst.setZone(zone);\n } else {\n return DateTime.invalid(\n new Invalid(\"unparsable\", `the input \"${text}\" can't be parsed as ${format}`)\n );\n }\n}\n\n// if you want to output a technical format (e.g. RFC 2822), this helper\n// helps handle the details\nfunction toTechFormat(dt, format, allowZ = true) {\n return dt.isValid\n ? Formatter.create(Locale.create(\"en-US\"), {\n allowZ,\n forceSimple: true,\n }).formatDateTimeFromString(dt, format)\n : null;\n}\n\nfunction toISODate(o, extended) {\n const longFormat = o.c.year > 9999 || o.c.year < 0;\n let c = \"\";\n if (longFormat && o.c.year >= 0) c += \"+\";\n c += padStart(o.c.year, longFormat ? 6 : 4);\n\n if (extended) {\n c += \"-\";\n c += padStart(o.c.month);\n c += \"-\";\n c += padStart(o.c.day);\n } else {\n c += padStart(o.c.month);\n c += padStart(o.c.day);\n }\n return c;\n}\n\nfunction toISOTime(\n o,\n extended,\n suppressSeconds,\n suppressMilliseconds,\n includeOffset,\n extendedZone\n) {\n let c = padStart(o.c.hour);\n if (extended) {\n c += \":\";\n c += padStart(o.c.minute);\n if (o.c.millisecond !== 0 || o.c.second !== 0 || !suppressSeconds) {\n c += \":\";\n }\n } else {\n c += padStart(o.c.minute);\n }\n\n if (o.c.millisecond !== 0 || o.c.second !== 0 || !suppressSeconds) {\n c += padStart(o.c.second);\n\n if (o.c.millisecond !== 0 || !suppressMilliseconds) {\n c += \".\";\n c += padStart(o.c.millisecond, 3);\n }\n }\n\n if (includeOffset) {\n if (o.isOffsetFixed && o.offset === 0 && !extendedZone) {\n c += \"Z\";\n } else if (o.o < 0) {\n c += \"-\";\n c += padStart(Math.trunc(-o.o / 60));\n c += \":\";\n c += padStart(Math.trunc(-o.o % 60));\n } else {\n c += \"+\";\n c += padStart(Math.trunc(o.o / 60));\n c += \":\";\n c += padStart(Math.trunc(o.o % 60));\n }\n }\n\n if (extendedZone) {\n c += \"[\" + o.zone.ianaName + \"]\";\n }\n return c;\n}\n\n// defaults for unspecified units in the supported calendars\nconst defaultUnitValues = {\n month: 1,\n day: 1,\n hour: 0,\n minute: 0,\n second: 0,\n millisecond: 0,\n },\n defaultWeekUnitValues = {\n weekNumber: 1,\n weekday: 1,\n hour: 0,\n minute: 0,\n second: 0,\n millisecond: 0,\n },\n defaultOrdinalUnitValues = {\n ordinal: 1,\n hour: 0,\n minute: 0,\n second: 0,\n millisecond: 0,\n };\n\n// Units in the supported calendars, sorted by bigness\nconst orderedUnits = [\"year\", \"month\", \"day\", \"hour\", \"minute\", \"second\", \"millisecond\"],\n orderedWeekUnits = [\n \"weekYear\",\n \"weekNumber\",\n \"weekday\",\n \"hour\",\n \"minute\",\n \"second\",\n \"millisecond\",\n ],\n orderedOrdinalUnits = [\"year\", \"ordinal\", \"hour\", \"minute\", \"second\", \"millisecond\"];\n\n// standardize case and plurality in units\nfunction normalizeUnit(unit) {\n const normalized = {\n year: \"year\",\n years: \"year\",\n month: \"month\",\n months: \"month\",\n day: \"day\",\n days: \"day\",\n hour: \"hour\",\n hours: \"hour\",\n minute: \"minute\",\n minutes: \"minute\",\n quarter: \"quarter\",\n quarters: \"quarter\",\n second: \"second\",\n seconds: \"second\",\n millisecond: \"millisecond\",\n milliseconds: \"millisecond\",\n weekday: \"weekday\",\n weekdays: \"weekday\",\n weeknumber: \"weekNumber\",\n weeksnumber: \"weekNumber\",\n weeknumbers: \"weekNumber\",\n weekyear: \"weekYear\",\n weekyears: \"weekYear\",\n ordinal: \"ordinal\",\n }[unit.toLowerCase()];\n\n if (!normalized) throw new InvalidUnitError(unit);\n\n return normalized;\n}\n\nfunction normalizeUnitWithLocalWeeks(unit) {\n switch (unit.toLowerCase()) {\n case \"localweekday\":\n case \"localweekdays\":\n return \"localWeekday\";\n case \"localweeknumber\":\n case \"localweeknumbers\":\n return \"localWeekNumber\";\n case \"localweekyear\":\n case \"localweekyears\":\n return \"localWeekYear\";\n default:\n return normalizeUnit(unit);\n }\n}\n\n// this is a dumbed down version of fromObject() that runs about 60% faster\n// but doesn't do any validation, makes a bunch of assumptions about what units\n// are present, and so on.\nfunction quickDT(obj, opts) {\n const zone = normalizeZone(opts.zone, Settings.defaultZone),\n loc = Locale.fromObject(opts),\n tsNow = Settings.now();\n\n let ts, o;\n\n // assume we have the higher-order units\n if (!isUndefined(obj.year)) {\n for (const u of orderedUnits) {\n if (isUndefined(obj[u])) {\n obj[u] = defaultUnitValues[u];\n }\n }\n\n const invalid = hasInvalidGregorianData(obj) || hasInvalidTimeData(obj);\n if (invalid) {\n return DateTime.invalid(invalid);\n }\n\n const offsetProvis = zone.offset(tsNow);\n [ts, o] = objToTS(obj, offsetProvis, zone);\n } else {\n ts = tsNow;\n }\n\n return new DateTime({ ts, zone, loc, o });\n}\n\nfunction diffRelative(start, end, opts) {\n const round = isUndefined(opts.round) ? true : opts.round,\n format = (c, unit) => {\n c = roundTo(c, round || opts.calendary ? 0 : 2, true);\n const formatter = end.loc.clone(opts).relFormatter(opts);\n return formatter.format(c, unit);\n },\n differ = (unit) => {\n if (opts.calendary) {\n if (!end.hasSame(start, unit)) {\n return end.startOf(unit).diff(start.startOf(unit), unit).get(unit);\n } else return 0;\n } else {\n return end.diff(start, unit).get(unit);\n }\n };\n\n if (opts.unit) {\n return format(differ(opts.unit), opts.unit);\n }\n\n for (const unit of opts.units) {\n const count = differ(unit);\n if (Math.abs(count) >= 1) {\n return format(count, unit);\n }\n }\n return format(start > end ? -0 : 0, opts.units[opts.units.length - 1]);\n}\n\nfunction lastOpts(argList) {\n let opts = {},\n args;\n if (argList.length > 0 && typeof argList[argList.length - 1] === \"object\") {\n opts = argList[argList.length - 1];\n args = Array.from(argList).slice(0, argList.length - 1);\n } else {\n args = Array.from(argList);\n }\n return [opts, args];\n}\n\n/**\n * A DateTime is an immutable data structure representing a specific date and time and accompanying methods. It contains class and instance methods for creating, parsing, interrogating, transforming, and formatting them.\n *\n * A DateTime comprises of:\n * * A timestamp. Each DateTime instance refers to a specific millisecond of the Unix epoch.\n * * A time zone. Each instance is considered in the context of a specific zone (by default the local system's zone).\n * * Configuration properties that effect how output strings are formatted, such as `locale`, `numberingSystem`, and `outputCalendar`.\n *\n * Here is a brief overview of the most commonly used functionality it provides:\n *\n * * **Creation**: To create a DateTime from its components, use one of its factory class methods: {@link DateTime.local}, {@link DateTime.utc}, and (most flexibly) {@link DateTime.fromObject}. To create one from a standard string format, use {@link DateTime.fromISO}, {@link DateTime.fromHTTP}, and {@link DateTime.fromRFC2822}. To create one from a custom string format, use {@link DateTime.fromFormat}. To create one from a native JS date, use {@link DateTime.fromJSDate}.\n * * **Gregorian calendar and time**: To examine the Gregorian properties of a DateTime individually (i.e as opposed to collectively through {@link DateTime#toObject}), use the {@link DateTime#year}, {@link DateTime#month},\n * {@link DateTime#day}, {@link DateTime#hour}, {@link DateTime#minute}, {@link DateTime#second}, {@link DateTime#millisecond} accessors.\n * * **Week calendar**: For ISO week calendar attributes, see the {@link DateTime#weekYear}, {@link DateTime#weekNumber}, and {@link DateTime#weekday} accessors.\n * * **Configuration** See the {@link DateTime#locale} and {@link DateTime#numberingSystem} accessors.\n * * **Transformation**: To transform the DateTime into other DateTimes, use {@link DateTime#set}, {@link DateTime#reconfigure}, {@link DateTime#setZone}, {@link DateTime#setLocale}, {@link DateTime.plus}, {@link DateTime#minus}, {@link DateTime#endOf}, {@link DateTime#startOf}, {@link DateTime#toUTC}, and {@link DateTime#toLocal}.\n * * **Output**: To convert the DateTime to other representations, use the {@link DateTime#toRelative}, {@link DateTime#toRelativeCalendar}, {@link DateTime#toJSON}, {@link DateTime#toISO}, {@link DateTime#toHTTP}, {@link DateTime#toObject}, {@link DateTime#toRFC2822}, {@link DateTime#toString}, {@link DateTime#toLocaleString}, {@link DateTime#toFormat}, {@link DateTime#toMillis} and {@link DateTime#toJSDate}.\n *\n * There's plenty others documented below. In addition, for more information on subtler topics like internationalization, time zones, alternative calendars, validity, and so on, see the external documentation.\n */\nexport default class DateTime {\n /**\n * @access private\n */\n constructor(config) {\n const zone = config.zone || Settings.defaultZone;\n\n let invalid =\n config.invalid ||\n (Number.isNaN(config.ts) ? new Invalid(\"invalid input\") : null) ||\n (!zone.isValid ? unsupportedZone(zone) : null);\n /**\n * @access private\n */\n this.ts = isUndefined(config.ts) ? Settings.now() : config.ts;\n\n let c = null,\n o = null;\n if (!invalid) {\n const unchanged = config.old && config.old.ts === this.ts && config.old.zone.equals(zone);\n\n if (unchanged) {\n [c, o] = [config.old.c, config.old.o];\n } else {\n const ot = zone.offset(this.ts);\n c = tsToObj(this.ts, ot);\n invalid = Number.isNaN(c.year) ? new Invalid(\"invalid input\") : null;\n c = invalid ? null : c;\n o = invalid ? null : ot;\n }\n }\n\n /**\n * @access private\n */\n this._zone = zone;\n /**\n * @access private\n */\n this.loc = config.loc || Locale.create();\n /**\n * @access private\n */\n this.invalid = invalid;\n /**\n * @access private\n */\n this.weekData = null;\n /**\n * @access private\n */\n this.localWeekData = null;\n /**\n * @access private\n */\n this.c = c;\n /**\n * @access private\n */\n this.o = o;\n /**\n * @access private\n */\n this.isLuxonDateTime = true;\n }\n\n // CONSTRUCT\n\n /**\n * Create a DateTime for the current instant, in the system's time zone.\n *\n * Use Settings to override these default values if needed.\n * @example DateTime.now().toISO() //~> now in the ISO format\n * @return {DateTime}\n */\n static now() {\n return new DateTime({});\n }\n\n /**\n * Create a local DateTime\n * @param {number} [year] - The calendar year. If omitted (as in, call `local()` with no arguments), the current time will be used\n * @param {number} [month=1] - The month, 1-indexed\n * @param {number} [day=1] - The day of the month, 1-indexed\n * @param {number} [hour=0] - The hour of the day, in 24-hour time\n * @param {number} [minute=0] - The minute of the hour, meaning a number between 0 and 59\n * @param {number} [second=0] - The second of the minute, meaning a number between 0 and 59\n * @param {number} [millisecond=0] - The millisecond of the second, meaning a number between 0 and 999\n * @example DateTime.local() //~> now\n * @example DateTime.local({ zone: \"America/New_York\" }) //~> now, in US east coast time\n * @example DateTime.local(2017) //~> 2017-01-01T00:00:00\n * @example DateTime.local(2017, 3) //~> 2017-03-01T00:00:00\n * @example DateTime.local(2017, 3, 12, { locale: \"fr\" }) //~> 2017-03-12T00:00:00, with a French locale\n * @example DateTime.local(2017, 3, 12, 5) //~> 2017-03-12T05:00:00\n * @example DateTime.local(2017, 3, 12, 5, { zone: \"utc\" }) //~> 2017-03-12T05:00:00, in UTC\n * @example DateTime.local(2017, 3, 12, 5, 45) //~> 2017-03-12T05:45:00\n * @example DateTime.local(2017, 3, 12, 5, 45, 10) //~> 2017-03-12T05:45:10\n * @example DateTime.local(2017, 3, 12, 5, 45, 10, 765) //~> 2017-03-12T05:45:10.765\n * @return {DateTime}\n */\n static local() {\n const [opts, args] = lastOpts(arguments),\n [year, month, day, hour, minute, second, millisecond] = args;\n return quickDT({ year, month, day, hour, minute, second, millisecond }, opts);\n }\n\n /**\n * Create a DateTime in UTC\n * @param {number} [year] - The calendar year. If omitted (as in, call `utc()` with no arguments), the current time will be used\n * @param {number} [month=1] - The month, 1-indexed\n * @param {number} [day=1] - The day of the month\n * @param {number} [hour=0] - The hour of the day, in 24-hour time\n * @param {number} [minute=0] - The minute of the hour, meaning a number between 0 and 59\n * @param {number} [second=0] - The second of the minute, meaning a number between 0 and 59\n * @param {number} [millisecond=0] - The millisecond of the second, meaning a number between 0 and 999\n * @param {Object} options - configuration options for the DateTime\n * @param {string} [options.locale] - a locale to set on the resulting DateTime instance\n * @param {string} [options.outputCalendar] - the output calendar to set on the resulting DateTime instance\n * @param {string} [options.numberingSystem] - the numbering system to set on the resulting DateTime instance\n * @example DateTime.utc() //~> now\n * @example DateTime.utc(2017) //~> 2017-01-01T00:00:00Z\n * @example DateTime.utc(2017, 3) //~> 2017-03-01T00:00:00Z\n * @example DateTime.utc(2017, 3, 12) //~> 2017-03-12T00:00:00Z\n * @example DateTime.utc(2017, 3, 12, 5) //~> 2017-03-12T05:00:00Z\n * @example DateTime.utc(2017, 3, 12, 5, 45) //~> 2017-03-12T05:45:00Z\n * @example DateTime.utc(2017, 3, 12, 5, 45, { locale: \"fr\" }) //~> 2017-03-12T05:45:00Z with a French locale\n * @example DateTime.utc(2017, 3, 12, 5, 45, 10) //~> 2017-03-12T05:45:10Z\n * @example DateTime.utc(2017, 3, 12, 5, 45, 10, 765, { locale: \"fr\" }) //~> 2017-03-12T05:45:10.765Z with a French locale\n * @return {DateTime}\n */\n static utc() {\n const [opts, args] = lastOpts(arguments),\n [year, month, day, hour, minute, second, millisecond] = args;\n\n opts.zone = FixedOffsetZone.utcInstance;\n return quickDT({ year, month, day, hour, minute, second, millisecond }, opts);\n }\n\n /**\n * Create a DateTime from a JavaScript Date object. Uses the default zone.\n * @param {Date} date - a JavaScript Date object\n * @param {Object} options - configuration options for the DateTime\n * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into\n * @return {DateTime}\n */\n static fromJSDate(date, options = {}) {\n const ts = isDate(date) ? date.valueOf() : NaN;\n if (Number.isNaN(ts)) {\n return DateTime.invalid(\"invalid input\");\n }\n\n const zoneToUse = normalizeZone(options.zone, Settings.defaultZone);\n if (!zoneToUse.isValid) {\n return DateTime.invalid(unsupportedZone(zoneToUse));\n }\n\n return new DateTime({\n ts: ts,\n zone: zoneToUse,\n loc: Locale.fromObject(options),\n });\n }\n\n /**\n * Create a DateTime from a number of milliseconds since the epoch (meaning since 1 January 1970 00:00:00 UTC). Uses the default zone.\n * @param {number} milliseconds - a number of milliseconds since 1970 UTC\n * @param {Object} options - configuration options for the DateTime\n * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into\n * @param {string} [options.locale] - a locale to set on the resulting DateTime instance\n * @param {string} options.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} options.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @return {DateTime}\n */\n static fromMillis(milliseconds, options = {}) {\n if (!isNumber(milliseconds)) {\n throw new InvalidArgumentError(\n `fromMillis requires a numerical input, but received a ${typeof milliseconds} with value ${milliseconds}`\n );\n } else if (milliseconds < -MAX_DATE || milliseconds > MAX_DATE) {\n // this isn't perfect because because we can still end up out of range because of additional shifting, but it's a start\n return DateTime.invalid(\"Timestamp out of range\");\n } else {\n return new DateTime({\n ts: milliseconds,\n zone: normalizeZone(options.zone, Settings.defaultZone),\n loc: Locale.fromObject(options),\n });\n }\n }\n\n /**\n * Create a DateTime from a number of seconds since the epoch (meaning since 1 January 1970 00:00:00 UTC). Uses the default zone.\n * @param {number} seconds - a number of seconds since 1970 UTC\n * @param {Object} options - configuration options for the DateTime\n * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into\n * @param {string} [options.locale] - a locale to set on the resulting DateTime instance\n * @param {string} options.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} options.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @return {DateTime}\n */\n static fromSeconds(seconds, options = {}) {\n if (!isNumber(seconds)) {\n throw new InvalidArgumentError(\"fromSeconds requires a numerical input\");\n } else {\n return new DateTime({\n ts: seconds * 1000,\n zone: normalizeZone(options.zone, Settings.defaultZone),\n loc: Locale.fromObject(options),\n });\n }\n }\n\n /**\n * Create a DateTime from a JavaScript object with keys like 'year' and 'hour' with reasonable defaults.\n * @param {Object} obj - the object to create the DateTime from\n * @param {number} obj.year - a year, such as 1987\n * @param {number} obj.month - a month, 1-12\n * @param {number} obj.day - a day of the month, 1-31, depending on the month\n * @param {number} obj.ordinal - day of the year, 1-365 or 366\n * @param {number} obj.weekYear - an ISO week year\n * @param {number} obj.weekNumber - an ISO week number, between 1 and 52 or 53, depending on the year\n * @param {number} obj.weekday - an ISO weekday, 1-7, where 1 is Monday and 7 is Sunday\n * @param {number} obj.localWeekYear - a week year, according to the locale\n * @param {number} obj.localWeekNumber - a week number, between 1 and 52 or 53, depending on the year, according to the locale\n * @param {number} obj.localWeekday - a weekday, 1-7, where 1 is the first and 7 is the last day of the week, according to the locale\n * @param {number} obj.hour - hour of the day, 0-23\n * @param {number} obj.minute - minute of the hour, 0-59\n * @param {number} obj.second - second of the minute, 0-59\n * @param {number} obj.millisecond - millisecond of the second, 0-999\n * @param {Object} opts - options for creating this DateTime\n * @param {string|Zone} [opts.zone='local'] - interpret the numbers in the context of a particular zone. Can take any value taken as the first argument to setZone()\n * @param {string} [opts.locale='system\\'s locale'] - a locale to set on the resulting DateTime instance\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @example DateTime.fromObject({ year: 1982, month: 5, day: 25}).toISODate() //=> '1982-05-25'\n * @example DateTime.fromObject({ year: 1982 }).toISODate() //=> '1982-01-01'\n * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }) //~> today at 10:26:06\n * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'utc' }),\n * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'local' })\n * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'America/New_York' })\n * @example DateTime.fromObject({ weekYear: 2016, weekNumber: 2, weekday: 3 }).toISODate() //=> '2016-01-13'\n * @example DateTime.fromObject({ localWeekYear: 2022, localWeekNumber: 1, localWeekday: 1 }, { locale: \"en-US\" }).toISODate() //=> '2021-12-26'\n * @return {DateTime}\n */\n static fromObject(obj, opts = {}) {\n obj = obj || {};\n const zoneToUse = normalizeZone(opts.zone, Settings.defaultZone);\n if (!zoneToUse.isValid) {\n return DateTime.invalid(unsupportedZone(zoneToUse));\n }\n\n const loc = Locale.fromObject(opts);\n const normalized = normalizeObject(obj, normalizeUnitWithLocalWeeks);\n const { minDaysInFirstWeek, startOfWeek } = usesLocalWeekValues(normalized, loc);\n\n const tsNow = Settings.now(),\n offsetProvis = !isUndefined(opts.specificOffset)\n ? opts.specificOffset\n : zoneToUse.offset(tsNow),\n containsOrdinal = !isUndefined(normalized.ordinal),\n containsGregorYear = !isUndefined(normalized.year),\n containsGregorMD = !isUndefined(normalized.month) || !isUndefined(normalized.day),\n containsGregor = containsGregorYear || containsGregorMD,\n definiteWeekDef = normalized.weekYear || normalized.weekNumber;\n\n // cases:\n // just a weekday -> this week's instance of that weekday, no worries\n // (gregorian data or ordinal) + (weekYear or weekNumber) -> error\n // (gregorian month or day) + ordinal -> error\n // otherwise just use weeks or ordinals or gregorian, depending on what's specified\n\n if ((containsGregor || containsOrdinal) && definiteWeekDef) {\n throw new ConflictingSpecificationError(\n \"Can't mix weekYear/weekNumber units with year/month/day or ordinals\"\n );\n }\n\n if (containsGregorMD && containsOrdinal) {\n throw new ConflictingSpecificationError(\"Can't mix ordinal dates with month/day\");\n }\n\n const useWeekData = definiteWeekDef || (normalized.weekday && !containsGregor);\n\n // configure ourselves to deal with gregorian dates or week stuff\n let units,\n defaultValues,\n objNow = tsToObj(tsNow, offsetProvis);\n if (useWeekData) {\n units = orderedWeekUnits;\n defaultValues = defaultWeekUnitValues;\n objNow = gregorianToWeek(objNow, minDaysInFirstWeek, startOfWeek);\n } else if (containsOrdinal) {\n units = orderedOrdinalUnits;\n defaultValues = defaultOrdinalUnitValues;\n objNow = gregorianToOrdinal(objNow);\n } else {\n units = orderedUnits;\n defaultValues = defaultUnitValues;\n }\n\n // set default values for missing stuff\n let foundFirst = false;\n for (const u of units) {\n const v = normalized[u];\n if (!isUndefined(v)) {\n foundFirst = true;\n } else if (foundFirst) {\n normalized[u] = defaultValues[u];\n } else {\n normalized[u] = objNow[u];\n }\n }\n\n // make sure the values we have are in range\n const higherOrderInvalid = useWeekData\n ? hasInvalidWeekData(normalized, minDaysInFirstWeek, startOfWeek)\n : containsOrdinal\n ? hasInvalidOrdinalData(normalized)\n : hasInvalidGregorianData(normalized),\n invalid = higherOrderInvalid || hasInvalidTimeData(normalized);\n\n if (invalid) {\n return DateTime.invalid(invalid);\n }\n\n // compute the actual time\n const gregorian = useWeekData\n ? weekToGregorian(normalized, minDaysInFirstWeek, startOfWeek)\n : containsOrdinal\n ? ordinalToGregorian(normalized)\n : normalized,\n [tsFinal, offsetFinal] = objToTS(gregorian, offsetProvis, zoneToUse),\n inst = new DateTime({\n ts: tsFinal,\n zone: zoneToUse,\n o: offsetFinal,\n loc,\n });\n\n // gregorian data + weekday serves only to validate\n if (normalized.weekday && containsGregor && obj.weekday !== inst.weekday) {\n return DateTime.invalid(\n \"mismatched weekday\",\n `you can't specify both a weekday of ${normalized.weekday} and a date of ${inst.toISO()}`\n );\n }\n\n return inst;\n }\n\n /**\n * Create a DateTime from an ISO 8601 string\n * @param {string} text - the ISO string\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the time to this zone\n * @param {boolean} [opts.setZone=false] - override the zone with a fixed-offset zone specified in the string itself, if it specifies one\n * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance\n * @param {string} [opts.outputCalendar] - the output calendar to set on the resulting DateTime instance\n * @param {string} [opts.numberingSystem] - the numbering system to set on the resulting DateTime instance\n * @example DateTime.fromISO('2016-05-25T09:08:34.123')\n * @example DateTime.fromISO('2016-05-25T09:08:34.123+06:00')\n * @example DateTime.fromISO('2016-05-25T09:08:34.123+06:00', {setZone: true})\n * @example DateTime.fromISO('2016-05-25T09:08:34.123', {zone: 'utc'})\n * @example DateTime.fromISO('2016-W05-4')\n * @return {DateTime}\n */\n static fromISO(text, opts = {}) {\n const [vals, parsedZone] = parseISODate(text);\n return parseDataToDateTime(vals, parsedZone, opts, \"ISO 8601\", text);\n }\n\n /**\n * Create a DateTime from an RFC 2822 string\n * @param {string} text - the RFC 2822 string\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - convert the time to this zone. Since the offset is always specified in the string itself, this has no effect on the interpretation of string, merely the zone the resulting DateTime is expressed in.\n * @param {boolean} [opts.setZone=false] - override the zone with a fixed-offset zone specified in the string itself, if it specifies one\n * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @example DateTime.fromRFC2822('25 Nov 2016 13:23:12 GMT')\n * @example DateTime.fromRFC2822('Fri, 25 Nov 2016 13:23:12 +0600')\n * @example DateTime.fromRFC2822('25 Nov 2016 13:23 Z')\n * @return {DateTime}\n */\n static fromRFC2822(text, opts = {}) {\n const [vals, parsedZone] = parseRFC2822Date(text);\n return parseDataToDateTime(vals, parsedZone, opts, \"RFC 2822\", text);\n }\n\n /**\n * Create a DateTime from an HTTP header date\n * @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1\n * @param {string} text - the HTTP header date\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - convert the time to this zone. Since HTTP dates are always in UTC, this has no effect on the interpretation of string, merely the zone the resulting DateTime is expressed in.\n * @param {boolean} [opts.setZone=false] - override the zone with the fixed-offset zone specified in the string. For HTTP dates, this is always UTC, so this option is equivalent to setting the `zone` option to 'utc', but this option is included for consistency with similar methods.\n * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @example DateTime.fromHTTP('Sun, 06 Nov 1994 08:49:37 GMT')\n * @example DateTime.fromHTTP('Sunday, 06-Nov-94 08:49:37 GMT')\n * @example DateTime.fromHTTP('Sun Nov 6 08:49:37 1994')\n * @return {DateTime}\n */\n static fromHTTP(text, opts = {}) {\n const [vals, parsedZone] = parseHTTPDate(text);\n return parseDataToDateTime(vals, parsedZone, opts, \"HTTP\", opts);\n }\n\n /**\n * Create a DateTime from an input string and format string.\n * Defaults to en-US if no locale has been specified, regardless of the system's locale. For a table of tokens and their interpretations, see [here](https://moment.github.io/luxon/#/parsing?id=table-of-tokens).\n * @param {string} text - the string to parse\n * @param {string} fmt - the format the string is expected to be in (see the link below for the formats)\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the DateTime to this zone\n * @param {boolean} [opts.setZone=false] - override the zone with a zone specified in the string itself, if it specifies one\n * @param {string} [opts.locale='en-US'] - a locale string to use when parsing. Will also set the DateTime to this locale\n * @param {string} opts.numberingSystem - the numbering system to use when parsing. Will also set the resulting DateTime to this numbering system\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @return {DateTime}\n */\n static fromFormat(text, fmt, opts = {}) {\n if (isUndefined(text) || isUndefined(fmt)) {\n throw new InvalidArgumentError(\"fromFormat requires an input string and a format\");\n }\n\n const { locale = null, numberingSystem = null } = opts,\n localeToUse = Locale.fromOpts({\n locale,\n numberingSystem,\n defaultToEN: true,\n }),\n [vals, parsedZone, specificOffset, invalid] = parseFromTokens(localeToUse, text, fmt);\n if (invalid) {\n return DateTime.invalid(invalid);\n } else {\n return parseDataToDateTime(vals, parsedZone, opts, `format ${fmt}`, text, specificOffset);\n }\n }\n\n /**\n * @deprecated use fromFormat instead\n */\n static fromString(text, fmt, opts = {}) {\n return DateTime.fromFormat(text, fmt, opts);\n }\n\n /**\n * Create a DateTime from a SQL date, time, or datetime\n * Defaults to en-US if no locale has been specified, regardless of the system's locale\n * @param {string} text - the string to parse\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the DateTime to this zone\n * @param {boolean} [opts.setZone=false] - override the zone with a zone specified in the string itself, if it specifies one\n * @param {string} [opts.locale='en-US'] - a locale string to use when parsing. Will also set the DateTime to this locale\n * @param {string} opts.numberingSystem - the numbering system to use when parsing. Will also set the resulting DateTime to this numbering system\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @example DateTime.fromSQL('2017-05-15')\n * @example DateTime.fromSQL('2017-05-15 09:12:34')\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342')\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342+06:00')\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342 America/Los_Angeles')\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342 America/Los_Angeles', { setZone: true })\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342', { zone: 'America/Los_Angeles' })\n * @example DateTime.fromSQL('09:12:34.342')\n * @return {DateTime}\n */\n static fromSQL(text, opts = {}) {\n const [vals, parsedZone] = parseSQL(text);\n return parseDataToDateTime(vals, parsedZone, opts, \"SQL\", text);\n }\n\n /**\n * Create an invalid DateTime.\n * @param {string} reason - simple string of why this DateTime is invalid. Should not contain parameters or anything else data-dependent.\n * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information\n * @return {DateTime}\n */\n static invalid(reason, explanation = null) {\n if (!reason) {\n throw new InvalidArgumentError(\"need to specify a reason the DateTime is invalid\");\n }\n\n const invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation);\n\n if (Settings.throwOnInvalid) {\n throw new InvalidDateTimeError(invalid);\n } else {\n return new DateTime({ invalid });\n }\n }\n\n /**\n * Check if an object is an instance of DateTime. Works across context boundaries\n * @param {object} o\n * @return {boolean}\n */\n static isDateTime(o) {\n return (o && o.isLuxonDateTime) || false;\n }\n\n /**\n * Produce the format string for a set of options\n * @param formatOpts\n * @param localeOpts\n * @returns {string}\n */\n static parseFormatForOpts(formatOpts, localeOpts = {}) {\n const tokenList = formatOptsToTokens(formatOpts, Locale.fromObject(localeOpts));\n return !tokenList ? null : tokenList.map((t) => (t ? t.val : null)).join(\"\");\n }\n\n /**\n * Produce the the fully expanded format token for the locale\n * Does NOT quote characters, so quoted tokens will not round trip correctly\n * @param fmt\n * @param localeOpts\n * @returns {string}\n */\n static expandFormat(fmt, localeOpts = {}) {\n const expanded = expandMacroTokens(Formatter.parseFormat(fmt), Locale.fromObject(localeOpts));\n return expanded.map((t) => t.val).join(\"\");\n }\n\n // INFO\n\n /**\n * Get the value of unit.\n * @param {string} unit - a unit such as 'minute' or 'day'\n * @example DateTime.local(2017, 7, 4).get('month'); //=> 7\n * @example DateTime.local(2017, 7, 4).get('day'); //=> 4\n * @return {number}\n */\n get(unit) {\n return this[unit];\n }\n\n /**\n * Returns whether the DateTime is valid. Invalid DateTimes occur when:\n * * The DateTime was created from invalid calendar information, such as the 13th month or February 30\n * * The DateTime was created by an operation on another invalid date\n * @type {boolean}\n */\n get isValid() {\n return this.invalid === null;\n }\n\n /**\n * Returns an error code if this DateTime is invalid, or null if the DateTime is valid\n * @type {string}\n */\n get invalidReason() {\n return this.invalid ? this.invalid.reason : null;\n }\n\n /**\n * Returns an explanation of why this DateTime became invalid, or null if the DateTime is valid\n * @type {string}\n */\n get invalidExplanation() {\n return this.invalid ? this.invalid.explanation : null;\n }\n\n /**\n * Get the locale of a DateTime, such 'en-GB'. The locale is used when formatting the DateTime\n *\n * @type {string}\n */\n get locale() {\n return this.isValid ? this.loc.locale : null;\n }\n\n /**\n * Get the numbering system of a DateTime, such 'beng'. The numbering system is used when formatting the DateTime\n *\n * @type {string}\n */\n get numberingSystem() {\n return this.isValid ? this.loc.numberingSystem : null;\n }\n\n /**\n * Get the output calendar of a DateTime, such 'islamic'. The output calendar is used when formatting the DateTime\n *\n * @type {string}\n */\n get outputCalendar() {\n return this.isValid ? this.loc.outputCalendar : null;\n }\n\n /**\n * Get the time zone associated with this DateTime.\n * @type {Zone}\n */\n get zone() {\n return this._zone;\n }\n\n /**\n * Get the name of the time zone.\n * @type {string}\n */\n get zoneName() {\n return this.isValid ? this.zone.name : null;\n }\n\n /**\n * Get the year\n * @example DateTime.local(2017, 5, 25).year //=> 2017\n * @type {number}\n */\n get year() {\n return this.isValid ? this.c.year : NaN;\n }\n\n /**\n * Get the quarter\n * @example DateTime.local(2017, 5, 25).quarter //=> 2\n * @type {number}\n */\n get quarter() {\n return this.isValid ? Math.ceil(this.c.month / 3) : NaN;\n }\n\n /**\n * Get the month (1-12).\n * @example DateTime.local(2017, 5, 25).month //=> 5\n * @type {number}\n */\n get month() {\n return this.isValid ? this.c.month : NaN;\n }\n\n /**\n * Get the day of the month (1-30ish).\n * @example DateTime.local(2017, 5, 25).day //=> 25\n * @type {number}\n */\n get day() {\n return this.isValid ? this.c.day : NaN;\n }\n\n /**\n * Get the hour of the day (0-23).\n * @example DateTime.local(2017, 5, 25, 9).hour //=> 9\n * @type {number}\n */\n get hour() {\n return this.isValid ? this.c.hour : NaN;\n }\n\n /**\n * Get the minute of the hour (0-59).\n * @example DateTime.local(2017, 5, 25, 9, 30).minute //=> 30\n * @type {number}\n */\n get minute() {\n return this.isValid ? this.c.minute : NaN;\n }\n\n /**\n * Get the second of the minute (0-59).\n * @example DateTime.local(2017, 5, 25, 9, 30, 52).second //=> 52\n * @type {number}\n */\n get second() {\n return this.isValid ? this.c.second : NaN;\n }\n\n /**\n * Get the millisecond of the second (0-999).\n * @example DateTime.local(2017, 5, 25, 9, 30, 52, 654).millisecond //=> 654\n * @type {number}\n */\n get millisecond() {\n return this.isValid ? this.c.millisecond : NaN;\n }\n\n /**\n * Get the week year\n * @see https://en.wikipedia.org/wiki/ISO_week_date\n * @example DateTime.local(2014, 12, 31).weekYear //=> 2015\n * @type {number}\n */\n get weekYear() {\n return this.isValid ? possiblyCachedWeekData(this).weekYear : NaN;\n }\n\n /**\n * Get the week number of the week year (1-52ish).\n * @see https://en.wikipedia.org/wiki/ISO_week_date\n * @example DateTime.local(2017, 5, 25).weekNumber //=> 21\n * @type {number}\n */\n get weekNumber() {\n return this.isValid ? possiblyCachedWeekData(this).weekNumber : NaN;\n }\n\n /**\n * Get the day of the week.\n * 1 is Monday and 7 is Sunday\n * @see https://en.wikipedia.org/wiki/ISO_week_date\n * @example DateTime.local(2014, 11, 31).weekday //=> 4\n * @type {number}\n */\n get weekday() {\n return this.isValid ? possiblyCachedWeekData(this).weekday : NaN;\n }\n\n /**\n * Returns true if this date is on a weekend according to the locale, false otherwise\n * @returns {boolean}\n */\n get isWeekend() {\n return this.isValid && this.loc.getWeekendDays().includes(this.weekday);\n }\n\n /**\n * Get the day of the week according to the locale.\n * 1 is the first day of the week and 7 is the last day of the week.\n * If the locale assigns Sunday as the first day of the week, then a date which is a Sunday will return 1,\n * @returns {number}\n */\n get localWeekday() {\n return this.isValid ? possiblyCachedLocalWeekData(this).weekday : NaN;\n }\n\n /**\n * Get the week number of the week year according to the locale. Different locales assign week numbers differently,\n * because the week can start on different days of the week (see localWeekday) and because a different number of days\n * is required for a week to count as the first week of a year.\n * @returns {number}\n */\n get localWeekNumber() {\n return this.isValid ? possiblyCachedLocalWeekData(this).weekNumber : NaN;\n }\n\n /**\n * Get the week year according to the locale. Different locales assign week numbers (and therefor week years)\n * differently, see localWeekNumber.\n * @returns {number}\n */\n get localWeekYear() {\n return this.isValid ? possiblyCachedLocalWeekData(this).weekYear : NaN;\n }\n\n /**\n * Get the ordinal (meaning the day of the year)\n * @example DateTime.local(2017, 5, 25).ordinal //=> 145\n * @type {number|DateTime}\n */\n get ordinal() {\n return this.isValid ? gregorianToOrdinal(this.c).ordinal : NaN;\n }\n\n /**\n * Get the human readable short month name, such as 'Oct'.\n * Defaults to the system's locale if no locale has been specified\n * @example DateTime.local(2017, 10, 30).monthShort //=> Oct\n * @type {string}\n */\n get monthShort() {\n return this.isValid ? Info.months(\"short\", { locObj: this.loc })[this.month - 1] : null;\n }\n\n /**\n * Get the human readable long month name, such as 'October'.\n * Defaults to the system's locale if no locale has been specified\n * @example DateTime.local(2017, 10, 30).monthLong //=> October\n * @type {string}\n */\n get monthLong() {\n return this.isValid ? Info.months(\"long\", { locObj: this.loc })[this.month - 1] : null;\n }\n\n /**\n * Get the human readable short weekday, such as 'Mon'.\n * Defaults to the system's locale if no locale has been specified\n * @example DateTime.local(2017, 10, 30).weekdayShort //=> Mon\n * @type {string}\n */\n get weekdayShort() {\n return this.isValid ? Info.weekdays(\"short\", { locObj: this.loc })[this.weekday - 1] : null;\n }\n\n /**\n * Get the human readable long weekday, such as 'Monday'.\n * Defaults to the system's locale if no locale has been specified\n * @example DateTime.local(2017, 10, 30).weekdayLong //=> Monday\n * @type {string}\n */\n get weekdayLong() {\n return this.isValid ? Info.weekdays(\"long\", { locObj: this.loc })[this.weekday - 1] : null;\n }\n\n /**\n * Get the UTC offset of this DateTime in minutes\n * @example DateTime.now().offset //=> -240\n * @example DateTime.utc().offset //=> 0\n * @type {number}\n */\n get offset() {\n return this.isValid ? +this.o : NaN;\n }\n\n /**\n * Get the short human name for the zone's current offset, for example \"EST\" or \"EDT\".\n * Defaults to the system's locale if no locale has been specified\n * @type {string}\n */\n get offsetNameShort() {\n if (this.isValid) {\n return this.zone.offsetName(this.ts, {\n format: \"short\",\n locale: this.locale,\n });\n } else {\n return null;\n }\n }\n\n /**\n * Get the long human name for the zone's current offset, for example \"Eastern Standard Time\" or \"Eastern Daylight Time\".\n * Defaults to the system's locale if no locale has been specified\n * @type {string}\n */\n get offsetNameLong() {\n if (this.isValid) {\n return this.zone.offsetName(this.ts, {\n format: \"long\",\n locale: this.locale,\n });\n } else {\n return null;\n }\n }\n\n /**\n * Get whether this zone's offset ever changes, as in a DST.\n * @type {boolean}\n */\n get isOffsetFixed() {\n return this.isValid ? this.zone.isUniversal : null;\n }\n\n /**\n * Get whether the DateTime is in a DST.\n * @type {boolean}\n */\n get isInDST() {\n if (this.isOffsetFixed) {\n return false;\n } else {\n return (\n this.offset > this.set({ month: 1, day: 1 }).offset ||\n this.offset > this.set({ month: 5 }).offset\n );\n }\n }\n\n /**\n * Get those DateTimes which have the same local time as this DateTime, but a different offset from UTC\n * in this DateTime's zone. During DST changes local time can be ambiguous, for example\n * `2023-10-29T02:30:00` in `Europe/Berlin` can have offset `+01:00` or `+02:00`.\n * This method will return both possible DateTimes if this DateTime's local time is ambiguous.\n * @returns {DateTime[]}\n */\n getPossibleOffsets() {\n if (!this.isValid || this.isOffsetFixed) {\n return [this];\n }\n const dayMs = 86400000;\n const minuteMs = 60000;\n const localTS = objToLocalTS(this.c);\n const oEarlier = this.zone.offset(localTS - dayMs);\n const oLater = this.zone.offset(localTS + dayMs);\n\n const o1 = this.zone.offset(localTS - oEarlier * minuteMs);\n const o2 = this.zone.offset(localTS - oLater * minuteMs);\n if (o1 === o2) {\n return [this];\n }\n const ts1 = localTS - o1 * minuteMs;\n const ts2 = localTS - o2 * minuteMs;\n const c1 = tsToObj(ts1, o1);\n const c2 = tsToObj(ts2, o2);\n if (\n c1.hour === c2.hour &&\n c1.minute === c2.minute &&\n c1.second === c2.second &&\n c1.millisecond === c2.millisecond\n ) {\n return [clone(this, { ts: ts1 }), clone(this, { ts: ts2 })];\n }\n return [this];\n }\n\n /**\n * Returns true if this DateTime is in a leap year, false otherwise\n * @example DateTime.local(2016).isInLeapYear //=> true\n * @example DateTime.local(2013).isInLeapYear //=> false\n * @type {boolean}\n */\n get isInLeapYear() {\n return isLeapYear(this.year);\n }\n\n /**\n * Returns the number of days in this DateTime's month\n * @example DateTime.local(2016, 2).daysInMonth //=> 29\n * @example DateTime.local(2016, 3).daysInMonth //=> 31\n * @type {number}\n */\n get daysInMonth() {\n return daysInMonth(this.year, this.month);\n }\n\n /**\n * Returns the number of days in this DateTime's year\n * @example DateTime.local(2016).daysInYear //=> 366\n * @example DateTime.local(2013).daysInYear //=> 365\n * @type {number}\n */\n get daysInYear() {\n return this.isValid ? daysInYear(this.year) : NaN;\n }\n\n /**\n * Returns the number of weeks in this DateTime's year\n * @see https://en.wikipedia.org/wiki/ISO_week_date\n * @example DateTime.local(2004).weeksInWeekYear //=> 53\n * @example DateTime.local(2013).weeksInWeekYear //=> 52\n * @type {number}\n */\n get weeksInWeekYear() {\n return this.isValid ? weeksInWeekYear(this.weekYear) : NaN;\n }\n\n /**\n * Returns the number of weeks in this DateTime's local week year\n * @example DateTime.local(2020, 6, {locale: 'en-US'}).weeksInLocalWeekYear //=> 52\n * @example DateTime.local(2020, 6, {locale: 'de-DE'}).weeksInLocalWeekYear //=> 53\n * @type {number}\n */\n get weeksInLocalWeekYear() {\n return this.isValid\n ? weeksInWeekYear(\n this.localWeekYear,\n this.loc.getMinDaysInFirstWeek(),\n this.loc.getStartOfWeek()\n )\n : NaN;\n }\n\n /**\n * Returns the resolved Intl options for this DateTime.\n * This is useful in understanding the behavior of formatting methods\n * @param {Object} opts - the same options as toLocaleString\n * @return {Object}\n */\n resolvedLocaleOptions(opts = {}) {\n const { locale, numberingSystem, calendar } = Formatter.create(\n this.loc.clone(opts),\n opts\n ).resolvedOptions(this);\n return { locale, numberingSystem, outputCalendar: calendar };\n }\n\n // TRANSFORM\n\n /**\n * \"Set\" the DateTime's zone to UTC. Returns a newly-constructed DateTime.\n *\n * Equivalent to {@link DateTime#setZone}('utc')\n * @param {number} [offset=0] - optionally, an offset from UTC in minutes\n * @param {Object} [opts={}] - options to pass to `setZone()`\n * @return {DateTime}\n */\n toUTC(offset = 0, opts = {}) {\n return this.setZone(FixedOffsetZone.instance(offset), opts);\n }\n\n /**\n * \"Set\" the DateTime's zone to the host's local zone. Returns a newly-constructed DateTime.\n *\n * Equivalent to `setZone('local')`\n * @return {DateTime}\n */\n toLocal() {\n return this.setZone(Settings.defaultZone);\n }\n\n /**\n * \"Set\" the DateTime's zone to specified zone. Returns a newly-constructed DateTime.\n *\n * By default, the setter keeps the underlying time the same (as in, the same timestamp), but the new instance will report different local times and consider DSTs when making computations, as with {@link DateTime#plus}. You may wish to use {@link DateTime#toLocal} and {@link DateTime#toUTC} which provide simple convenience wrappers for commonly used zones.\n * @param {string|Zone} [zone='local'] - a zone identifier. As a string, that can be any IANA zone supported by the host environment, or a fixed-offset name of the form 'UTC+3', or the strings 'local' or 'utc'. You may also supply an instance of a {@link DateTime#Zone} class.\n * @param {Object} opts - options\n * @param {boolean} [opts.keepLocalTime=false] - If true, adjust the underlying time so that the local time stays the same, but in the target zone. You should rarely need this.\n * @return {DateTime}\n */\n setZone(zone, { keepLocalTime = false, keepCalendarTime = false } = {}) {\n zone = normalizeZone(zone, Settings.defaultZone);\n if (zone.equals(this.zone)) {\n return this;\n } else if (!zone.isValid) {\n return DateTime.invalid(unsupportedZone(zone));\n } else {\n let newTS = this.ts;\n if (keepLocalTime || keepCalendarTime) {\n const offsetGuess = zone.offset(this.ts);\n const asObj = this.toObject();\n [newTS] = objToTS(asObj, offsetGuess, zone);\n }\n return clone(this, { ts: newTS, zone });\n }\n }\n\n /**\n * \"Set\" the locale, numberingSystem, or outputCalendar. Returns a newly-constructed DateTime.\n * @param {Object} properties - the properties to set\n * @example DateTime.local(2017, 5, 25).reconfigure({ locale: 'en-GB' })\n * @return {DateTime}\n */\n reconfigure({ locale, numberingSystem, outputCalendar } = {}) {\n const loc = this.loc.clone({ locale, numberingSystem, outputCalendar });\n return clone(this, { loc });\n }\n\n /**\n * \"Set\" the locale. Returns a newly-constructed DateTime.\n * Just a convenient alias for reconfigure({ locale })\n * @example DateTime.local(2017, 5, 25).setLocale('en-GB')\n * @return {DateTime}\n */\n setLocale(locale) {\n return this.reconfigure({ locale });\n }\n\n /**\n * \"Set\" the values of specified units. Returns a newly-constructed DateTime.\n * You can only set units with this method; for \"setting\" metadata, see {@link DateTime#reconfigure} and {@link DateTime#setZone}.\n *\n * This method also supports setting locale-based week units, i.e. `localWeekday`, `localWeekNumber` and `localWeekYear`.\n * They cannot be mixed with ISO-week units like `weekday`.\n * @param {Object} values - a mapping of units to numbers\n * @example dt.set({ year: 2017 })\n * @example dt.set({ hour: 8, minute: 30 })\n * @example dt.set({ weekday: 5 })\n * @example dt.set({ year: 2005, ordinal: 234 })\n * @return {DateTime}\n */\n set(values) {\n if (!this.isValid) return this;\n\n const normalized = normalizeObject(values, normalizeUnitWithLocalWeeks);\n const { minDaysInFirstWeek, startOfWeek } = usesLocalWeekValues(normalized, this.loc);\n\n const settingWeekStuff =\n !isUndefined(normalized.weekYear) ||\n !isUndefined(normalized.weekNumber) ||\n !isUndefined(normalized.weekday),\n containsOrdinal = !isUndefined(normalized.ordinal),\n containsGregorYear = !isUndefined(normalized.year),\n containsGregorMD = !isUndefined(normalized.month) || !isUndefined(normalized.day),\n containsGregor = containsGregorYear || containsGregorMD,\n definiteWeekDef = normalized.weekYear || normalized.weekNumber;\n\n if ((containsGregor || containsOrdinal) && definiteWeekDef) {\n throw new ConflictingSpecificationError(\n \"Can't mix weekYear/weekNumber units with year/month/day or ordinals\"\n );\n }\n\n if (containsGregorMD && containsOrdinal) {\n throw new ConflictingSpecificationError(\"Can't mix ordinal dates with month/day\");\n }\n\n let mixed;\n if (settingWeekStuff) {\n mixed = weekToGregorian(\n { ...gregorianToWeek(this.c, minDaysInFirstWeek, startOfWeek), ...normalized },\n minDaysInFirstWeek,\n startOfWeek\n );\n } else if (!isUndefined(normalized.ordinal)) {\n mixed = ordinalToGregorian({ ...gregorianToOrdinal(this.c), ...normalized });\n } else {\n mixed = { ...this.toObject(), ...normalized };\n\n // if we didn't set the day but we ended up on an overflow date,\n // use the last day of the right month\n if (isUndefined(normalized.day)) {\n mixed.day = Math.min(daysInMonth(mixed.year, mixed.month), mixed.day);\n }\n }\n\n const [ts, o] = objToTS(mixed, this.o, this.zone);\n return clone(this, { ts, o });\n }\n\n /**\n * Add a period of time to this DateTime and return the resulting DateTime\n *\n * Adding hours, minutes, seconds, or milliseconds increases the timestamp by the right number of milliseconds. Adding days, months, or years shifts the calendar, accounting for DSTs and leap years along the way. Thus, `dt.plus({ hours: 24 })` may result in a different time than `dt.plus({ days: 1 })` if there's a DST shift in between.\n * @param {Duration|Object|number} duration - The amount to add. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()\n * @example DateTime.now().plus(123) //~> in 123 milliseconds\n * @example DateTime.now().plus({ minutes: 15 }) //~> in 15 minutes\n * @example DateTime.now().plus({ days: 1 }) //~> this time tomorrow\n * @example DateTime.now().plus({ days: -1 }) //~> this time yesterday\n * @example DateTime.now().plus({ hours: 3, minutes: 13 }) //~> in 3 hr, 13 min\n * @example DateTime.now().plus(Duration.fromObject({ hours: 3, minutes: 13 })) //~> in 3 hr, 13 min\n * @return {DateTime}\n */\n plus(duration) {\n if (!this.isValid) return this;\n const dur = Duration.fromDurationLike(duration);\n return clone(this, adjustTime(this, dur));\n }\n\n /**\n * Subtract a period of time to this DateTime and return the resulting DateTime\n * See {@link DateTime#plus}\n * @param {Duration|Object|number} duration - The amount to subtract. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()\n @return {DateTime}\n */\n minus(duration) {\n if (!this.isValid) return this;\n const dur = Duration.fromDurationLike(duration).negate();\n return clone(this, adjustTime(this, dur));\n }\n\n /**\n * \"Set\" this DateTime to the beginning of a unit of time.\n * @param {string} unit - The unit to go to the beginning of. Can be 'year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', or 'millisecond'.\n * @param {Object} opts - options\n * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week\n * @example DateTime.local(2014, 3, 3).startOf('month').toISODate(); //=> '2014-03-01'\n * @example DateTime.local(2014, 3, 3).startOf('year').toISODate(); //=> '2014-01-01'\n * @example DateTime.local(2014, 3, 3).startOf('week').toISODate(); //=> '2014-03-03', weeks always start on Mondays\n * @example DateTime.local(2014, 3, 3, 5, 30).startOf('day').toISOTime(); //=> '00:00.000-05:00'\n * @example DateTime.local(2014, 3, 3, 5, 30).startOf('hour').toISOTime(); //=> '05:00:00.000-05:00'\n * @return {DateTime}\n */\n startOf(unit, { useLocaleWeeks = false } = {}) {\n if (!this.isValid) return this;\n\n const o = {},\n normalizedUnit = Duration.normalizeUnit(unit);\n switch (normalizedUnit) {\n case \"years\":\n o.month = 1;\n // falls through\n case \"quarters\":\n case \"months\":\n o.day = 1;\n // falls through\n case \"weeks\":\n case \"days\":\n o.hour = 0;\n // falls through\n case \"hours\":\n o.minute = 0;\n // falls through\n case \"minutes\":\n o.second = 0;\n // falls through\n case \"seconds\":\n o.millisecond = 0;\n break;\n case \"milliseconds\":\n break;\n // no default, invalid units throw in normalizeUnit()\n }\n\n if (normalizedUnit === \"weeks\") {\n if (useLocaleWeeks) {\n const startOfWeek = this.loc.getStartOfWeek();\n const { weekday } = this;\n if (weekday < startOfWeek) {\n o.weekNumber = this.weekNumber - 1;\n }\n o.weekday = startOfWeek;\n } else {\n o.weekday = 1;\n }\n }\n\n if (normalizedUnit === \"quarters\") {\n const q = Math.ceil(this.month / 3);\n o.month = (q - 1) * 3 + 1;\n }\n\n return this.set(o);\n }\n\n /**\n * \"Set\" this DateTime to the end (meaning the last millisecond) of a unit of time\n * @param {string} unit - The unit to go to the end of. Can be 'year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', or 'millisecond'.\n * @param {Object} opts - options\n * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week\n * @example DateTime.local(2014, 3, 3).endOf('month').toISO(); //=> '2014-03-31T23:59:59.999-05:00'\n * @example DateTime.local(2014, 3, 3).endOf('year').toISO(); //=> '2014-12-31T23:59:59.999-05:00'\n * @example DateTime.local(2014, 3, 3).endOf('week').toISO(); // => '2014-03-09T23:59:59.999-05:00', weeks start on Mondays\n * @example DateTime.local(2014, 3, 3, 5, 30).endOf('day').toISO(); //=> '2014-03-03T23:59:59.999-05:00'\n * @example DateTime.local(2014, 3, 3, 5, 30).endOf('hour').toISO(); //=> '2014-03-03T05:59:59.999-05:00'\n * @return {DateTime}\n */\n endOf(unit, opts) {\n return this.isValid\n ? this.plus({ [unit]: 1 })\n .startOf(unit, opts)\n .minus(1)\n : this;\n }\n\n // OUTPUT\n\n /**\n * Returns a string representation of this DateTime formatted according to the specified format string.\n * **You may not want this.** See {@link DateTime#toLocaleString} for a more flexible formatting tool. For a table of tokens and their interpretations, see [here](https://moment.github.io/luxon/#/formatting?id=table-of-tokens).\n * Defaults to en-US if no locale has been specified, regardless of the system's locale.\n * @param {string} fmt - the format string\n * @param {Object} opts - opts to override the configuration options on this DateTime\n * @example DateTime.now().toFormat('yyyy LLL dd') //=> '2017 Apr 22'\n * @example DateTime.now().setLocale('fr').toFormat('yyyy LLL dd') //=> '2017 avr. 22'\n * @example DateTime.now().toFormat('yyyy LLL dd', { locale: \"fr\" }) //=> '2017 avr. 22'\n * @example DateTime.now().toFormat(\"HH 'hours and' mm 'minutes'\") //=> '20 hours and 55 minutes'\n * @return {string}\n */\n toFormat(fmt, opts = {}) {\n return this.isValid\n ? Formatter.create(this.loc.redefaultToEN(opts)).formatDateTimeFromString(this, fmt)\n : INVALID;\n }\n\n /**\n * Returns a localized string representing this date. Accepts the same options as the Intl.DateTimeFormat constructor and any presets defined by Luxon, such as `DateTime.DATE_FULL` or `DateTime.TIME_SIMPLE`.\n * The exact behavior of this method is browser-specific, but in general it will return an appropriate representation\n * of the DateTime in the assigned locale.\n * Defaults to the system's locale if no locale has been specified\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n * @param formatOpts {Object} - Intl.DateTimeFormat constructor options and configuration options\n * @param {Object} opts - opts to override the configuration options on this DateTime\n * @example DateTime.now().toLocaleString(); //=> 4/20/2017\n * @example DateTime.now().setLocale('en-gb').toLocaleString(); //=> '20/04/2017'\n * @example DateTime.now().toLocaleString(DateTime.DATE_FULL); //=> 'April 20, 2017'\n * @example DateTime.now().toLocaleString(DateTime.DATE_FULL, { locale: 'fr' }); //=> '28 août 2022'\n * @example DateTime.now().toLocaleString(DateTime.TIME_SIMPLE); //=> '11:32 AM'\n * @example DateTime.now().toLocaleString(DateTime.DATETIME_SHORT); //=> '4/20/2017, 11:32 AM'\n * @example DateTime.now().toLocaleString({ weekday: 'long', month: 'long', day: '2-digit' }); //=> 'Thursday, April 20'\n * @example DateTime.now().toLocaleString({ weekday: 'short', month: 'short', day: '2-digit', hour: '2-digit', minute: '2-digit' }); //=> 'Thu, Apr 20, 11:27 AM'\n * @example DateTime.now().toLocaleString({ hour: '2-digit', minute: '2-digit', hourCycle: 'h23' }); //=> '11:32'\n * @return {string}\n */\n toLocaleString(formatOpts = Formats.DATE_SHORT, opts = {}) {\n return this.isValid\n ? Formatter.create(this.loc.clone(opts), formatOpts).formatDateTime(this)\n : INVALID;\n }\n\n /**\n * Returns an array of format \"parts\", meaning individual tokens along with metadata. This is allows callers to post-process individual sections of the formatted output.\n * Defaults to the system's locale if no locale has been specified\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat/formatToParts\n * @param opts {Object} - Intl.DateTimeFormat constructor options, same as `toLocaleString`.\n * @example DateTime.now().toLocaleParts(); //=> [\n * //=> { type: 'day', value: '25' },\n * //=> { type: 'literal', value: '/' },\n * //=> { type: 'month', value: '05' },\n * //=> { type: 'literal', value: '/' },\n * //=> { type: 'year', value: '1982' }\n * //=> ]\n */\n toLocaleParts(opts = {}) {\n return this.isValid\n ? Formatter.create(this.loc.clone(opts), opts).formatDateTimeParts(this)\n : [];\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this DateTime\n * @param {Object} opts - options\n * @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0\n * @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0\n * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'\n * @param {boolean} [opts.extendedZone=false] - add the time zone format extension\n * @param {string} [opts.format='extended'] - choose between the basic and extended format\n * @example DateTime.utc(1983, 5, 25).toISO() //=> '1982-05-25T00:00:00.000Z'\n * @example DateTime.now().toISO() //=> '2017-04-22T20:47:05.335-04:00'\n * @example DateTime.now().toISO({ includeOffset: false }) //=> '2017-04-22T20:47:05.335'\n * @example DateTime.now().toISO({ format: 'basic' }) //=> '20170422T204705.335-0400'\n * @return {string}\n */\n toISO({\n format = \"extended\",\n suppressSeconds = false,\n suppressMilliseconds = false,\n includeOffset = true,\n extendedZone = false,\n } = {}) {\n if (!this.isValid) {\n return null;\n }\n\n const ext = format === \"extended\";\n\n let c = toISODate(this, ext);\n c += \"T\";\n c += toISOTime(this, ext, suppressSeconds, suppressMilliseconds, includeOffset, extendedZone);\n return c;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this DateTime's date component\n * @param {Object} opts - options\n * @param {string} [opts.format='extended'] - choose between the basic and extended format\n * @example DateTime.utc(1982, 5, 25).toISODate() //=> '1982-05-25'\n * @example DateTime.utc(1982, 5, 25).toISODate({ format: 'basic' }) //=> '19820525'\n * @return {string}\n */\n toISODate({ format = \"extended\" } = {}) {\n if (!this.isValid) {\n return null;\n }\n\n return toISODate(this, format === \"extended\");\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this DateTime's week date\n * @example DateTime.utc(1982, 5, 25).toISOWeekDate() //=> '1982-W21-2'\n * @return {string}\n */\n toISOWeekDate() {\n return toTechFormat(this, \"kkkk-'W'WW-c\");\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this DateTime's time component\n * @param {Object} opts - options\n * @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0\n * @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0\n * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'\n * @param {boolean} [opts.extendedZone=true] - add the time zone format extension\n * @param {boolean} [opts.includePrefix=false] - include the `T` prefix\n * @param {string} [opts.format='extended'] - choose between the basic and extended format\n * @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime() //=> '07:34:19.361Z'\n * @example DateTime.utc().set({ hour: 7, minute: 34, seconds: 0, milliseconds: 0 }).toISOTime({ suppressSeconds: true }) //=> '07:34Z'\n * @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime({ format: 'basic' }) //=> '073419.361Z'\n * @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime({ includePrefix: true }) //=> 'T07:34:19.361Z'\n * @return {string}\n */\n toISOTime({\n suppressMilliseconds = false,\n suppressSeconds = false,\n includeOffset = true,\n includePrefix = false,\n extendedZone = false,\n format = \"extended\",\n } = {}) {\n if (!this.isValid) {\n return null;\n }\n\n let c = includePrefix ? \"T\" : \"\";\n return (\n c +\n toISOTime(\n this,\n format === \"extended\",\n suppressSeconds,\n suppressMilliseconds,\n includeOffset,\n extendedZone\n )\n );\n }\n\n /**\n * Returns an RFC 2822-compatible string representation of this DateTime\n * @example DateTime.utc(2014, 7, 13).toRFC2822() //=> 'Sun, 13 Jul 2014 00:00:00 +0000'\n * @example DateTime.local(2014, 7, 13).toRFC2822() //=> 'Sun, 13 Jul 2014 00:00:00 -0400'\n * @return {string}\n */\n toRFC2822() {\n return toTechFormat(this, \"EEE, dd LLL yyyy HH:mm:ss ZZZ\", false);\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for use in HTTP headers. The output is always expressed in GMT.\n * Specifically, the string conforms to RFC 1123.\n * @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1\n * @example DateTime.utc(2014, 7, 13).toHTTP() //=> 'Sun, 13 Jul 2014 00:00:00 GMT'\n * @example DateTime.utc(2014, 7, 13, 19).toHTTP() //=> 'Sun, 13 Jul 2014 19:00:00 GMT'\n * @return {string}\n */\n toHTTP() {\n return toTechFormat(this.toUTC(), \"EEE, dd LLL yyyy HH:mm:ss 'GMT'\");\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for use in SQL Date\n * @example DateTime.utc(2014, 7, 13).toSQLDate() //=> '2014-07-13'\n * @return {string}\n */\n toSQLDate() {\n if (!this.isValid) {\n return null;\n }\n return toISODate(this, true);\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for use in SQL Time\n * @param {Object} opts - options\n * @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset.\n * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'\n * @param {boolean} [opts.includeOffsetSpace=true] - include the space between the time and the offset, such as '05:15:16.345 -04:00'\n * @example DateTime.utc().toSQL() //=> '05:15:16.345'\n * @example DateTime.now().toSQL() //=> '05:15:16.345 -04:00'\n * @example DateTime.now().toSQL({ includeOffset: false }) //=> '05:15:16.345'\n * @example DateTime.now().toSQL({ includeZone: false }) //=> '05:15:16.345 America/New_York'\n * @return {string}\n */\n toSQLTime({ includeOffset = true, includeZone = false, includeOffsetSpace = true } = {}) {\n let fmt = \"HH:mm:ss.SSS\";\n\n if (includeZone || includeOffset) {\n if (includeOffsetSpace) {\n fmt += \" \";\n }\n if (includeZone) {\n fmt += \"z\";\n } else if (includeOffset) {\n fmt += \"ZZ\";\n }\n }\n\n return toTechFormat(this, fmt, true);\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for use in SQL DateTime\n * @param {Object} opts - options\n * @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset.\n * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'\n * @param {boolean} [opts.includeOffsetSpace=true] - include the space between the time and the offset, such as '05:15:16.345 -04:00'\n * @example DateTime.utc(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 Z'\n * @example DateTime.local(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 -04:00'\n * @example DateTime.local(2014, 7, 13).toSQL({ includeOffset: false }) //=> '2014-07-13 00:00:00.000'\n * @example DateTime.local(2014, 7, 13).toSQL({ includeZone: true }) //=> '2014-07-13 00:00:00.000 America/New_York'\n * @return {string}\n */\n toSQL(opts = {}) {\n if (!this.isValid) {\n return null;\n }\n\n return `${this.toSQLDate()} ${this.toSQLTime(opts)}`;\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for debugging\n * @return {string}\n */\n toString() {\n return this.isValid ? this.toISO() : INVALID;\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for the REPL.\n * @return {string}\n */\n [Symbol.for(\"nodejs.util.inspect.custom\")]() {\n if (this.isValid) {\n return `DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`;\n } else {\n return `DateTime { Invalid, reason: ${this.invalidReason} }`;\n }\n }\n\n /**\n * Returns the epoch milliseconds of this DateTime. Alias of {@link DateTime#toMillis}\n * @return {number}\n */\n valueOf() {\n return this.toMillis();\n }\n\n /**\n * Returns the epoch milliseconds of this DateTime.\n * @return {number}\n */\n toMillis() {\n return this.isValid ? this.ts : NaN;\n }\n\n /**\n * Returns the epoch seconds of this DateTime.\n * @return {number}\n */\n toSeconds() {\n return this.isValid ? this.ts / 1000 : NaN;\n }\n\n /**\n * Returns the epoch seconds (as a whole number) of this DateTime.\n * @return {number}\n */\n toUnixInteger() {\n return this.isValid ? Math.floor(this.ts / 1000) : NaN;\n }\n\n /**\n * Returns an ISO 8601 representation of this DateTime appropriate for use in JSON.\n * @return {string}\n */\n toJSON() {\n return this.toISO();\n }\n\n /**\n * Returns a BSON serializable equivalent to this DateTime.\n * @return {Date}\n */\n toBSON() {\n return this.toJSDate();\n }\n\n /**\n * Returns a JavaScript object with this DateTime's year, month, day, and so on.\n * @param opts - options for generating the object\n * @param {boolean} [opts.includeConfig=false] - include configuration attributes in the output\n * @example DateTime.now().toObject() //=> { year: 2017, month: 4, day: 22, hour: 20, minute: 49, second: 42, millisecond: 268 }\n * @return {Object}\n */\n toObject(opts = {}) {\n if (!this.isValid) return {};\n\n const base = { ...this.c };\n\n if (opts.includeConfig) {\n base.outputCalendar = this.outputCalendar;\n base.numberingSystem = this.loc.numberingSystem;\n base.locale = this.loc.locale;\n }\n return base;\n }\n\n /**\n * Returns a JavaScript Date equivalent to this DateTime.\n * @return {Date}\n */\n toJSDate() {\n return new Date(this.isValid ? this.ts : NaN);\n }\n\n // COMPARE\n\n /**\n * Return the difference between two DateTimes as a Duration.\n * @param {DateTime} otherDateTime - the DateTime to compare this one to\n * @param {string|string[]} [unit=['milliseconds']] - the unit or array of units (such as 'hours' or 'days') to include in the duration.\n * @param {Object} opts - options that affect the creation of the Duration\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @example\n * var i1 = DateTime.fromISO('1982-05-25T09:45'),\n * i2 = DateTime.fromISO('1983-10-14T10:30');\n * i2.diff(i1).toObject() //=> { milliseconds: 43807500000 }\n * i2.diff(i1, 'hours').toObject() //=> { hours: 12168.75 }\n * i2.diff(i1, ['months', 'days']).toObject() //=> { months: 16, days: 19.03125 }\n * i2.diff(i1, ['months', 'days', 'hours']).toObject() //=> { months: 16, days: 19, hours: 0.75 }\n * @return {Duration}\n */\n diff(otherDateTime, unit = \"milliseconds\", opts = {}) {\n if (!this.isValid || !otherDateTime.isValid) {\n return Duration.invalid(\"created by diffing an invalid DateTime\");\n }\n\n const durOpts = { locale: this.locale, numberingSystem: this.numberingSystem, ...opts };\n\n const units = maybeArray(unit).map(Duration.normalizeUnit),\n otherIsLater = otherDateTime.valueOf() > this.valueOf(),\n earlier = otherIsLater ? this : otherDateTime,\n later = otherIsLater ? otherDateTime : this,\n diffed = diff(earlier, later, units, durOpts);\n\n return otherIsLater ? diffed.negate() : diffed;\n }\n\n /**\n * Return the difference between this DateTime and right now.\n * See {@link DateTime#diff}\n * @param {string|string[]} [unit=['milliseconds']] - the unit or units units (such as 'hours' or 'days') to include in the duration\n * @param {Object} opts - options that affect the creation of the Duration\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @return {Duration}\n */\n diffNow(unit = \"milliseconds\", opts = {}) {\n return this.diff(DateTime.now(), unit, opts);\n }\n\n /**\n * Return an Interval spanning between this DateTime and another DateTime\n * @param {DateTime} otherDateTime - the other end point of the Interval\n * @return {Interval}\n */\n until(otherDateTime) {\n return this.isValid ? Interval.fromDateTimes(this, otherDateTime) : this;\n }\n\n /**\n * Return whether this DateTime is in the same unit of time as another DateTime.\n * Higher-order units must also be identical for this function to return `true`.\n * Note that time zones are **ignored** in this comparison, which compares the **local** calendar time. Use {@link DateTime#setZone} to convert one of the dates if needed.\n * @param {DateTime} otherDateTime - the other DateTime\n * @param {string} unit - the unit of time to check sameness on\n * @param {Object} opts - options\n * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week; only the locale of this DateTime is used\n * @example DateTime.now().hasSame(otherDT, 'day'); //~> true if otherDT is in the same current calendar day\n * @return {boolean}\n */\n hasSame(otherDateTime, unit, opts) {\n if (!this.isValid) return false;\n\n const inputMs = otherDateTime.valueOf();\n const adjustedToZone = this.setZone(otherDateTime.zone, { keepLocalTime: true });\n return (\n adjustedToZone.startOf(unit, opts) <= inputMs && inputMs <= adjustedToZone.endOf(unit, opts)\n );\n }\n\n /**\n * Equality check\n * Two DateTimes are equal if and only if they represent the same millisecond, have the same zone and location, and are both valid.\n * To compare just the millisecond values, use `+dt1 === +dt2`.\n * @param {DateTime} other - the other DateTime\n * @return {boolean}\n */\n equals(other) {\n return (\n this.isValid &&\n other.isValid &&\n this.valueOf() === other.valueOf() &&\n this.zone.equals(other.zone) &&\n this.loc.equals(other.loc)\n );\n }\n\n /**\n * Returns a string representation of a this time relative to now, such as \"in two days\". Can only internationalize if your\n * platform supports Intl.RelativeTimeFormat. Rounds down by default.\n * @param {Object} options - options that affect the output\n * @param {DateTime} [options.base=DateTime.now()] - the DateTime to use as the basis to which this time is compared. Defaults to now.\n * @param {string} [options.style=\"long\"] - the style of units, must be \"long\", \"short\", or \"narrow\"\n * @param {string|string[]} options.unit - use a specific unit or array of units; if omitted, or an array, the method will pick the best unit. Use an array or one of \"years\", \"quarters\", \"months\", \"weeks\", \"days\", \"hours\", \"minutes\", or \"seconds\"\n * @param {boolean} [options.round=true] - whether to round the numbers in the output.\n * @param {number} [options.padding=0] - padding in milliseconds. This allows you to round up the result if it fits inside the threshold. Don't use in combination with {round: false} because the decimal output will include the padding.\n * @param {string} options.locale - override the locale of this DateTime\n * @param {string} options.numberingSystem - override the numberingSystem of this DateTime. The Intl system may choose not to honor this\n * @example DateTime.now().plus({ days: 1 }).toRelative() //=> \"in 1 day\"\n * @example DateTime.now().setLocale(\"es\").toRelative({ days: 1 }) //=> \"dentro de 1 día\"\n * @example DateTime.now().plus({ days: 1 }).toRelative({ locale: \"fr\" }) //=> \"dans 23 heures\"\n * @example DateTime.now().minus({ days: 2 }).toRelative() //=> \"2 days ago\"\n * @example DateTime.now().minus({ days: 2 }).toRelative({ unit: \"hours\" }) //=> \"48 hours ago\"\n * @example DateTime.now().minus({ hours: 36 }).toRelative({ round: false }) //=> \"1.5 days ago\"\n */\n toRelative(options = {}) {\n if (!this.isValid) return null;\n const base = options.base || DateTime.fromObject({}, { zone: this.zone }),\n padding = options.padding ? (this < base ? -options.padding : options.padding) : 0;\n let units = [\"years\", \"months\", \"days\", \"hours\", \"minutes\", \"seconds\"];\n let unit = options.unit;\n if (Array.isArray(options.unit)) {\n units = options.unit;\n unit = undefined;\n }\n return diffRelative(base, this.plus(padding), {\n ...options,\n numeric: \"always\",\n units,\n unit,\n });\n }\n\n /**\n * Returns a string representation of this date relative to today, such as \"yesterday\" or \"next month\".\n * Only internationalizes on platforms that supports Intl.RelativeTimeFormat.\n * @param {Object} options - options that affect the output\n * @param {DateTime} [options.base=DateTime.now()] - the DateTime to use as the basis to which this time is compared. Defaults to now.\n * @param {string} options.locale - override the locale of this DateTime\n * @param {string} options.unit - use a specific unit; if omitted, the method will pick the unit. Use one of \"years\", \"quarters\", \"months\", \"weeks\", or \"days\"\n * @param {string} options.numberingSystem - override the numberingSystem of this DateTime. The Intl system may choose not to honor this\n * @example DateTime.now().plus({ days: 1 }).toRelativeCalendar() //=> \"tomorrow\"\n * @example DateTime.now().setLocale(\"es\").plus({ days: 1 }).toRelative() //=> \"\"mañana\"\n * @example DateTime.now().plus({ days: 1 }).toRelativeCalendar({ locale: \"fr\" }) //=> \"demain\"\n * @example DateTime.now().minus({ days: 2 }).toRelativeCalendar() //=> \"2 days ago\"\n */\n toRelativeCalendar(options = {}) {\n if (!this.isValid) return null;\n\n return diffRelative(options.base || DateTime.fromObject({}, { zone: this.zone }), this, {\n ...options,\n numeric: \"auto\",\n units: [\"years\", \"months\", \"days\"],\n calendary: true,\n });\n }\n\n /**\n * Return the min of several date times\n * @param {...DateTime} dateTimes - the DateTimes from which to choose the minimum\n * @return {DateTime} the min DateTime, or undefined if called with no argument\n */\n static min(...dateTimes) {\n if (!dateTimes.every(DateTime.isDateTime)) {\n throw new InvalidArgumentError(\"min requires all arguments be DateTimes\");\n }\n return bestBy(dateTimes, (i) => i.valueOf(), Math.min);\n }\n\n /**\n * Return the max of several date times\n * @param {...DateTime} dateTimes - the DateTimes from which to choose the maximum\n * @return {DateTime} the max DateTime, or undefined if called with no argument\n */\n static max(...dateTimes) {\n if (!dateTimes.every(DateTime.isDateTime)) {\n throw new InvalidArgumentError(\"max requires all arguments be DateTimes\");\n }\n return bestBy(dateTimes, (i) => i.valueOf(), Math.max);\n }\n\n // MISC\n\n /**\n * Explain how a string would be parsed by fromFormat()\n * @param {string} text - the string to parse\n * @param {string} fmt - the format the string is expected to be in (see description)\n * @param {Object} options - options taken by fromFormat()\n * @return {Object}\n */\n static fromFormatExplain(text, fmt, options = {}) {\n const { locale = null, numberingSystem = null } = options,\n localeToUse = Locale.fromOpts({\n locale,\n numberingSystem,\n defaultToEN: true,\n });\n return explainFromTokens(localeToUse, text, fmt);\n }\n\n /**\n * @deprecated use fromFormatExplain instead\n */\n static fromStringExplain(text, fmt, options = {}) {\n return DateTime.fromFormatExplain(text, fmt, options);\n }\n\n // FORMAT PRESETS\n\n /**\n * {@link DateTime#toLocaleString} format like 10/14/1983\n * @type {Object}\n */\n static get DATE_SHORT() {\n return Formats.DATE_SHORT;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Oct 14, 1983'\n * @type {Object}\n */\n static get DATE_MED() {\n return Formats.DATE_MED;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Fri, Oct 14, 1983'\n * @type {Object}\n */\n static get DATE_MED_WITH_WEEKDAY() {\n return Formats.DATE_MED_WITH_WEEKDAY;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'October 14, 1983'\n * @type {Object}\n */\n static get DATE_FULL() {\n return Formats.DATE_FULL;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Tuesday, October 14, 1983'\n * @type {Object}\n */\n static get DATE_HUGE() {\n return Formats.DATE_HUGE;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get TIME_SIMPLE() {\n return Formats.TIME_SIMPLE;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30:23 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get TIME_WITH_SECONDS() {\n return Formats.TIME_WITH_SECONDS;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30:23 AM EDT'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get TIME_WITH_SHORT_OFFSET() {\n return Formats.TIME_WITH_SHORT_OFFSET;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30:23 AM Eastern Daylight Time'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get TIME_WITH_LONG_OFFSET() {\n return Formats.TIME_WITH_LONG_OFFSET;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30', always 24-hour.\n * @type {Object}\n */\n static get TIME_24_SIMPLE() {\n return Formats.TIME_24_SIMPLE;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30:23', always 24-hour.\n * @type {Object}\n */\n static get TIME_24_WITH_SECONDS() {\n return Formats.TIME_24_WITH_SECONDS;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30:23 EDT', always 24-hour.\n * @type {Object}\n */\n static get TIME_24_WITH_SHORT_OFFSET() {\n return Formats.TIME_24_WITH_SHORT_OFFSET;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30:23 Eastern Daylight Time', always 24-hour.\n * @type {Object}\n */\n static get TIME_24_WITH_LONG_OFFSET() {\n return Formats.TIME_24_WITH_LONG_OFFSET;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '10/14/1983, 9:30 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_SHORT() {\n return Formats.DATETIME_SHORT;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '10/14/1983, 9:30:33 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_SHORT_WITH_SECONDS() {\n return Formats.DATETIME_SHORT_WITH_SECONDS;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Oct 14, 1983, 9:30 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_MED() {\n return Formats.DATETIME_MED;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Oct 14, 1983, 9:30:33 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_MED_WITH_SECONDS() {\n return Formats.DATETIME_MED_WITH_SECONDS;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Fri, 14 Oct 1983, 9:30 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_MED_WITH_WEEKDAY() {\n return Formats.DATETIME_MED_WITH_WEEKDAY;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'October 14, 1983, 9:30 AM EDT'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_FULL() {\n return Formats.DATETIME_FULL;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'October 14, 1983, 9:30:33 AM EDT'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_FULL_WITH_SECONDS() {\n return Formats.DATETIME_FULL_WITH_SECONDS;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Friday, October 14, 1983, 9:30 AM Eastern Daylight Time'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_HUGE() {\n return Formats.DATETIME_HUGE;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Friday, October 14, 1983, 9:30:33 AM Eastern Daylight Time'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_HUGE_WITH_SECONDS() {\n return Formats.DATETIME_HUGE_WITH_SECONDS;\n }\n}\n\n/**\n * @private\n */\nexport function friendlyDateTime(dateTimeish) {\n if (DateTime.isDateTime(dateTimeish)) {\n return dateTimeish;\n } else if (dateTimeish && dateTimeish.valueOf && isNumber(dateTimeish.valueOf())) {\n return DateTime.fromJSDate(dateTimeish);\n } else if (dateTimeish && typeof dateTimeish === \"object\") {\n return DateTime.fromObject(dateTimeish);\n } else {\n throw new InvalidArgumentError(\n `Unknown datetime argument: ${dateTimeish}, of type ${typeof dateTimeish}`\n );\n }\n}\n"],"names":["LuxonError","Error","InvalidDateTimeError","constructor","reason","super","concat","toMessage","InvalidIntervalError","InvalidDurationError","ConflictingSpecificationError","InvalidUnitError","unit","InvalidArgumentError","ZoneIsAbstractError","n","s","l","DATE_SHORT","year","month","day","DATE_MED","DATE_MED_WITH_WEEKDAY","weekday","DATE_FULL","DATE_HUGE","TIME_SIMPLE","hour","minute","TIME_WITH_SECONDS","second","TIME_WITH_SHORT_OFFSET","timeZoneName","TIME_WITH_LONG_OFFSET","TIME_24_SIMPLE","hourCycle","TIME_24_WITH_SECONDS","TIME_24_WITH_SHORT_OFFSET","TIME_24_WITH_LONG_OFFSET","DATETIME_SHORT","DATETIME_SHORT_WITH_SECONDS","DATETIME_MED","DATETIME_MED_WITH_SECONDS","DATETIME_MED_WITH_WEEKDAY","DATETIME_FULL","DATETIME_FULL_WITH_SECONDS","DATETIME_HUGE","DATETIME_HUGE_WITH_SECONDS","Zone","type","name","ianaName","this","isUniversal","offsetName","ts","opts","formatOffset","format","offset","equals","otherZone","isValid","singleton","SystemZone","instance","Intl","DateTimeFormat","resolvedOptions","timeZone","_ref","locale","parseZoneInfo","Date","getTimezoneOffset","dtfCache","typeToPos","era","ianaZoneCache","IANAZone","create","resetCache","isValidSpecifier","isValidZone","zone","e","zoneName","valid","date","isNaN","NaN","dtf","hour12","adOrBc","formatToParts","formatted","filled","i","length","value","pos","isUndefined","parseInt","partsOffset","replace","parsed","exec","fMonth","fDay","fYear","fadOrBc","fHour","fMinute","fSecond","hackyOffset","Math","abs","asTS","over","objToLocalTS","millisecond","intlLFCache","intlDTCache","getCachedDTF","locString","arguments","undefined","key","JSON","stringify","intlNumCache","intlRelCache","sysLocaleCache","weekInfoCache","listStuff","loc","englishFn","intlFn","mode","listingMode","PolyNumberFormatter","intl","forceSimple","padTo","floor","otherOpts","Object","keys","intlOpts","useGrouping","minimumIntegerDigits","inf","NumberFormat","getCachedINF","fixed","padStart","roundTo","PolyDateFormatter","dt","z","originalZone","gmtOffset","offsetZ","setZone","plus","minutes","map","join","toJSDate","parts","part","PolyRelFormatter","isEnglish","style","hasRelative","rtf","base","cacheKeyOpts","RelativeTimeFormat","getCachedRTF","count","numeric","narrow","units","years","quarters","months","weeks","days","hours","seconds","lastable","indexOf","isDay","isInPast","is","fmtValue","singular","lilUnits","fmtUnit","English","fallbackWeekSettings","firstDay","minimalDays","weekend","Locale","fromOpts","numberingSystem","outputCalendar","weekSettings","defaultToEN","specifiedLocale","Settings","defaultLocale","localeR","numberingSystemR","defaultNumberingSystem","outputCalendarR","defaultOutputCalendar","weekSettingsR","validateWeekSettings","defaultWeekSettings","fromObject","numbering","parsedLocale","parsedNumberingSystem","parsedOutputCalendar","localeStr","xIndex","substring","uIndex","options","selectedStr","smaller","calendar","parseLocaleString","includes","intlConfigString","weekdaysCache","standalone","monthsCache","meridiemCache","eraCache","fastNumbersCached","fastNumbers","startsWith","isActuallyEn","hasNoWeirdness","clone","alts","getOwnPropertyNames","redefaultToEN","redefaultToSystem","formatStr","f","ms","DateTime","utc","push","mapMonths","extract","weekdays","mapWeekdays","meridiems","eras","field","matching","dtFormatter","find","m","toLowerCase","numberFormatter","relFormatter","listFormatter","ListFormat","getCachedLF","getWeekSettings","hasLocaleWeekInfo","data","getWeekInfo","weekInfo","getCachedWeekInfo","getStartOfWeek","getMinDaysInFirstWeek","getWeekendDays","other","FixedOffsetZone","utcInstance","parseSpecifier","r","match","signedOffset","InvalidZone","normalizeZone","input","defaultZone","lowered","isNumber","throwOnInvalid","now","twoDigitCutoffYear","cutoffYear","t","resetCaches","Invalid","explanation","nonLeapLadder","leapLadder","unitOutOfRange","dayOfWeek","d","UTC","setUTCFullYear","getUTCFullYear","js","getUTCDay","computeOrdinal","isLeapYear","uncomputeOrdinal","ordinal","table","month0","findIndex","isoWeekdayToLocal","isoWeekday","startOfWeek","gregorianToWeek","gregObj","minDaysInFirstWeek","weekYear","weekNumber","weeksInWeekYear","timeObject","weekToGregorian","weekData","weekdayOfJan4","yearInDays","daysInYear","gregorianToOrdinal","gregData","ordinalToGregorian","ordinalData","usesLocalWeekValues","obj","localWeekday","localWeekNumber","localWeekYear","hasInvalidGregorianData","validYear","isInteger","validMonth","integerBetween","validDay","daysInMonth","hasInvalidTimeData","validHour","validMinute","validSecond","validMillisecond","o","prototype","bestBy","arr","by","compare","reduce","best","next","pair","hasOwnProperty","prop","call","settings","Array","isArray","some","v","from","thing","bottom","top","padded","parseInteger","string","parseFloating","parseFloat","parseMillis","fraction","number","digits","factor","trunc","round","modMonth","x","floorMod","firstWeekOffset","weekOffset","weekOffsetNext","untruncateYear","offsetFormat","modified","offHourStr","offMinuteStr","offHour","Number","offMin","asNumber","numericValue","normalizeObject","normalizer","normalized","u","sign","RangeError","a","k","pick","monthsLong","monthsShort","monthsNarrow","weekdaysLong","weekdaysShort","weekdaysNarrow","erasLong","erasShort","erasNarrow","stringifyTokens","splits","tokenToString","token","literal","val","macroTokenToFormatOpts","D","Formats","DD","DDD","DDDD","tt","ttt","tttt","T","TT","TTT","TTTT","ff","fff","ffff","F","FF","FFF","FFFF","Formatter","parseFormat","fmt","current","currentFull","bracketed","c","charAt","test","formatOpts","systemLoc","formatWithSystemDefault","formatDateTime","formatDateTimeParts","formatInterval","interval","start","formatRange","end","num","p","formatDateTimeFromString","knownEnglish","useDateTimeFormatter","isOffsetFixed","allowZ","meridiem","maybeMacro","toString","slice","quarter","formatDurationFromString","dur","tokenToField","tokens","realTokens","found","lildur","mapped","get","shiftTo","filter","ianaRegex","combineRegexes","_len","regexes","_key","full","source","RegExp","combineExtractors","_len2","extractors","_key2","ex","mergedVals","mergedZone","cursor","parse","_len3","patterns","_key3","regex","extractor","simpleParse","_len4","_key4","ret","offsetRegex","isoExtendedZone","isoTimeBaseRegex","isoTimeRegex","isoTimeExtensionRegex","extractISOWeekData","extractISOOrdinalData","sqlTimeRegex","sqlTimeExtensionRegex","int","fallback","extractISOTime","milliseconds","extractISOOffset","local","fullOffset","extractIANAZone","isoTimeOnly","isoDuration","extractISODuration","yearStr","monthStr","weekStr","dayStr","hourStr","minuteStr","secondStr","millisecondsStr","hasNegativePrefix","negativeSeconds","maybeNegate","obsOffsets","GMT","EDT","EST","CDT","CST","MDT","MST","PDT","PST","fromStrings","weekdayStr","result","rfc2822","extractRFC2822","obsOffset","milOffset","rfc1123","rfc850","ascii","extractRFC1123Or850","extractASCII","isoYmdWithTimeExtensionRegex","isoWeekWithTimeExtensionRegex","isoOrdinalWithTimeExtensionRegex","isoTimeCombinedRegex","extractISOYmdTimeAndOffset","extractISOWeekTimeAndOffset","extractISOOrdinalDateAndTime","extractISOTimeAndOffset","extractISOTimeOnly","sqlYmdWithTimeExtensionRegex","sqlTimeCombinedRegex","extractISOTimeOffsetAndIANAZone","INVALID","lowOrderMatrix","casualMatrix","daysInYearAccurate","daysInMonthAccurate","accurateMatrix","orderedUnits","reverseUnits","reverse","conf","values","conversionAccuracy","matrix","Duration","durationToMillis","vals","_vals$milliseconds","sum","normalizeValues","reduceRight","previous","previousVal","conv","rollUp","config","accurate","invalid","isLuxonDuration","fromMillis","normalizeUnit","fromDurationLike","durationLike","isDuration","fromISO","text","parseISODuration","fromISOTime","parseISOTimeOnly","week","toFormat","fmtOpts","toHuman","unitDisplay","listStyle","toObject","toISO","toISOTime","millis","toMillis","suppressMilliseconds","suppressSeconds","includePrefix","includeOffset","toJSON","Symbol","for","invalidReason","valueOf","duration","minus","negate","mapUnits","fn","set","reconfigure","as","normalize","rescale","newVals","entries","removeZeroes","shiftToAll","built","accumulated","lastUnit","own","ak","negated","invalidExplanation","v1","v2","Interval","isLuxonInterval","fromDateTimes","builtStart","friendlyDateTime","builtEnd","validateError","validateStartEnd","after","before","split","startIsValid","endIsValid","isInterval","toDuration","startOf","useLocaleWeeks","diff","hasSame","isEmpty","isAfter","dateTime","isBefore","contains","splitAt","dateTimes","sorted","sort","b","results","added","splitBy","idx","divideEqually","numberOfParts","overlaps","abutsStart","abutsEnd","engulfs","intersection","union","merge","intervals","final","item","sofar","xor","currentCount","ends","time","difference","toLocaleString","toISODate","dateFormat","separator","mapEndpoints","mapFn","Info","hasDST","proto","isValidIANAZone","locObj","getMinimumDaysInFirstWeek","getWeekendWeekdays","monthsFormat","weekdaysFormat","features","relative","localeWeek","dayDiff","earlier","later","utcDayStart","toUTC","keepLocalTime","highWater","lowestOrder","differs","differ","highOrderDiffs","remainingMillis","lowerOrderUnits","numberingSystems","arab","arabext","bali","beng","deva","fullwide","gujr","hanidec","khmr","knda","laoo","limb","mlym","mong","mymr","orya","tamldec","telu","thai","tibt","latn","numberingSystemsUTF16","hanidecChars","digitRegex","append","MISSING_FTP","intUnit","post","deser","str","code","charCodeAt","search","min","max","parseDigits","NBSP","String","fromCharCode","spaceOrNBSP","spaceOrNBSPRegExp","fixListRegex","stripInsensitivities","oneOf","strings","startIndex","_ref2","groups","_ref3","h","simple","_ref4","partTypeStyleToTokenVal","short","long","dayperiod","dayPeriod","hour24","dummyDateTimeCache","expandMacroTokens","formatOptsToTokens","maybeExpandMacroToken","explainFromTokens","one","two","three","four","six","oneOrTwo","oneToThree","oneToSix","oneToNine","twoToFour","fourToSix","_ref5","unitate","unitForToken","disqualifyingUnit","regexString","handlers","re","buildRegex","rawMatches","matches","all","matchIndex","specificOffset","Z","q","M","G","y","S","toField","dateTimeFromMatches","df","resolvedOpts","isSpace","actualType","tokenForPart","MAX_DATE","unsupportedZone","possiblyCachedWeekData","possiblyCachedLocalWeekData","localWeekData","inst","old","fixOffset","localTS","tz","utcGuess","o2","o3","tsToObj","getUTCMonth","getUTCDate","getUTCHours","getUTCMinutes","getUTCSeconds","getUTCMilliseconds","objToTS","adjustTime","oPre","millisToAdd","parseDataToDateTime","parsedZone","interpretationZone","toTechFormat","extended","longFormat","extendedZone","defaultUnitValues","defaultWeekUnitValues","defaultOrdinalUnitValues","orderedWeekUnits","orderedOrdinalUnits","normalizeUnitWithLocalWeeks","weeknumber","weeksnumber","weeknumbers","weekyear","weekyears","quickDT","tsNow","offsetProvis","diffRelative","calendary","lastOpts","argList","args","ot","_zone","isLuxonDateTime","fromJSDate","zoneToUse","fromSeconds","containsOrdinal","containsGregorYear","containsGregorMD","containsGregor","definiteWeekDef","useWeekData","defaultValues","objNow","foundFirst","higherOrderInvalid","validWeek","validWeekday","hasInvalidWeekData","validOrdinal","hasInvalidOrdinalData","gregorian","tsFinal","offsetFinal","parseISODate","fromRFC2822","trim","preprocessRFC2822","parseRFC2822Date","fromHTTP","parseHTTPDate","fromFormat","localeToUse","parseFromTokens","fromString","fromSQL","parseSQL","isDateTime","parseFormatForOpts","localeOpts","tokenList","expandFormat","ceil","isWeekend","monthShort","monthLong","weekdayShort","weekdayLong","offsetNameShort","offsetNameLong","isInDST","getPossibleOffsets","dayMs","minuteMs","oEarlier","oLater","o1","ts1","ts2","c1","c2","isInLeapYear","weeksInLocalWeekYear","resolvedLocaleOptions","toLocal","keepCalendarTime","newTS","offsetGuess","asObj","setLocale","settingWeekStuff","mixed","normalizedUnit","endOf","toLocaleParts","ext","toISOWeekDate","toRFC2822","toHTTP","toSQLDate","toSQLTime","includeZone","includeOffsetSpace","toSQL","toSeconds","toUnixInteger","toBSON","includeConfig","otherDateTime","durOpts","otherIsLater","diffed","diffNow","until","inputMs","adjustedToZone","toRelative","padding","toRelativeCalendar","every","fromFormatExplain","fromStringExplain","dateTimeish"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/241.f827f4d6.chunk.js","mappings":"8HAKA,MAAMA,UAAmBC,OAKlB,MAAMC,UAA6BF,EACxCG,WAAAA,CAAYC,GACVC,MAAM,qBAADC,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,OAAO8Y,CACT,CAMA,mCAAW7Y,GACT,OAAO6Y,CACT,CAMA,yBAAW5Y,GACT,OAAO4Y,CACT,CAMA,sCAAW3Y,GACT,OAAO2Y,CACT,CAMA,uBAAW1Y,GACT,OAAO0Y,CACT,CAMA,oCAAWzY,GACT,OAAOyY,CACT,CAMA,oCAAWxY,GACT,OAAOwY,CACT,CAMA,wBAAWvY,GACT,OAAOuY,CACT,CAMA,qCAAWtY,GACT,OAAOsY,CACT,CAMA,wBAAWrY,GACT,OAAOqY,CACT,CAMA,qCAAWpY,GACT,OAAOoY,CACT,EAMK,SAAS4O,GAAiB2U,GAC/B,GAAI1uB,GAASyqB,WAAWiE,GACtB,OAAOA,EACF,GAAIA,GAAeA,EAAYvW,SAAW1V,GAASisB,EAAYvW,WACpE,OAAOnY,GAASuoB,WAAWmG,GACtB,GAAIA,GAAsC,kBAAhBA,EAC/B,OAAO1uB,GAASlC,WAAW4wB,GAE3B,MAAM,IAAI99B,EAAqB,8BAADP,OACEq+B,EAAW,cAAAr+B,cAAoBq+B,GAGnE,C","sources":["../node_modules/luxon/src/errors.js","../node_modules/luxon/src/impl/formats.js","../node_modules/luxon/src/zone.js","../node_modules/luxon/src/zones/systemZone.js","../node_modules/luxon/src/zones/IANAZone.js","../node_modules/luxon/src/impl/locale.js","../node_modules/luxon/src/impl/english.js","../node_modules/luxon/src/zones/fixedOffsetZone.js","../node_modules/luxon/src/zones/invalidZone.js","../node_modules/luxon/src/impl/zoneUtil.js","../node_modules/luxon/src/impl/util.js","../node_modules/luxon/src/settings.js","../node_modules/luxon/src/impl/invalid.js","../node_modules/luxon/src/impl/conversions.js","../node_modules/luxon/src/impl/formatter.js","../node_modules/luxon/src/impl/regexParser.js","../node_modules/luxon/src/duration.js","../node_modules/luxon/src/interval.js","../node_modules/luxon/src/info.js","../node_modules/luxon/src/impl/diff.js","../node_modules/luxon/src/impl/digits.js","../node_modules/luxon/src/impl/tokenParser.js","../node_modules/luxon/src/datetime.js"],"sourcesContent":["// these aren't really private, but nor are they really useful to document\n\n/**\n * @private\n */\nclass LuxonError extends Error {}\n\n/**\n * @private\n */\nexport class InvalidDateTimeError extends LuxonError {\n constructor(reason) {\n super(`Invalid DateTime: ${reason.toMessage()}`);\n }\n}\n\n/**\n * @private\n */\nexport class InvalidIntervalError extends LuxonError {\n constructor(reason) {\n super(`Invalid Interval: ${reason.toMessage()}`);\n }\n}\n\n/**\n * @private\n */\nexport class InvalidDurationError extends LuxonError {\n constructor(reason) {\n super(`Invalid Duration: ${reason.toMessage()}`);\n }\n}\n\n/**\n * @private\n */\nexport class ConflictingSpecificationError extends LuxonError {}\n\n/**\n * @private\n */\nexport class InvalidUnitError extends LuxonError {\n constructor(unit) {\n super(`Invalid unit ${unit}`);\n }\n}\n\n/**\n * @private\n */\nexport class InvalidArgumentError extends LuxonError {}\n\n/**\n * @private\n */\nexport class ZoneIsAbstractError extends LuxonError {\n constructor() {\n super(\"Zone is an abstract class\");\n }\n}\n","/**\n * @private\n */\n\nconst n = \"numeric\",\n s = \"short\",\n l = \"long\";\n\nexport const DATE_SHORT = {\n year: n,\n month: n,\n day: n,\n};\n\nexport const DATE_MED = {\n year: n,\n month: s,\n day: n,\n};\n\nexport const DATE_MED_WITH_WEEKDAY = {\n year: n,\n month: s,\n day: n,\n weekday: s,\n};\n\nexport const DATE_FULL = {\n year: n,\n month: l,\n day: n,\n};\n\nexport const DATE_HUGE = {\n year: n,\n month: l,\n day: n,\n weekday: l,\n};\n\nexport const TIME_SIMPLE = {\n hour: n,\n minute: n,\n};\n\nexport const TIME_WITH_SECONDS = {\n hour: n,\n minute: n,\n second: n,\n};\n\nexport const TIME_WITH_SHORT_OFFSET = {\n hour: n,\n minute: n,\n second: n,\n timeZoneName: s,\n};\n\nexport const TIME_WITH_LONG_OFFSET = {\n hour: n,\n minute: n,\n second: n,\n timeZoneName: l,\n};\n\nexport const TIME_24_SIMPLE = {\n hour: n,\n minute: n,\n hourCycle: \"h23\",\n};\n\nexport const TIME_24_WITH_SECONDS = {\n hour: n,\n minute: n,\n second: n,\n hourCycle: \"h23\",\n};\n\nexport const TIME_24_WITH_SHORT_OFFSET = {\n hour: n,\n minute: n,\n second: n,\n hourCycle: \"h23\",\n timeZoneName: s,\n};\n\nexport const TIME_24_WITH_LONG_OFFSET = {\n hour: n,\n minute: n,\n second: n,\n hourCycle: \"h23\",\n timeZoneName: l,\n};\n\nexport const DATETIME_SHORT = {\n year: n,\n month: n,\n day: n,\n hour: n,\n minute: n,\n};\n\nexport const DATETIME_SHORT_WITH_SECONDS = {\n year: n,\n month: n,\n day: n,\n hour: n,\n minute: n,\n second: n,\n};\n\nexport const DATETIME_MED = {\n year: n,\n month: s,\n day: n,\n hour: n,\n minute: n,\n};\n\nexport const DATETIME_MED_WITH_SECONDS = {\n year: n,\n month: s,\n day: n,\n hour: n,\n minute: n,\n second: n,\n};\n\nexport const DATETIME_MED_WITH_WEEKDAY = {\n year: n,\n month: s,\n day: n,\n weekday: s,\n hour: n,\n minute: n,\n};\n\nexport const DATETIME_FULL = {\n year: n,\n month: l,\n day: n,\n hour: n,\n minute: n,\n timeZoneName: s,\n};\n\nexport const DATETIME_FULL_WITH_SECONDS = {\n year: n,\n month: l,\n day: n,\n hour: n,\n minute: n,\n second: n,\n timeZoneName: s,\n};\n\nexport const DATETIME_HUGE = {\n year: n,\n month: l,\n day: n,\n weekday: l,\n hour: n,\n minute: n,\n timeZoneName: l,\n};\n\nexport const DATETIME_HUGE_WITH_SECONDS = {\n year: n,\n month: l,\n day: n,\n weekday: l,\n hour: n,\n minute: n,\n second: n,\n timeZoneName: l,\n};\n","import { ZoneIsAbstractError } from \"./errors.js\";\n\n/**\n * @interface\n */\nexport default class Zone {\n /**\n * The type of zone\n * @abstract\n * @type {string}\n */\n get type() {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * The name of this zone.\n * @abstract\n * @type {string}\n */\n get name() {\n throw new ZoneIsAbstractError();\n }\n\n get ianaName() {\n return this.name;\n }\n\n /**\n * Returns whether the offset is known to be fixed for the whole year.\n * @abstract\n * @type {boolean}\n */\n get isUniversal() {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Returns the offset's common name (such as EST) at the specified timestamp\n * @abstract\n * @param {number} ts - Epoch milliseconds for which to get the name\n * @param {Object} opts - Options to affect the format\n * @param {string} opts.format - What style of offset to return. Accepts 'long' or 'short'.\n * @param {string} opts.locale - What locale to return the offset name in.\n * @return {string}\n */\n offsetName(ts, opts) {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Returns the offset's value as a string\n * @abstract\n * @param {number} ts - Epoch milliseconds for which to get the offset\n * @param {string} format - What style of offset to return.\n * Accepts 'narrow', 'short', or 'techie'. Returning '+6', '+06:00', or '+0600' respectively\n * @return {string}\n */\n formatOffset(ts, format) {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Return the offset in minutes for this zone at the specified timestamp.\n * @abstract\n * @param {number} ts - Epoch milliseconds for which to compute the offset\n * @return {number}\n */\n offset(ts) {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Return whether this Zone is equal to another zone\n * @abstract\n * @param {Zone} otherZone - the zone to compare\n * @return {boolean}\n */\n equals(otherZone) {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Return whether this Zone is valid.\n * @abstract\n * @type {boolean}\n */\n get isValid() {\n throw new ZoneIsAbstractError();\n }\n}\n","import { formatOffset, parseZoneInfo } from \"../impl/util.js\";\nimport Zone from \"../zone.js\";\n\nlet singleton = null;\n\n/**\n * Represents the local zone for this JavaScript environment.\n * @implements {Zone}\n */\nexport default class SystemZone extends Zone {\n /**\n * Get a singleton instance of the local zone\n * @return {SystemZone}\n */\n static get instance() {\n if (singleton === null) {\n singleton = new SystemZone();\n }\n return singleton;\n }\n\n /** @override **/\n get type() {\n return \"system\";\n }\n\n /** @override **/\n get name() {\n return new Intl.DateTimeFormat().resolvedOptions().timeZone;\n }\n\n /** @override **/\n get isUniversal() {\n return false;\n }\n\n /** @override **/\n offsetName(ts, { format, locale }) {\n return parseZoneInfo(ts, format, locale);\n }\n\n /** @override **/\n formatOffset(ts, format) {\n return formatOffset(this.offset(ts), format);\n }\n\n /** @override **/\n offset(ts) {\n return -new Date(ts).getTimezoneOffset();\n }\n\n /** @override **/\n equals(otherZone) {\n return otherZone.type === \"system\";\n }\n\n /** @override **/\n get isValid() {\n return true;\n }\n}\n","import { formatOffset, parseZoneInfo, isUndefined, objToLocalTS } from \"../impl/util.js\";\nimport Zone from \"../zone.js\";\n\nlet dtfCache = {};\nfunction makeDTF(zone) {\n if (!dtfCache[zone]) {\n dtfCache[zone] = new Intl.DateTimeFormat(\"en-US\", {\n hour12: false,\n timeZone: zone,\n year: \"numeric\",\n month: \"2-digit\",\n day: \"2-digit\",\n hour: \"2-digit\",\n minute: \"2-digit\",\n second: \"2-digit\",\n era: \"short\",\n });\n }\n return dtfCache[zone];\n}\n\nconst typeToPos = {\n year: 0,\n month: 1,\n day: 2,\n era: 3,\n hour: 4,\n minute: 5,\n second: 6,\n};\n\nfunction hackyOffset(dtf, date) {\n const formatted = dtf.format(date).replace(/\\u200E/g, \"\"),\n parsed = /(\\d+)\\/(\\d+)\\/(\\d+) (AD|BC),? (\\d+):(\\d+):(\\d+)/.exec(formatted),\n [, fMonth, fDay, fYear, fadOrBc, fHour, fMinute, fSecond] = parsed;\n return [fYear, fMonth, fDay, fadOrBc, fHour, fMinute, fSecond];\n}\n\nfunction partsOffset(dtf, date) {\n const formatted = dtf.formatToParts(date);\n const filled = [];\n for (let i = 0; i < formatted.length; i++) {\n const { type, value } = formatted[i];\n const pos = typeToPos[type];\n\n if (type === \"era\") {\n filled[pos] = value;\n } else if (!isUndefined(pos)) {\n filled[pos] = parseInt(value, 10);\n }\n }\n return filled;\n}\n\nlet ianaZoneCache = {};\n/**\n * A zone identified by an IANA identifier, like America/New_York\n * @implements {Zone}\n */\nexport default class IANAZone extends Zone {\n /**\n * @param {string} name - Zone name\n * @return {IANAZone}\n */\n static create(name) {\n if (!ianaZoneCache[name]) {\n ianaZoneCache[name] = new IANAZone(name);\n }\n return ianaZoneCache[name];\n }\n\n /**\n * Reset local caches. Should only be necessary in testing scenarios.\n * @return {void}\n */\n static resetCache() {\n ianaZoneCache = {};\n dtfCache = {};\n }\n\n /**\n * Returns whether the provided string is a valid specifier. This only checks the string's format, not that the specifier identifies a known zone; see isValidZone for that.\n * @param {string} s - The string to check validity on\n * @example IANAZone.isValidSpecifier(\"America/New_York\") //=> true\n * @example IANAZone.isValidSpecifier(\"Sport~~blorp\") //=> false\n * @deprecated This method returns false for some valid IANA names. Use isValidZone instead.\n * @return {boolean}\n */\n static isValidSpecifier(s) {\n return this.isValidZone(s);\n }\n\n /**\n * Returns whether the provided string identifies a real zone\n * @param {string} zone - The string to check\n * @example IANAZone.isValidZone(\"America/New_York\") //=> true\n * @example IANAZone.isValidZone(\"Fantasia/Castle\") //=> false\n * @example IANAZone.isValidZone(\"Sport~~blorp\") //=> false\n * @return {boolean}\n */\n static isValidZone(zone) {\n if (!zone) {\n return false;\n }\n try {\n new Intl.DateTimeFormat(\"en-US\", { timeZone: zone }).format();\n return true;\n } catch (e) {\n return false;\n }\n }\n\n constructor(name) {\n super();\n /** @private **/\n this.zoneName = name;\n /** @private **/\n this.valid = IANAZone.isValidZone(name);\n }\n\n /** @override **/\n get type() {\n return \"iana\";\n }\n\n /** @override **/\n get name() {\n return this.zoneName;\n }\n\n /** @override **/\n get isUniversal() {\n return false;\n }\n\n /** @override **/\n offsetName(ts, { format, locale }) {\n return parseZoneInfo(ts, format, locale, this.name);\n }\n\n /** @override **/\n formatOffset(ts, format) {\n return formatOffset(this.offset(ts), format);\n }\n\n /** @override **/\n offset(ts) {\n const date = new Date(ts);\n\n if (isNaN(date)) return NaN;\n\n const dtf = makeDTF(this.name);\n let [year, month, day, adOrBc, hour, minute, second] = dtf.formatToParts\n ? partsOffset(dtf, date)\n : hackyOffset(dtf, date);\n\n if (adOrBc === \"BC\") {\n year = -Math.abs(year) + 1;\n }\n\n // because we're using hour12 and https://bugs.chromium.org/p/chromium/issues/detail?id=1025564&can=2&q=%2224%3A00%22%20datetimeformat\n const adjustedHour = hour === 24 ? 0 : hour;\n\n const asUTC = objToLocalTS({\n year,\n month,\n day,\n hour: adjustedHour,\n minute,\n second,\n millisecond: 0,\n });\n\n let asTS = +date;\n const over = asTS % 1000;\n asTS -= over >= 0 ? over : 1000 + over;\n return (asUTC - asTS) / (60 * 1000);\n }\n\n /** @override **/\n equals(otherZone) {\n return otherZone.type === \"iana\" && otherZone.name === this.name;\n }\n\n /** @override **/\n get isValid() {\n return this.valid;\n }\n}\n","import { hasLocaleWeekInfo, hasRelative, padStart, roundTo, validateWeekSettings } from \"./util.js\";\nimport * as English from \"./english.js\";\nimport Settings from \"../settings.js\";\nimport DateTime from \"../datetime.js\";\nimport IANAZone from \"../zones/IANAZone.js\";\n\n// todo - remap caching\n\nlet intlLFCache = {};\nfunction getCachedLF(locString, opts = {}) {\n const key = JSON.stringify([locString, opts]);\n let dtf = intlLFCache[key];\n if (!dtf) {\n dtf = new Intl.ListFormat(locString, opts);\n intlLFCache[key] = dtf;\n }\n return dtf;\n}\n\nlet intlDTCache = {};\nfunction getCachedDTF(locString, opts = {}) {\n const key = JSON.stringify([locString, opts]);\n let dtf = intlDTCache[key];\n if (!dtf) {\n dtf = new Intl.DateTimeFormat(locString, opts);\n intlDTCache[key] = dtf;\n }\n return dtf;\n}\n\nlet intlNumCache = {};\nfunction getCachedINF(locString, opts = {}) {\n const key = JSON.stringify([locString, opts]);\n let inf = intlNumCache[key];\n if (!inf) {\n inf = new Intl.NumberFormat(locString, opts);\n intlNumCache[key] = inf;\n }\n return inf;\n}\n\nlet intlRelCache = {};\nfunction getCachedRTF(locString, opts = {}) {\n const { base, ...cacheKeyOpts } = opts; // exclude `base` from the options\n const key = JSON.stringify([locString, cacheKeyOpts]);\n let inf = intlRelCache[key];\n if (!inf) {\n inf = new Intl.RelativeTimeFormat(locString, opts);\n intlRelCache[key] = inf;\n }\n return inf;\n}\n\nlet sysLocaleCache = null;\nfunction systemLocale() {\n if (sysLocaleCache) {\n return sysLocaleCache;\n } else {\n sysLocaleCache = new Intl.DateTimeFormat().resolvedOptions().locale;\n return sysLocaleCache;\n }\n}\n\nlet weekInfoCache = {};\nfunction getCachedWeekInfo(locString) {\n let data = weekInfoCache[locString];\n if (!data) {\n const locale = new Intl.Locale(locString);\n // browsers currently implement this as a property, but spec says it should be a getter function\n data = \"getWeekInfo\" in locale ? locale.getWeekInfo() : locale.weekInfo;\n weekInfoCache[locString] = data;\n }\n return data;\n}\n\nfunction parseLocaleString(localeStr) {\n // I really want to avoid writing a BCP 47 parser\n // see, e.g. https://github.com/wooorm/bcp-47\n // Instead, we'll do this:\n\n // a) if the string has no -u extensions, just leave it alone\n // b) if it does, use Intl to resolve everything\n // c) if Intl fails, try again without the -u\n\n // private subtags and unicode subtags have ordering requirements,\n // and we're not properly parsing this, so just strip out the\n // private ones if they exist.\n const xIndex = localeStr.indexOf(\"-x-\");\n if (xIndex !== -1) {\n localeStr = localeStr.substring(0, xIndex);\n }\n\n const uIndex = localeStr.indexOf(\"-u-\");\n if (uIndex === -1) {\n return [localeStr];\n } else {\n let options;\n let selectedStr;\n try {\n options = getCachedDTF(localeStr).resolvedOptions();\n selectedStr = localeStr;\n } catch (e) {\n const smaller = localeStr.substring(0, uIndex);\n options = getCachedDTF(smaller).resolvedOptions();\n selectedStr = smaller;\n }\n\n const { numberingSystem, calendar } = options;\n return [selectedStr, numberingSystem, calendar];\n }\n}\n\nfunction intlConfigString(localeStr, numberingSystem, outputCalendar) {\n if (outputCalendar || numberingSystem) {\n if (!localeStr.includes(\"-u-\")) {\n localeStr += \"-u\";\n }\n\n if (outputCalendar) {\n localeStr += `-ca-${outputCalendar}`;\n }\n\n if (numberingSystem) {\n localeStr += `-nu-${numberingSystem}`;\n }\n return localeStr;\n } else {\n return localeStr;\n }\n}\n\nfunction mapMonths(f) {\n const ms = [];\n for (let i = 1; i <= 12; i++) {\n const dt = DateTime.utc(2009, i, 1);\n ms.push(f(dt));\n }\n return ms;\n}\n\nfunction mapWeekdays(f) {\n const ms = [];\n for (let i = 1; i <= 7; i++) {\n const dt = DateTime.utc(2016, 11, 13 + i);\n ms.push(f(dt));\n }\n return ms;\n}\n\nfunction listStuff(loc, length, englishFn, intlFn) {\n const mode = loc.listingMode();\n\n if (mode === \"error\") {\n return null;\n } else if (mode === \"en\") {\n return englishFn(length);\n } else {\n return intlFn(length);\n }\n}\n\nfunction supportsFastNumbers(loc) {\n if (loc.numberingSystem && loc.numberingSystem !== \"latn\") {\n return false;\n } else {\n return (\n loc.numberingSystem === \"latn\" ||\n !loc.locale ||\n loc.locale.startsWith(\"en\") ||\n new Intl.DateTimeFormat(loc.intl).resolvedOptions().numberingSystem === \"latn\"\n );\n }\n}\n\n/**\n * @private\n */\n\nclass PolyNumberFormatter {\n constructor(intl, forceSimple, opts) {\n this.padTo = opts.padTo || 0;\n this.floor = opts.floor || false;\n\n const { padTo, floor, ...otherOpts } = opts;\n\n if (!forceSimple || Object.keys(otherOpts).length > 0) {\n const intlOpts = { useGrouping: false, ...opts };\n if (opts.padTo > 0) intlOpts.minimumIntegerDigits = opts.padTo;\n this.inf = getCachedINF(intl, intlOpts);\n }\n }\n\n format(i) {\n if (this.inf) {\n const fixed = this.floor ? Math.floor(i) : i;\n return this.inf.format(fixed);\n } else {\n // to match the browser's numberformatter defaults\n const fixed = this.floor ? Math.floor(i) : roundTo(i, 3);\n return padStart(fixed, this.padTo);\n }\n }\n}\n\n/**\n * @private\n */\n\nclass PolyDateFormatter {\n constructor(dt, intl, opts) {\n this.opts = opts;\n this.originalZone = undefined;\n\n let z = undefined;\n if (this.opts.timeZone) {\n // Don't apply any workarounds if a timeZone is explicitly provided in opts\n this.dt = dt;\n } else if (dt.zone.type === \"fixed\") {\n // UTC-8 or Etc/UTC-8 are not part of tzdata, only Etc/GMT+8 and the like.\n // That is why fixed-offset TZ is set to that unless it is:\n // 1. Representing offset 0 when UTC is used to maintain previous behavior and does not become GMT.\n // 2. Unsupported by the browser:\n // - some do not support Etc/\n // - < Etc/GMT-14, > Etc/GMT+12, and 30-minute or 45-minute offsets are not part of tzdata\n const gmtOffset = -1 * (dt.offset / 60);\n const offsetZ = gmtOffset >= 0 ? `Etc/GMT+${gmtOffset}` : `Etc/GMT${gmtOffset}`;\n if (dt.offset !== 0 && IANAZone.create(offsetZ).valid) {\n z = offsetZ;\n this.dt = dt;\n } else {\n // Not all fixed-offset zones like Etc/+4:30 are present in tzdata so\n // we manually apply the offset and substitute the zone as needed.\n z = \"UTC\";\n this.dt = dt.offset === 0 ? dt : dt.setZone(\"UTC\").plus({ minutes: dt.offset });\n this.originalZone = dt.zone;\n }\n } else if (dt.zone.type === \"system\") {\n this.dt = dt;\n } else if (dt.zone.type === \"iana\") {\n this.dt = dt;\n z = dt.zone.name;\n } else {\n // Custom zones can have any offset / offsetName so we just manually\n // apply the offset and substitute the zone as needed.\n z = \"UTC\";\n this.dt = dt.setZone(\"UTC\").plus({ minutes: dt.offset });\n this.originalZone = dt.zone;\n }\n\n const intlOpts = { ...this.opts };\n intlOpts.timeZone = intlOpts.timeZone || z;\n this.dtf = getCachedDTF(intl, intlOpts);\n }\n\n format() {\n if (this.originalZone) {\n // If we have to substitute in the actual zone name, we have to use\n // formatToParts so that the timezone can be replaced.\n return this.formatToParts()\n .map(({ value }) => value)\n .join(\"\");\n }\n return this.dtf.format(this.dt.toJSDate());\n }\n\n formatToParts() {\n const parts = this.dtf.formatToParts(this.dt.toJSDate());\n if (this.originalZone) {\n return parts.map((part) => {\n if (part.type === \"timeZoneName\") {\n const offsetName = this.originalZone.offsetName(this.dt.ts, {\n locale: this.dt.locale,\n format: this.opts.timeZoneName,\n });\n return {\n ...part,\n value: offsetName,\n };\n } else {\n return part;\n }\n });\n }\n return parts;\n }\n\n resolvedOptions() {\n return this.dtf.resolvedOptions();\n }\n}\n\n/**\n * @private\n */\nclass PolyRelFormatter {\n constructor(intl, isEnglish, opts) {\n this.opts = { style: \"long\", ...opts };\n if (!isEnglish && hasRelative()) {\n this.rtf = getCachedRTF(intl, opts);\n }\n }\n\n format(count, unit) {\n if (this.rtf) {\n return this.rtf.format(count, unit);\n } else {\n return English.formatRelativeTime(unit, count, this.opts.numeric, this.opts.style !== \"long\");\n }\n }\n\n formatToParts(count, unit) {\n if (this.rtf) {\n return this.rtf.formatToParts(count, unit);\n } else {\n return [];\n }\n }\n}\n\nconst fallbackWeekSettings = {\n firstDay: 1,\n minimalDays: 4,\n weekend: [6, 7],\n};\n\n/**\n * @private\n */\n\nexport default class Locale {\n static fromOpts(opts) {\n return Locale.create(\n opts.locale,\n opts.numberingSystem,\n opts.outputCalendar,\n opts.weekSettings,\n opts.defaultToEN\n );\n }\n\n static create(locale, numberingSystem, outputCalendar, weekSettings, defaultToEN = false) {\n const specifiedLocale = locale || Settings.defaultLocale;\n // the system locale is useful for human readable strings but annoying for parsing/formatting known formats\n const localeR = specifiedLocale || (defaultToEN ? \"en-US\" : systemLocale());\n const numberingSystemR = numberingSystem || Settings.defaultNumberingSystem;\n const outputCalendarR = outputCalendar || Settings.defaultOutputCalendar;\n const weekSettingsR = validateWeekSettings(weekSettings) || Settings.defaultWeekSettings;\n return new Locale(localeR, numberingSystemR, outputCalendarR, weekSettingsR, specifiedLocale);\n }\n\n static resetCache() {\n sysLocaleCache = null;\n intlDTCache = {};\n intlNumCache = {};\n intlRelCache = {};\n }\n\n static fromObject({ locale, numberingSystem, outputCalendar, weekSettings } = {}) {\n return Locale.create(locale, numberingSystem, outputCalendar, weekSettings);\n }\n\n constructor(locale, numbering, outputCalendar, weekSettings, specifiedLocale) {\n const [parsedLocale, parsedNumberingSystem, parsedOutputCalendar] = parseLocaleString(locale);\n\n this.locale = parsedLocale;\n this.numberingSystem = numbering || parsedNumberingSystem || null;\n this.outputCalendar = outputCalendar || parsedOutputCalendar || null;\n this.weekSettings = weekSettings;\n this.intl = intlConfigString(this.locale, this.numberingSystem, this.outputCalendar);\n\n this.weekdaysCache = { format: {}, standalone: {} };\n this.monthsCache = { format: {}, standalone: {} };\n this.meridiemCache = null;\n this.eraCache = {};\n\n this.specifiedLocale = specifiedLocale;\n this.fastNumbersCached = null;\n }\n\n get fastNumbers() {\n if (this.fastNumbersCached == null) {\n this.fastNumbersCached = supportsFastNumbers(this);\n }\n\n return this.fastNumbersCached;\n }\n\n listingMode() {\n const isActuallyEn = this.isEnglish();\n const hasNoWeirdness =\n (this.numberingSystem === null || this.numberingSystem === \"latn\") &&\n (this.outputCalendar === null || this.outputCalendar === \"gregory\");\n return isActuallyEn && hasNoWeirdness ? \"en\" : \"intl\";\n }\n\n clone(alts) {\n if (!alts || Object.getOwnPropertyNames(alts).length === 0) {\n return this;\n } else {\n return Locale.create(\n alts.locale || this.specifiedLocale,\n alts.numberingSystem || this.numberingSystem,\n alts.outputCalendar || this.outputCalendar,\n validateWeekSettings(alts.weekSettings) || this.weekSettings,\n alts.defaultToEN || false\n );\n }\n }\n\n redefaultToEN(alts = {}) {\n return this.clone({ ...alts, defaultToEN: true });\n }\n\n redefaultToSystem(alts = {}) {\n return this.clone({ ...alts, defaultToEN: false });\n }\n\n months(length, format = false) {\n return listStuff(this, length, English.months, () => {\n const intl = format ? { month: length, day: \"numeric\" } : { month: length },\n formatStr = format ? \"format\" : \"standalone\";\n if (!this.monthsCache[formatStr][length]) {\n this.monthsCache[formatStr][length] = mapMonths((dt) => this.extract(dt, intl, \"month\"));\n }\n return this.monthsCache[formatStr][length];\n });\n }\n\n weekdays(length, format = false) {\n return listStuff(this, length, English.weekdays, () => {\n const intl = format\n ? { weekday: length, year: \"numeric\", month: \"long\", day: \"numeric\" }\n : { weekday: length },\n formatStr = format ? \"format\" : \"standalone\";\n if (!this.weekdaysCache[formatStr][length]) {\n this.weekdaysCache[formatStr][length] = mapWeekdays((dt) =>\n this.extract(dt, intl, \"weekday\")\n );\n }\n return this.weekdaysCache[formatStr][length];\n });\n }\n\n meridiems() {\n return listStuff(\n this,\n undefined,\n () => English.meridiems,\n () => {\n // In theory there could be aribitrary day periods. We're gonna assume there are exactly two\n // for AM and PM. This is probably wrong, but it's makes parsing way easier.\n if (!this.meridiemCache) {\n const intl = { hour: \"numeric\", hourCycle: \"h12\" };\n this.meridiemCache = [DateTime.utc(2016, 11, 13, 9), DateTime.utc(2016, 11, 13, 19)].map(\n (dt) => this.extract(dt, intl, \"dayperiod\")\n );\n }\n\n return this.meridiemCache;\n }\n );\n }\n\n eras(length) {\n return listStuff(this, length, English.eras, () => {\n const intl = { era: length };\n\n // This is problematic. Different calendars are going to define eras totally differently. What I need is the minimum set of dates\n // to definitely enumerate them.\n if (!this.eraCache[length]) {\n this.eraCache[length] = [DateTime.utc(-40, 1, 1), DateTime.utc(2017, 1, 1)].map((dt) =>\n this.extract(dt, intl, \"era\")\n );\n }\n\n return this.eraCache[length];\n });\n }\n\n extract(dt, intlOpts, field) {\n const df = this.dtFormatter(dt, intlOpts),\n results = df.formatToParts(),\n matching = results.find((m) => m.type.toLowerCase() === field);\n return matching ? matching.value : null;\n }\n\n numberFormatter(opts = {}) {\n // this forcesimple option is never used (the only caller short-circuits on it, but it seems safer to leave)\n // (in contrast, the rest of the condition is used heavily)\n return new PolyNumberFormatter(this.intl, opts.forceSimple || this.fastNumbers, opts);\n }\n\n dtFormatter(dt, intlOpts = {}) {\n return new PolyDateFormatter(dt, this.intl, intlOpts);\n }\n\n relFormatter(opts = {}) {\n return new PolyRelFormatter(this.intl, this.isEnglish(), opts);\n }\n\n listFormatter(opts = {}) {\n return getCachedLF(this.intl, opts);\n }\n\n isEnglish() {\n return (\n this.locale === \"en\" ||\n this.locale.toLowerCase() === \"en-us\" ||\n new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith(\"en-us\")\n );\n }\n\n getWeekSettings() {\n if (this.weekSettings) {\n return this.weekSettings;\n } else if (!hasLocaleWeekInfo()) {\n return fallbackWeekSettings;\n } else {\n return getCachedWeekInfo(this.locale);\n }\n }\n\n getStartOfWeek() {\n return this.getWeekSettings().firstDay;\n }\n\n getMinDaysInFirstWeek() {\n return this.getWeekSettings().minimalDays;\n }\n\n getWeekendDays() {\n return this.getWeekSettings().weekend;\n }\n\n equals(other) {\n return (\n this.locale === other.locale &&\n this.numberingSystem === other.numberingSystem &&\n this.outputCalendar === other.outputCalendar\n );\n }\n}\n","import * as Formats from \"./formats.js\";\nimport { pick } from \"./util.js\";\n\nfunction stringify(obj) {\n return JSON.stringify(obj, Object.keys(obj).sort());\n}\n\n/**\n * @private\n */\n\nexport const monthsLong = [\n \"January\",\n \"February\",\n \"March\",\n \"April\",\n \"May\",\n \"June\",\n \"July\",\n \"August\",\n \"September\",\n \"October\",\n \"November\",\n \"December\",\n];\n\nexport const monthsShort = [\n \"Jan\",\n \"Feb\",\n \"Mar\",\n \"Apr\",\n \"May\",\n \"Jun\",\n \"Jul\",\n \"Aug\",\n \"Sep\",\n \"Oct\",\n \"Nov\",\n \"Dec\",\n];\n\nexport const monthsNarrow = [\"J\", \"F\", \"M\", \"A\", \"M\", \"J\", \"J\", \"A\", \"S\", \"O\", \"N\", \"D\"];\n\nexport function months(length) {\n switch (length) {\n case \"narrow\":\n return [...monthsNarrow];\n case \"short\":\n return [...monthsShort];\n case \"long\":\n return [...monthsLong];\n case \"numeric\":\n return [\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"11\", \"12\"];\n case \"2-digit\":\n return [\"01\", \"02\", \"03\", \"04\", \"05\", \"06\", \"07\", \"08\", \"09\", \"10\", \"11\", \"12\"];\n default:\n return null;\n }\n}\n\nexport const weekdaysLong = [\n \"Monday\",\n \"Tuesday\",\n \"Wednesday\",\n \"Thursday\",\n \"Friday\",\n \"Saturday\",\n \"Sunday\",\n];\n\nexport const weekdaysShort = [\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"];\n\nexport const weekdaysNarrow = [\"M\", \"T\", \"W\", \"T\", \"F\", \"S\", \"S\"];\n\nexport function weekdays(length) {\n switch (length) {\n case \"narrow\":\n return [...weekdaysNarrow];\n case \"short\":\n return [...weekdaysShort];\n case \"long\":\n return [...weekdaysLong];\n case \"numeric\":\n return [\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\"];\n default:\n return null;\n }\n}\n\nexport const meridiems = [\"AM\", \"PM\"];\n\nexport const erasLong = [\"Before Christ\", \"Anno Domini\"];\n\nexport const erasShort = [\"BC\", \"AD\"];\n\nexport const erasNarrow = [\"B\", \"A\"];\n\nexport function eras(length) {\n switch (length) {\n case \"narrow\":\n return [...erasNarrow];\n case \"short\":\n return [...erasShort];\n case \"long\":\n return [...erasLong];\n default:\n return null;\n }\n}\n\nexport function meridiemForDateTime(dt) {\n return meridiems[dt.hour < 12 ? 0 : 1];\n}\n\nexport function weekdayForDateTime(dt, length) {\n return weekdays(length)[dt.weekday - 1];\n}\n\nexport function monthForDateTime(dt, length) {\n return months(length)[dt.month - 1];\n}\n\nexport function eraForDateTime(dt, length) {\n return eras(length)[dt.year < 0 ? 0 : 1];\n}\n\nexport function formatRelativeTime(unit, count, numeric = \"always\", narrow = false) {\n const units = {\n years: [\"year\", \"yr.\"],\n quarters: [\"quarter\", \"qtr.\"],\n months: [\"month\", \"mo.\"],\n weeks: [\"week\", \"wk.\"],\n days: [\"day\", \"day\", \"days\"],\n hours: [\"hour\", \"hr.\"],\n minutes: [\"minute\", \"min.\"],\n seconds: [\"second\", \"sec.\"],\n };\n\n const lastable = [\"hours\", \"minutes\", \"seconds\"].indexOf(unit) === -1;\n\n if (numeric === \"auto\" && lastable) {\n const isDay = unit === \"days\";\n switch (count) {\n case 1:\n return isDay ? \"tomorrow\" : `next ${units[unit][0]}`;\n case -1:\n return isDay ? \"yesterday\" : `last ${units[unit][0]}`;\n case 0:\n return isDay ? \"today\" : `this ${units[unit][0]}`;\n default: // fall through\n }\n }\n\n const isInPast = Object.is(count, -0) || count < 0,\n fmtValue = Math.abs(count),\n singular = fmtValue === 1,\n lilUnits = units[unit],\n fmtUnit = narrow\n ? singular\n ? lilUnits[1]\n : lilUnits[2] || lilUnits[1]\n : singular\n ? units[unit][0]\n : unit;\n return isInPast ? `${fmtValue} ${fmtUnit} ago` : `in ${fmtValue} ${fmtUnit}`;\n}\n\nexport function formatString(knownFormat) {\n // these all have the offsets removed because we don't have access to them\n // without all the intl stuff this is backfilling\n const filtered = pick(knownFormat, [\n \"weekday\",\n \"era\",\n \"year\",\n \"month\",\n \"day\",\n \"hour\",\n \"minute\",\n \"second\",\n \"timeZoneName\",\n \"hourCycle\",\n ]),\n key = stringify(filtered),\n dateTimeHuge = \"EEEE, LLLL d, yyyy, h:mm a\";\n switch (key) {\n case stringify(Formats.DATE_SHORT):\n return \"M/d/yyyy\";\n case stringify(Formats.DATE_MED):\n return \"LLL d, yyyy\";\n case stringify(Formats.DATE_MED_WITH_WEEKDAY):\n return \"EEE, LLL d, yyyy\";\n case stringify(Formats.DATE_FULL):\n return \"LLLL d, yyyy\";\n case stringify(Formats.DATE_HUGE):\n return \"EEEE, LLLL d, yyyy\";\n case stringify(Formats.TIME_SIMPLE):\n return \"h:mm a\";\n case stringify(Formats.TIME_WITH_SECONDS):\n return \"h:mm:ss a\";\n case stringify(Formats.TIME_WITH_SHORT_OFFSET):\n return \"h:mm a\";\n case stringify(Formats.TIME_WITH_LONG_OFFSET):\n return \"h:mm a\";\n case stringify(Formats.TIME_24_SIMPLE):\n return \"HH:mm\";\n case stringify(Formats.TIME_24_WITH_SECONDS):\n return \"HH:mm:ss\";\n case stringify(Formats.TIME_24_WITH_SHORT_OFFSET):\n return \"HH:mm\";\n case stringify(Formats.TIME_24_WITH_LONG_OFFSET):\n return \"HH:mm\";\n case stringify(Formats.DATETIME_SHORT):\n return \"M/d/yyyy, h:mm a\";\n case stringify(Formats.DATETIME_MED):\n return \"LLL d, yyyy, h:mm a\";\n case stringify(Formats.DATETIME_FULL):\n return \"LLLL d, yyyy, h:mm a\";\n case stringify(Formats.DATETIME_HUGE):\n return dateTimeHuge;\n case stringify(Formats.DATETIME_SHORT_WITH_SECONDS):\n return \"M/d/yyyy, h:mm:ss a\";\n case stringify(Formats.DATETIME_MED_WITH_SECONDS):\n return \"LLL d, yyyy, h:mm:ss a\";\n case stringify(Formats.DATETIME_MED_WITH_WEEKDAY):\n return \"EEE, d LLL yyyy, h:mm a\";\n case stringify(Formats.DATETIME_FULL_WITH_SECONDS):\n return \"LLLL d, yyyy, h:mm:ss a\";\n case stringify(Formats.DATETIME_HUGE_WITH_SECONDS):\n return \"EEEE, LLLL d, yyyy, h:mm:ss a\";\n default:\n return dateTimeHuge;\n }\n}\n","import { formatOffset, signedOffset } from \"../impl/util.js\";\nimport Zone from \"../zone.js\";\n\nlet singleton = null;\n\n/**\n * A zone with a fixed offset (meaning no DST)\n * @implements {Zone}\n */\nexport default class FixedOffsetZone extends Zone {\n /**\n * Get a singleton instance of UTC\n * @return {FixedOffsetZone}\n */\n static get utcInstance() {\n if (singleton === null) {\n singleton = new FixedOffsetZone(0);\n }\n return singleton;\n }\n\n /**\n * Get an instance with a specified offset\n * @param {number} offset - The offset in minutes\n * @return {FixedOffsetZone}\n */\n static instance(offset) {\n return offset === 0 ? FixedOffsetZone.utcInstance : new FixedOffsetZone(offset);\n }\n\n /**\n * Get an instance of FixedOffsetZone from a UTC offset string, like \"UTC+6\"\n * @param {string} s - The offset string to parse\n * @example FixedOffsetZone.parseSpecifier(\"UTC+6\")\n * @example FixedOffsetZone.parseSpecifier(\"UTC+06\")\n * @example FixedOffsetZone.parseSpecifier(\"UTC-6:00\")\n * @return {FixedOffsetZone}\n */\n static parseSpecifier(s) {\n if (s) {\n const r = s.match(/^utc(?:([+-]\\d{1,2})(?::(\\d{2}))?)?$/i);\n if (r) {\n return new FixedOffsetZone(signedOffset(r[1], r[2]));\n }\n }\n return null;\n }\n\n constructor(offset) {\n super();\n /** @private **/\n this.fixed = offset;\n }\n\n /** @override **/\n get type() {\n return \"fixed\";\n }\n\n /** @override **/\n get name() {\n return this.fixed === 0 ? \"UTC\" : `UTC${formatOffset(this.fixed, \"narrow\")}`;\n }\n\n get ianaName() {\n if (this.fixed === 0) {\n return \"Etc/UTC\";\n } else {\n return `Etc/GMT${formatOffset(-this.fixed, \"narrow\")}`;\n }\n }\n\n /** @override **/\n offsetName() {\n return this.name;\n }\n\n /** @override **/\n formatOffset(ts, format) {\n return formatOffset(this.fixed, format);\n }\n\n /** @override **/\n get isUniversal() {\n return true;\n }\n\n /** @override **/\n offset() {\n return this.fixed;\n }\n\n /** @override **/\n equals(otherZone) {\n return otherZone.type === \"fixed\" && otherZone.fixed === this.fixed;\n }\n\n /** @override **/\n get isValid() {\n return true;\n }\n}\n","import Zone from \"../zone.js\";\n\n/**\n * A zone that failed to parse. You should never need to instantiate this.\n * @implements {Zone}\n */\nexport default class InvalidZone extends Zone {\n constructor(zoneName) {\n super();\n /** @private */\n this.zoneName = zoneName;\n }\n\n /** @override **/\n get type() {\n return \"invalid\";\n }\n\n /** @override **/\n get name() {\n return this.zoneName;\n }\n\n /** @override **/\n get isUniversal() {\n return false;\n }\n\n /** @override **/\n offsetName() {\n return null;\n }\n\n /** @override **/\n formatOffset() {\n return \"\";\n }\n\n /** @override **/\n offset() {\n return NaN;\n }\n\n /** @override **/\n equals() {\n return false;\n }\n\n /** @override **/\n get isValid() {\n return false;\n }\n}\n","/**\n * @private\n */\n\nimport Zone from \"../zone.js\";\nimport IANAZone from \"../zones/IANAZone.js\";\nimport FixedOffsetZone from \"../zones/fixedOffsetZone.js\";\nimport InvalidZone from \"../zones/invalidZone.js\";\n\nimport { isUndefined, isString, isNumber } from \"./util.js\";\nimport SystemZone from \"../zones/systemZone.js\";\n\nexport function normalizeZone(input, defaultZone) {\n let offset;\n if (isUndefined(input) || input === null) {\n return defaultZone;\n } else if (input instanceof Zone) {\n return input;\n } else if (isString(input)) {\n const lowered = input.toLowerCase();\n if (lowered === \"default\") return defaultZone;\n else if (lowered === \"local\" || lowered === \"system\") return SystemZone.instance;\n else if (lowered === \"utc\" || lowered === \"gmt\") return FixedOffsetZone.utcInstance;\n else return FixedOffsetZone.parseSpecifier(lowered) || IANAZone.create(input);\n } else if (isNumber(input)) {\n return FixedOffsetZone.instance(input);\n } else if (typeof input === \"object\" && \"offset\" in input && typeof input.offset === \"function\") {\n // This is dumb, but the instanceof check above doesn't seem to really work\n // so we're duck checking it\n return input;\n } else {\n return new InvalidZone(input);\n }\n}\n","/*\n This is just a junk drawer, containing anything used across multiple classes.\n Because Luxon is small(ish), this should stay small and we won't worry about splitting\n it up into, say, parsingUtil.js and basicUtil.js and so on. But they are divided up by feature area.\n*/\n\nimport { InvalidArgumentError } from \"../errors.js\";\nimport Settings from \"../settings.js\";\nimport { dayOfWeek, isoWeekdayToLocal } from \"./conversions.js\";\n\n/**\n * @private\n */\n\n// TYPES\n\nexport function isUndefined(o) {\n return typeof o === \"undefined\";\n}\n\nexport function isNumber(o) {\n return typeof o === \"number\";\n}\n\nexport function isInteger(o) {\n return typeof o === \"number\" && o % 1 === 0;\n}\n\nexport function isString(o) {\n return typeof o === \"string\";\n}\n\nexport function isDate(o) {\n return Object.prototype.toString.call(o) === \"[object Date]\";\n}\n\n// CAPABILITIES\n\nexport function hasRelative() {\n try {\n return typeof Intl !== \"undefined\" && !!Intl.RelativeTimeFormat;\n } catch (e) {\n return false;\n }\n}\n\nexport function hasLocaleWeekInfo() {\n try {\n return (\n typeof Intl !== \"undefined\" &&\n !!Intl.Locale &&\n (\"weekInfo\" in Intl.Locale.prototype || \"getWeekInfo\" in Intl.Locale.prototype)\n );\n } catch (e) {\n return false;\n }\n}\n\n// OBJECTS AND ARRAYS\n\nexport function maybeArray(thing) {\n return Array.isArray(thing) ? thing : [thing];\n}\n\nexport function bestBy(arr, by, compare) {\n if (arr.length === 0) {\n return undefined;\n }\n return arr.reduce((best, next) => {\n const pair = [by(next), next];\n if (!best) {\n return pair;\n } else if (compare(best[0], pair[0]) === best[0]) {\n return best;\n } else {\n return pair;\n }\n }, null)[1];\n}\n\nexport function pick(obj, keys) {\n return keys.reduce((a, k) => {\n a[k] = obj[k];\n return a;\n }, {});\n}\n\nexport function hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n\nexport function validateWeekSettings(settings) {\n if (settings == null) {\n return null;\n } else if (typeof settings !== \"object\") {\n throw new InvalidArgumentError(\"Week settings must be an object\");\n } else {\n if (\n !integerBetween(settings.firstDay, 1, 7) ||\n !integerBetween(settings.minimalDays, 1, 7) ||\n !Array.isArray(settings.weekend) ||\n settings.weekend.some((v) => !integerBetween(v, 1, 7))\n ) {\n throw new InvalidArgumentError(\"Invalid week settings\");\n }\n return {\n firstDay: settings.firstDay,\n minimalDays: settings.minimalDays,\n weekend: Array.from(settings.weekend),\n };\n }\n}\n\n// NUMBERS AND STRINGS\n\nexport function integerBetween(thing, bottom, top) {\n return isInteger(thing) && thing >= bottom && thing <= top;\n}\n\n// x % n but takes the sign of n instead of x\nexport function floorMod(x, n) {\n return x - n * Math.floor(x / n);\n}\n\nexport function padStart(input, n = 2) {\n const isNeg = input < 0;\n let padded;\n if (isNeg) {\n padded = \"-\" + (\"\" + -input).padStart(n, \"0\");\n } else {\n padded = (\"\" + input).padStart(n, \"0\");\n }\n return padded;\n}\n\nexport function parseInteger(string) {\n if (isUndefined(string) || string === null || string === \"\") {\n return undefined;\n } else {\n return parseInt(string, 10);\n }\n}\n\nexport function parseFloating(string) {\n if (isUndefined(string) || string === null || string === \"\") {\n return undefined;\n } else {\n return parseFloat(string);\n }\n}\n\nexport function parseMillis(fraction) {\n // Return undefined (instead of 0) in these cases, where fraction is not set\n if (isUndefined(fraction) || fraction === null || fraction === \"\") {\n return undefined;\n } else {\n const f = parseFloat(\"0.\" + fraction) * 1000;\n return Math.floor(f);\n }\n}\n\nexport function roundTo(number, digits, towardZero = false) {\n const factor = 10 ** digits,\n rounder = towardZero ? Math.trunc : Math.round;\n return rounder(number * factor) / factor;\n}\n\n// DATE BASICS\n\nexport function isLeapYear(year) {\n return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);\n}\n\nexport function daysInYear(year) {\n return isLeapYear(year) ? 366 : 365;\n}\n\nexport function daysInMonth(year, month) {\n const modMonth = floorMod(month - 1, 12) + 1,\n modYear = year + (month - modMonth) / 12;\n\n if (modMonth === 2) {\n return isLeapYear(modYear) ? 29 : 28;\n } else {\n return [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][modMonth - 1];\n }\n}\n\n// convert a calendar object to a local timestamp (epoch, but with the offset baked in)\nexport function objToLocalTS(obj) {\n let d = Date.UTC(\n obj.year,\n obj.month - 1,\n obj.day,\n obj.hour,\n obj.minute,\n obj.second,\n obj.millisecond\n );\n\n // for legacy reasons, years between 0 and 99 are interpreted as 19XX; revert that\n if (obj.year < 100 && obj.year >= 0) {\n d = new Date(d);\n // set the month and day again, this is necessary because year 2000 is a leap year, but year 100 is not\n // so if obj.year is in 99, but obj.day makes it roll over into year 100,\n // the calculations done by Date.UTC are using year 2000 - which is incorrect\n d.setUTCFullYear(obj.year, obj.month - 1, obj.day);\n }\n return +d;\n}\n\n// adapted from moment.js: https://github.com/moment/moment/blob/000ac1800e620f770f4eb31b5ae908f6167b0ab2/src/lib/units/week-calendar-utils.js\nfunction firstWeekOffset(year, minDaysInFirstWeek, startOfWeek) {\n const fwdlw = isoWeekdayToLocal(dayOfWeek(year, 1, minDaysInFirstWeek), startOfWeek);\n return -fwdlw + minDaysInFirstWeek - 1;\n}\n\nexport function weeksInWeekYear(weekYear, minDaysInFirstWeek = 4, startOfWeek = 1) {\n const weekOffset = firstWeekOffset(weekYear, minDaysInFirstWeek, startOfWeek);\n const weekOffsetNext = firstWeekOffset(weekYear + 1, minDaysInFirstWeek, startOfWeek);\n return (daysInYear(weekYear) - weekOffset + weekOffsetNext) / 7;\n}\n\nexport function untruncateYear(year) {\n if (year > 99) {\n return year;\n } else return year > Settings.twoDigitCutoffYear ? 1900 + year : 2000 + year;\n}\n\n// PARSING\n\nexport function parseZoneInfo(ts, offsetFormat, locale, timeZone = null) {\n const date = new Date(ts),\n intlOpts = {\n hourCycle: \"h23\",\n year: \"numeric\",\n month: \"2-digit\",\n day: \"2-digit\",\n hour: \"2-digit\",\n minute: \"2-digit\",\n };\n\n if (timeZone) {\n intlOpts.timeZone = timeZone;\n }\n\n const modified = { timeZoneName: offsetFormat, ...intlOpts };\n\n const parsed = new Intl.DateTimeFormat(locale, modified)\n .formatToParts(date)\n .find((m) => m.type.toLowerCase() === \"timezonename\");\n return parsed ? parsed.value : null;\n}\n\n// signedOffset('-5', '30') -> -330\nexport function signedOffset(offHourStr, offMinuteStr) {\n let offHour = parseInt(offHourStr, 10);\n\n // don't || this because we want to preserve -0\n if (Number.isNaN(offHour)) {\n offHour = 0;\n }\n\n const offMin = parseInt(offMinuteStr, 10) || 0,\n offMinSigned = offHour < 0 || Object.is(offHour, -0) ? -offMin : offMin;\n return offHour * 60 + offMinSigned;\n}\n\n// COERCION\n\nexport function asNumber(value) {\n const numericValue = Number(value);\n if (typeof value === \"boolean\" || value === \"\" || Number.isNaN(numericValue))\n throw new InvalidArgumentError(`Invalid unit value ${value}`);\n return numericValue;\n}\n\nexport function normalizeObject(obj, normalizer) {\n const normalized = {};\n for (const u in obj) {\n if (hasOwnProperty(obj, u)) {\n const v = obj[u];\n if (v === undefined || v === null) continue;\n normalized[normalizer(u)] = asNumber(v);\n }\n }\n return normalized;\n}\n\nexport function formatOffset(offset, format) {\n const hours = Math.trunc(Math.abs(offset / 60)),\n minutes = Math.trunc(Math.abs(offset % 60)),\n sign = offset >= 0 ? \"+\" : \"-\";\n\n switch (format) {\n case \"short\":\n return `${sign}${padStart(hours, 2)}:${padStart(minutes, 2)}`;\n case \"narrow\":\n return `${sign}${hours}${minutes > 0 ? `:${minutes}` : \"\"}`;\n case \"techie\":\n return `${sign}${padStart(hours, 2)}${padStart(minutes, 2)}`;\n default:\n throw new RangeError(`Value format ${format} is out of range for property format`);\n }\n}\n\nexport function timeObject(obj) {\n return pick(obj, [\"hour\", \"minute\", \"second\", \"millisecond\"]);\n}\n","import SystemZone from \"./zones/systemZone.js\";\nimport IANAZone from \"./zones/IANAZone.js\";\nimport Locale from \"./impl/locale.js\";\n\nimport { normalizeZone } from \"./impl/zoneUtil.js\";\nimport { validateWeekSettings } from \"./impl/util.js\";\n\nlet now = () => Date.now(),\n defaultZone = \"system\",\n defaultLocale = null,\n defaultNumberingSystem = null,\n defaultOutputCalendar = null,\n twoDigitCutoffYear = 60,\n throwOnInvalid,\n defaultWeekSettings = null;\n\n/**\n * Settings contains static getters and setters that control Luxon's overall behavior. Luxon is a simple library with few options, but the ones it does have live here.\n */\nexport default class Settings {\n /**\n * Get the callback for returning the current timestamp.\n * @type {function}\n */\n static get now() {\n return now;\n }\n\n /**\n * Set the callback for returning the current timestamp.\n * The function should return a number, which will be interpreted as an Epoch millisecond count\n * @type {function}\n * @example Settings.now = () => Date.now() + 3000 // pretend it is 3 seconds in the future\n * @example Settings.now = () => 0 // always pretend it's Jan 1, 1970 at midnight in UTC time\n */\n static set now(n) {\n now = n;\n }\n\n /**\n * Set the default time zone to create DateTimes in. Does not affect existing instances.\n * Use the value \"system\" to reset this value to the system's time zone.\n * @type {string}\n */\n static set defaultZone(zone) {\n defaultZone = zone;\n }\n\n /**\n * Get the default time zone object currently used to create DateTimes. Does not affect existing instances.\n * The default value is the system's time zone (the one set on the machine that runs this code).\n * @type {Zone}\n */\n static get defaultZone() {\n return normalizeZone(defaultZone, SystemZone.instance);\n }\n\n /**\n * Get the default locale to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static get defaultLocale() {\n return defaultLocale;\n }\n\n /**\n * Set the default locale to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static set defaultLocale(locale) {\n defaultLocale = locale;\n }\n\n /**\n * Get the default numbering system to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static get defaultNumberingSystem() {\n return defaultNumberingSystem;\n }\n\n /**\n * Set the default numbering system to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static set defaultNumberingSystem(numberingSystem) {\n defaultNumberingSystem = numberingSystem;\n }\n\n /**\n * Get the default output calendar to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static get defaultOutputCalendar() {\n return defaultOutputCalendar;\n }\n\n /**\n * Set the default output calendar to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static set defaultOutputCalendar(outputCalendar) {\n defaultOutputCalendar = outputCalendar;\n }\n\n /**\n * @typedef {Object} WeekSettings\n * @property {number} firstDay\n * @property {number} minimalDays\n * @property {number[]} weekend\n */\n\n /**\n * @return {WeekSettings|null}\n */\n static get defaultWeekSettings() {\n return defaultWeekSettings;\n }\n\n /**\n * Allows overriding the default locale week settings, i.e. the start of the week, the weekend and\n * how many days are required in the first week of a year.\n * Does not affect existing instances.\n *\n * @param {WeekSettings|null} weekSettings\n */\n static set defaultWeekSettings(weekSettings) {\n defaultWeekSettings = validateWeekSettings(weekSettings);\n }\n\n /**\n * Get the cutoff year after which a string encoding a year as two digits is interpreted to occur in the current century.\n * @type {number}\n */\n static get twoDigitCutoffYear() {\n return twoDigitCutoffYear;\n }\n\n /**\n * Set the cutoff year after which a string encoding a year as two digits is interpreted to occur in the current century.\n * @type {number}\n * @example Settings.twoDigitCutoffYear = 0 // cut-off year is 0, so all 'yy' are interpreted as current century\n * @example Settings.twoDigitCutoffYear = 50 // '49' -> 1949; '50' -> 2050\n * @example Settings.twoDigitCutoffYear = 1950 // interpreted as 50\n * @example Settings.twoDigitCutoffYear = 2050 // ALSO interpreted as 50\n */\n static set twoDigitCutoffYear(cutoffYear) {\n twoDigitCutoffYear = cutoffYear % 100;\n }\n\n /**\n * Get whether Luxon will throw when it encounters invalid DateTimes, Durations, or Intervals\n * @type {boolean}\n */\n static get throwOnInvalid() {\n return throwOnInvalid;\n }\n\n /**\n * Set whether Luxon will throw when it encounters invalid DateTimes, Durations, or Intervals\n * @type {boolean}\n */\n static set throwOnInvalid(t) {\n throwOnInvalid = t;\n }\n\n /**\n * Reset Luxon's global caches. Should only be necessary in testing scenarios.\n * @return {void}\n */\n static resetCaches() {\n Locale.resetCache();\n IANAZone.resetCache();\n }\n}\n","export default class Invalid {\n constructor(reason, explanation) {\n this.reason = reason;\n this.explanation = explanation;\n }\n\n toMessage() {\n if (this.explanation) {\n return `${this.reason}: ${this.explanation}`;\n } else {\n return this.reason;\n }\n }\n}\n","import {\n integerBetween,\n isLeapYear,\n timeObject,\n daysInYear,\n daysInMonth,\n weeksInWeekYear,\n isInteger,\n isUndefined,\n} from \"./util.js\";\nimport Invalid from \"./invalid.js\";\nimport { ConflictingSpecificationError } from \"../errors.js\";\n\nconst nonLeapLadder = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334],\n leapLadder = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335];\n\nfunction unitOutOfRange(unit, value) {\n return new Invalid(\n \"unit out of range\",\n `you specified ${value} (of type ${typeof value}) as a ${unit}, which is invalid`\n );\n}\n\nexport function dayOfWeek(year, month, day) {\n const d = new Date(Date.UTC(year, month - 1, day));\n\n if (year < 100 && year >= 0) {\n d.setUTCFullYear(d.getUTCFullYear() - 1900);\n }\n\n const js = d.getUTCDay();\n\n return js === 0 ? 7 : js;\n}\n\nfunction computeOrdinal(year, month, day) {\n return day + (isLeapYear(year) ? leapLadder : nonLeapLadder)[month - 1];\n}\n\nfunction uncomputeOrdinal(year, ordinal) {\n const table = isLeapYear(year) ? leapLadder : nonLeapLadder,\n month0 = table.findIndex((i) => i < ordinal),\n day = ordinal - table[month0];\n return { month: month0 + 1, day };\n}\n\nexport function isoWeekdayToLocal(isoWeekday, startOfWeek) {\n return ((isoWeekday - startOfWeek + 7) % 7) + 1;\n}\n\n/**\n * @private\n */\n\nexport function gregorianToWeek(gregObj, minDaysInFirstWeek = 4, startOfWeek = 1) {\n const { year, month, day } = gregObj,\n ordinal = computeOrdinal(year, month, day),\n weekday = isoWeekdayToLocal(dayOfWeek(year, month, day), startOfWeek);\n\n let weekNumber = Math.floor((ordinal - weekday + 14 - minDaysInFirstWeek) / 7),\n weekYear;\n\n if (weekNumber < 1) {\n weekYear = year - 1;\n weekNumber = weeksInWeekYear(weekYear, minDaysInFirstWeek, startOfWeek);\n } else if (weekNumber > weeksInWeekYear(year, minDaysInFirstWeek, startOfWeek)) {\n weekYear = year + 1;\n weekNumber = 1;\n } else {\n weekYear = year;\n }\n\n return { weekYear, weekNumber, weekday, ...timeObject(gregObj) };\n}\n\nexport function weekToGregorian(weekData, minDaysInFirstWeek = 4, startOfWeek = 1) {\n const { weekYear, weekNumber, weekday } = weekData,\n weekdayOfJan4 = isoWeekdayToLocal(dayOfWeek(weekYear, 1, minDaysInFirstWeek), startOfWeek),\n yearInDays = daysInYear(weekYear);\n\n let ordinal = weekNumber * 7 + weekday - weekdayOfJan4 - 7 + minDaysInFirstWeek,\n year;\n\n if (ordinal < 1) {\n year = weekYear - 1;\n ordinal += daysInYear(year);\n } else if (ordinal > yearInDays) {\n year = weekYear + 1;\n ordinal -= daysInYear(weekYear);\n } else {\n year = weekYear;\n }\n\n const { month, day } = uncomputeOrdinal(year, ordinal);\n return { year, month, day, ...timeObject(weekData) };\n}\n\nexport function gregorianToOrdinal(gregData) {\n const { year, month, day } = gregData;\n const ordinal = computeOrdinal(year, month, day);\n return { year, ordinal, ...timeObject(gregData) };\n}\n\nexport function ordinalToGregorian(ordinalData) {\n const { year, ordinal } = ordinalData;\n const { month, day } = uncomputeOrdinal(year, ordinal);\n return { year, month, day, ...timeObject(ordinalData) };\n}\n\n/**\n * Check if local week units like localWeekday are used in obj.\n * If so, validates that they are not mixed with ISO week units and then copies them to the normal week unit properties.\n * Modifies obj in-place!\n * @param obj the object values\n */\nexport function usesLocalWeekValues(obj, loc) {\n const hasLocaleWeekData =\n !isUndefined(obj.localWeekday) ||\n !isUndefined(obj.localWeekNumber) ||\n !isUndefined(obj.localWeekYear);\n if (hasLocaleWeekData) {\n const hasIsoWeekData =\n !isUndefined(obj.weekday) || !isUndefined(obj.weekNumber) || !isUndefined(obj.weekYear);\n\n if (hasIsoWeekData) {\n throw new ConflictingSpecificationError(\n \"Cannot mix locale-based week fields with ISO-based week fields\"\n );\n }\n if (!isUndefined(obj.localWeekday)) obj.weekday = obj.localWeekday;\n if (!isUndefined(obj.localWeekNumber)) obj.weekNumber = obj.localWeekNumber;\n if (!isUndefined(obj.localWeekYear)) obj.weekYear = obj.localWeekYear;\n delete obj.localWeekday;\n delete obj.localWeekNumber;\n delete obj.localWeekYear;\n return {\n minDaysInFirstWeek: loc.getMinDaysInFirstWeek(),\n startOfWeek: loc.getStartOfWeek(),\n };\n } else {\n return { minDaysInFirstWeek: 4, startOfWeek: 1 };\n }\n}\n\nexport function hasInvalidWeekData(obj, minDaysInFirstWeek = 4, startOfWeek = 1) {\n const validYear = isInteger(obj.weekYear),\n validWeek = integerBetween(\n obj.weekNumber,\n 1,\n weeksInWeekYear(obj.weekYear, minDaysInFirstWeek, startOfWeek)\n ),\n validWeekday = integerBetween(obj.weekday, 1, 7);\n\n if (!validYear) {\n return unitOutOfRange(\"weekYear\", obj.weekYear);\n } else if (!validWeek) {\n return unitOutOfRange(\"week\", obj.weekNumber);\n } else if (!validWeekday) {\n return unitOutOfRange(\"weekday\", obj.weekday);\n } else return false;\n}\n\nexport function hasInvalidOrdinalData(obj) {\n const validYear = isInteger(obj.year),\n validOrdinal = integerBetween(obj.ordinal, 1, daysInYear(obj.year));\n\n if (!validYear) {\n return unitOutOfRange(\"year\", obj.year);\n } else if (!validOrdinal) {\n return unitOutOfRange(\"ordinal\", obj.ordinal);\n } else return false;\n}\n\nexport function hasInvalidGregorianData(obj) {\n const validYear = isInteger(obj.year),\n validMonth = integerBetween(obj.month, 1, 12),\n validDay = integerBetween(obj.day, 1, daysInMonth(obj.year, obj.month));\n\n if (!validYear) {\n return unitOutOfRange(\"year\", obj.year);\n } else if (!validMonth) {\n return unitOutOfRange(\"month\", obj.month);\n } else if (!validDay) {\n return unitOutOfRange(\"day\", obj.day);\n } else return false;\n}\n\nexport function hasInvalidTimeData(obj) {\n const { hour, minute, second, millisecond } = obj;\n const validHour =\n integerBetween(hour, 0, 23) ||\n (hour === 24 && minute === 0 && second === 0 && millisecond === 0),\n validMinute = integerBetween(minute, 0, 59),\n validSecond = integerBetween(second, 0, 59),\n validMillisecond = integerBetween(millisecond, 0, 999);\n\n if (!validHour) {\n return unitOutOfRange(\"hour\", hour);\n } else if (!validMinute) {\n return unitOutOfRange(\"minute\", minute);\n } else if (!validSecond) {\n return unitOutOfRange(\"second\", second);\n } else if (!validMillisecond) {\n return unitOutOfRange(\"millisecond\", millisecond);\n } else return false;\n}\n","import * as English from \"./english.js\";\nimport * as Formats from \"./formats.js\";\nimport { padStart } from \"./util.js\";\n\nfunction stringifyTokens(splits, tokenToString) {\n let s = \"\";\n for (const token of splits) {\n if (token.literal) {\n s += token.val;\n } else {\n s += tokenToString(token.val);\n }\n }\n return s;\n}\n\nconst macroTokenToFormatOpts = {\n D: Formats.DATE_SHORT,\n DD: Formats.DATE_MED,\n DDD: Formats.DATE_FULL,\n DDDD: Formats.DATE_HUGE,\n t: Formats.TIME_SIMPLE,\n tt: Formats.TIME_WITH_SECONDS,\n ttt: Formats.TIME_WITH_SHORT_OFFSET,\n tttt: Formats.TIME_WITH_LONG_OFFSET,\n T: Formats.TIME_24_SIMPLE,\n TT: Formats.TIME_24_WITH_SECONDS,\n TTT: Formats.TIME_24_WITH_SHORT_OFFSET,\n TTTT: Formats.TIME_24_WITH_LONG_OFFSET,\n f: Formats.DATETIME_SHORT,\n ff: Formats.DATETIME_MED,\n fff: Formats.DATETIME_FULL,\n ffff: Formats.DATETIME_HUGE,\n F: Formats.DATETIME_SHORT_WITH_SECONDS,\n FF: Formats.DATETIME_MED_WITH_SECONDS,\n FFF: Formats.DATETIME_FULL_WITH_SECONDS,\n FFFF: Formats.DATETIME_HUGE_WITH_SECONDS,\n};\n\n/**\n * @private\n */\n\nexport default class Formatter {\n static create(locale, opts = {}) {\n return new Formatter(locale, opts);\n }\n\n static parseFormat(fmt) {\n // white-space is always considered a literal in user-provided formats\n // the \" \" token has a special meaning (see unitForToken)\n\n let current = null,\n currentFull = \"\",\n bracketed = false;\n const splits = [];\n for (let i = 0; i < fmt.length; i++) {\n const c = fmt.charAt(i);\n if (c === \"'\") {\n if (currentFull.length > 0) {\n splits.push({ literal: bracketed || /^\\s+$/.test(currentFull), val: currentFull });\n }\n current = null;\n currentFull = \"\";\n bracketed = !bracketed;\n } else if (bracketed) {\n currentFull += c;\n } else if (c === current) {\n currentFull += c;\n } else {\n if (currentFull.length > 0) {\n splits.push({ literal: /^\\s+$/.test(currentFull), val: currentFull });\n }\n currentFull = c;\n current = c;\n }\n }\n\n if (currentFull.length > 0) {\n splits.push({ literal: bracketed || /^\\s+$/.test(currentFull), val: currentFull });\n }\n\n return splits;\n }\n\n static macroTokenToFormatOpts(token) {\n return macroTokenToFormatOpts[token];\n }\n\n constructor(locale, formatOpts) {\n this.opts = formatOpts;\n this.loc = locale;\n this.systemLoc = null;\n }\n\n formatWithSystemDefault(dt, opts) {\n if (this.systemLoc === null) {\n this.systemLoc = this.loc.redefaultToSystem();\n }\n const df = this.systemLoc.dtFormatter(dt, { ...this.opts, ...opts });\n return df.format();\n }\n\n dtFormatter(dt, opts = {}) {\n return this.loc.dtFormatter(dt, { ...this.opts, ...opts });\n }\n\n formatDateTime(dt, opts) {\n return this.dtFormatter(dt, opts).format();\n }\n\n formatDateTimeParts(dt, opts) {\n return this.dtFormatter(dt, opts).formatToParts();\n }\n\n formatInterval(interval, opts) {\n const df = this.dtFormatter(interval.start, opts);\n return df.dtf.formatRange(interval.start.toJSDate(), interval.end.toJSDate());\n }\n\n resolvedOptions(dt, opts) {\n return this.dtFormatter(dt, opts).resolvedOptions();\n }\n\n num(n, p = 0) {\n // we get some perf out of doing this here, annoyingly\n if (this.opts.forceSimple) {\n return padStart(n, p);\n }\n\n const opts = { ...this.opts };\n\n if (p > 0) {\n opts.padTo = p;\n }\n\n return this.loc.numberFormatter(opts).format(n);\n }\n\n formatDateTimeFromString(dt, fmt) {\n const knownEnglish = this.loc.listingMode() === \"en\",\n useDateTimeFormatter = this.loc.outputCalendar && this.loc.outputCalendar !== \"gregory\",\n string = (opts, extract) => this.loc.extract(dt, opts, extract),\n formatOffset = (opts) => {\n if (dt.isOffsetFixed && dt.offset === 0 && opts.allowZ) {\n return \"Z\";\n }\n\n return dt.isValid ? dt.zone.formatOffset(dt.ts, opts.format) : \"\";\n },\n meridiem = () =>\n knownEnglish\n ? English.meridiemForDateTime(dt)\n : string({ hour: \"numeric\", hourCycle: \"h12\" }, \"dayperiod\"),\n month = (length, standalone) =>\n knownEnglish\n ? English.monthForDateTime(dt, length)\n : string(standalone ? { month: length } : { month: length, day: \"numeric\" }, \"month\"),\n weekday = (length, standalone) =>\n knownEnglish\n ? English.weekdayForDateTime(dt, length)\n : string(\n standalone ? { weekday: length } : { weekday: length, month: \"long\", day: \"numeric\" },\n \"weekday\"\n ),\n maybeMacro = (token) => {\n const formatOpts = Formatter.macroTokenToFormatOpts(token);\n if (formatOpts) {\n return this.formatWithSystemDefault(dt, formatOpts);\n } else {\n return token;\n }\n },\n era = (length) =>\n knownEnglish ? English.eraForDateTime(dt, length) : string({ era: length }, \"era\"),\n tokenToString = (token) => {\n // Where possible: https://cldr.unicode.org/translation/date-time/date-time-symbols\n switch (token) {\n // ms\n case \"S\":\n return this.num(dt.millisecond);\n case \"u\":\n // falls through\n case \"SSS\":\n return this.num(dt.millisecond, 3);\n // seconds\n case \"s\":\n return this.num(dt.second);\n case \"ss\":\n return this.num(dt.second, 2);\n // fractional seconds\n case \"uu\":\n return this.num(Math.floor(dt.millisecond / 10), 2);\n case \"uuu\":\n return this.num(Math.floor(dt.millisecond / 100));\n // minutes\n case \"m\":\n return this.num(dt.minute);\n case \"mm\":\n return this.num(dt.minute, 2);\n // hours\n case \"h\":\n return this.num(dt.hour % 12 === 0 ? 12 : dt.hour % 12);\n case \"hh\":\n return this.num(dt.hour % 12 === 0 ? 12 : dt.hour % 12, 2);\n case \"H\":\n return this.num(dt.hour);\n case \"HH\":\n return this.num(dt.hour, 2);\n // offset\n case \"Z\":\n // like +6\n return formatOffset({ format: \"narrow\", allowZ: this.opts.allowZ });\n case \"ZZ\":\n // like +06:00\n return formatOffset({ format: \"short\", allowZ: this.opts.allowZ });\n case \"ZZZ\":\n // like +0600\n return formatOffset({ format: \"techie\", allowZ: this.opts.allowZ });\n case \"ZZZZ\":\n // like EST\n return dt.zone.offsetName(dt.ts, { format: \"short\", locale: this.loc.locale });\n case \"ZZZZZ\":\n // like Eastern Standard Time\n return dt.zone.offsetName(dt.ts, { format: \"long\", locale: this.loc.locale });\n // zone\n case \"z\":\n // like America/New_York\n return dt.zoneName;\n // meridiems\n case \"a\":\n return meridiem();\n // dates\n case \"d\":\n return useDateTimeFormatter ? string({ day: \"numeric\" }, \"day\") : this.num(dt.day);\n case \"dd\":\n return useDateTimeFormatter ? string({ day: \"2-digit\" }, \"day\") : this.num(dt.day, 2);\n // weekdays - standalone\n case \"c\":\n // like 1\n return this.num(dt.weekday);\n case \"ccc\":\n // like 'Tues'\n return weekday(\"short\", true);\n case \"cccc\":\n // like 'Tuesday'\n return weekday(\"long\", true);\n case \"ccccc\":\n // like 'T'\n return weekday(\"narrow\", true);\n // weekdays - format\n case \"E\":\n // like 1\n return this.num(dt.weekday);\n case \"EEE\":\n // like 'Tues'\n return weekday(\"short\", false);\n case \"EEEE\":\n // like 'Tuesday'\n return weekday(\"long\", false);\n case \"EEEEE\":\n // like 'T'\n return weekday(\"narrow\", false);\n // months - standalone\n case \"L\":\n // like 1\n return useDateTimeFormatter\n ? string({ month: \"numeric\", day: \"numeric\" }, \"month\")\n : this.num(dt.month);\n case \"LL\":\n // like 01, doesn't seem to work\n return useDateTimeFormatter\n ? string({ month: \"2-digit\", day: \"numeric\" }, \"month\")\n : this.num(dt.month, 2);\n case \"LLL\":\n // like Jan\n return month(\"short\", true);\n case \"LLLL\":\n // like January\n return month(\"long\", true);\n case \"LLLLL\":\n // like J\n return month(\"narrow\", true);\n // months - format\n case \"M\":\n // like 1\n return useDateTimeFormatter\n ? string({ month: \"numeric\" }, \"month\")\n : this.num(dt.month);\n case \"MM\":\n // like 01\n return useDateTimeFormatter\n ? string({ month: \"2-digit\" }, \"month\")\n : this.num(dt.month, 2);\n case \"MMM\":\n // like Jan\n return month(\"short\", false);\n case \"MMMM\":\n // like January\n return month(\"long\", false);\n case \"MMMMM\":\n // like J\n return month(\"narrow\", false);\n // years\n case \"y\":\n // like 2014\n return useDateTimeFormatter ? string({ year: \"numeric\" }, \"year\") : this.num(dt.year);\n case \"yy\":\n // like 14\n return useDateTimeFormatter\n ? string({ year: \"2-digit\" }, \"year\")\n : this.num(dt.year.toString().slice(-2), 2);\n case \"yyyy\":\n // like 0012\n return useDateTimeFormatter\n ? string({ year: \"numeric\" }, \"year\")\n : this.num(dt.year, 4);\n case \"yyyyyy\":\n // like 000012\n return useDateTimeFormatter\n ? string({ year: \"numeric\" }, \"year\")\n : this.num(dt.year, 6);\n // eras\n case \"G\":\n // like AD\n return era(\"short\");\n case \"GG\":\n // like Anno Domini\n return era(\"long\");\n case \"GGGGG\":\n return era(\"narrow\");\n case \"kk\":\n return this.num(dt.weekYear.toString().slice(-2), 2);\n case \"kkkk\":\n return this.num(dt.weekYear, 4);\n case \"W\":\n return this.num(dt.weekNumber);\n case \"WW\":\n return this.num(dt.weekNumber, 2);\n case \"n\":\n return this.num(dt.localWeekNumber);\n case \"nn\":\n return this.num(dt.localWeekNumber, 2);\n case \"ii\":\n return this.num(dt.localWeekYear.toString().slice(-2), 2);\n case \"iiii\":\n return this.num(dt.localWeekYear, 4);\n case \"o\":\n return this.num(dt.ordinal);\n case \"ooo\":\n return this.num(dt.ordinal, 3);\n case \"q\":\n // like 1\n return this.num(dt.quarter);\n case \"qq\":\n // like 01\n return this.num(dt.quarter, 2);\n case \"X\":\n return this.num(Math.floor(dt.ts / 1000));\n case \"x\":\n return this.num(dt.ts);\n default:\n return maybeMacro(token);\n }\n };\n\n return stringifyTokens(Formatter.parseFormat(fmt), tokenToString);\n }\n\n formatDurationFromString(dur, fmt) {\n const tokenToField = (token) => {\n switch (token[0]) {\n case \"S\":\n return \"millisecond\";\n case \"s\":\n return \"second\";\n case \"m\":\n return \"minute\";\n case \"h\":\n return \"hour\";\n case \"d\":\n return \"day\";\n case \"w\":\n return \"week\";\n case \"M\":\n return \"month\";\n case \"y\":\n return \"year\";\n default:\n return null;\n }\n },\n tokenToString = (lildur) => (token) => {\n const mapped = tokenToField(token);\n if (mapped) {\n return this.num(lildur.get(mapped), token.length);\n } else {\n return token;\n }\n },\n tokens = Formatter.parseFormat(fmt),\n realTokens = tokens.reduce(\n (found, { literal, val }) => (literal ? found : found.concat(val)),\n []\n ),\n collapsed = dur.shiftTo(...realTokens.map(tokenToField).filter((t) => t));\n return stringifyTokens(tokens, tokenToString(collapsed));\n }\n}\n","import {\n untruncateYear,\n signedOffset,\n parseInteger,\n parseMillis,\n isUndefined,\n parseFloating,\n} from \"./util.js\";\nimport * as English from \"./english.js\";\nimport FixedOffsetZone from \"../zones/fixedOffsetZone.js\";\nimport IANAZone from \"../zones/IANAZone.js\";\n\n/*\n * This file handles parsing for well-specified formats. Here's how it works:\n * Two things go into parsing: a regex to match with and an extractor to take apart the groups in the match.\n * An extractor is just a function that takes a regex match array and returns a { year: ..., month: ... } object\n * parse() does the work of executing the regex and applying the extractor. It takes multiple regex/extractor pairs to try in sequence.\n * Extractors can take a \"cursor\" representing the offset in the match to look at. This makes it easy to combine extractors.\n * combineExtractors() does the work of combining them, keeping track of the cursor through multiple extractions.\n * Some extractions are super dumb and simpleParse and fromStrings help DRY them.\n */\n\nconst ianaRegex = /[A-Za-z_+-]{1,256}(?::?\\/[A-Za-z0-9_+-]{1,256}(?:\\/[A-Za-z0-9_+-]{1,256})?)?/;\n\nfunction combineRegexes(...regexes) {\n const full = regexes.reduce((f, r) => f + r.source, \"\");\n return RegExp(`^${full}$`);\n}\n\nfunction combineExtractors(...extractors) {\n return (m) =>\n extractors\n .reduce(\n ([mergedVals, mergedZone, cursor], ex) => {\n const [val, zone, next] = ex(m, cursor);\n return [{ ...mergedVals, ...val }, zone || mergedZone, next];\n },\n [{}, null, 1]\n )\n .slice(0, 2);\n}\n\nfunction parse(s, ...patterns) {\n if (s == null) {\n return [null, null];\n }\n\n for (const [regex, extractor] of patterns) {\n const m = regex.exec(s);\n if (m) {\n return extractor(m);\n }\n }\n return [null, null];\n}\n\nfunction simpleParse(...keys) {\n return (match, cursor) => {\n const ret = {};\n let i;\n\n for (i = 0; i < keys.length; i++) {\n ret[keys[i]] = parseInteger(match[cursor + i]);\n }\n return [ret, null, cursor + i];\n };\n}\n\n// ISO and SQL parsing\nconst offsetRegex = /(?:(Z)|([+-]\\d\\d)(?::?(\\d\\d))?)/;\nconst isoExtendedZone = `(?:${offsetRegex.source}?(?:\\\\[(${ianaRegex.source})\\\\])?)?`;\nconst isoTimeBaseRegex = /(\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:[.,](\\d{1,30}))?)?)?/;\nconst isoTimeRegex = RegExp(`${isoTimeBaseRegex.source}${isoExtendedZone}`);\nconst isoTimeExtensionRegex = RegExp(`(?:T${isoTimeRegex.source})?`);\nconst isoYmdRegex = /([+-]\\d{6}|\\d{4})(?:-?(\\d\\d)(?:-?(\\d\\d))?)?/;\nconst isoWeekRegex = /(\\d{4})-?W(\\d\\d)(?:-?(\\d))?/;\nconst isoOrdinalRegex = /(\\d{4})-?(\\d{3})/;\nconst extractISOWeekData = simpleParse(\"weekYear\", \"weekNumber\", \"weekDay\");\nconst extractISOOrdinalData = simpleParse(\"year\", \"ordinal\");\nconst sqlYmdRegex = /(\\d{4})-(\\d\\d)-(\\d\\d)/; // dumbed-down version of the ISO one\nconst sqlTimeRegex = RegExp(\n `${isoTimeBaseRegex.source} ?(?:${offsetRegex.source}|(${ianaRegex.source}))?`\n);\nconst sqlTimeExtensionRegex = RegExp(`(?: ${sqlTimeRegex.source})?`);\n\nfunction int(match, pos, fallback) {\n const m = match[pos];\n return isUndefined(m) ? fallback : parseInteger(m);\n}\n\nfunction extractISOYmd(match, cursor) {\n const item = {\n year: int(match, cursor),\n month: int(match, cursor + 1, 1),\n day: int(match, cursor + 2, 1),\n };\n\n return [item, null, cursor + 3];\n}\n\nfunction extractISOTime(match, cursor) {\n const item = {\n hours: int(match, cursor, 0),\n minutes: int(match, cursor + 1, 0),\n seconds: int(match, cursor + 2, 0),\n milliseconds: parseMillis(match[cursor + 3]),\n };\n\n return [item, null, cursor + 4];\n}\n\nfunction extractISOOffset(match, cursor) {\n const local = !match[cursor] && !match[cursor + 1],\n fullOffset = signedOffset(match[cursor + 1], match[cursor + 2]),\n zone = local ? null : FixedOffsetZone.instance(fullOffset);\n return [{}, zone, cursor + 3];\n}\n\nfunction extractIANAZone(match, cursor) {\n const zone = match[cursor] ? IANAZone.create(match[cursor]) : null;\n return [{}, zone, cursor + 1];\n}\n\n// ISO time parsing\n\nconst isoTimeOnly = RegExp(`^T?${isoTimeBaseRegex.source}$`);\n\n// ISO duration parsing\n\nconst isoDuration =\n /^-?P(?:(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)Y)?(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)M)?(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)W)?(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)D)?(?:T(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)H)?(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)M)?(?:(-?\\d{1,20})(?:[.,](-?\\d{1,20}))?S)?)?)$/;\n\nfunction extractISODuration(match) {\n const [s, yearStr, monthStr, weekStr, dayStr, hourStr, minuteStr, secondStr, millisecondsStr] =\n match;\n\n const hasNegativePrefix = s[0] === \"-\";\n const negativeSeconds = secondStr && secondStr[0] === \"-\";\n\n const maybeNegate = (num, force = false) =>\n num !== undefined && (force || (num && hasNegativePrefix)) ? -num : num;\n\n return [\n {\n years: maybeNegate(parseFloating(yearStr)),\n months: maybeNegate(parseFloating(monthStr)),\n weeks: maybeNegate(parseFloating(weekStr)),\n days: maybeNegate(parseFloating(dayStr)),\n hours: maybeNegate(parseFloating(hourStr)),\n minutes: maybeNegate(parseFloating(minuteStr)),\n seconds: maybeNegate(parseFloating(secondStr), secondStr === \"-0\"),\n milliseconds: maybeNegate(parseMillis(millisecondsStr), negativeSeconds),\n },\n ];\n}\n\n// These are a little braindead. EDT *should* tell us that we're in, say, America/New_York\n// and not just that we're in -240 *right now*. But since I don't think these are used that often\n// I'm just going to ignore that\nconst obsOffsets = {\n GMT: 0,\n EDT: -4 * 60,\n EST: -5 * 60,\n CDT: -5 * 60,\n CST: -6 * 60,\n MDT: -6 * 60,\n MST: -7 * 60,\n PDT: -7 * 60,\n PST: -8 * 60,\n};\n\nfunction fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) {\n const result = {\n year: yearStr.length === 2 ? untruncateYear(parseInteger(yearStr)) : parseInteger(yearStr),\n month: English.monthsShort.indexOf(monthStr) + 1,\n day: parseInteger(dayStr),\n hour: parseInteger(hourStr),\n minute: parseInteger(minuteStr),\n };\n\n if (secondStr) result.second = parseInteger(secondStr);\n if (weekdayStr) {\n result.weekday =\n weekdayStr.length > 3\n ? English.weekdaysLong.indexOf(weekdayStr) + 1\n : English.weekdaysShort.indexOf(weekdayStr) + 1;\n }\n\n return result;\n}\n\n// RFC 2822/5322\nconst rfc2822 =\n /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\\s)?(\\d{1,2})\\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\s(\\d{2,4})\\s(\\d\\d):(\\d\\d)(?::(\\d\\d))?\\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\\d\\d)(\\d\\d)))$/;\n\nfunction extractRFC2822(match) {\n const [\n ,\n weekdayStr,\n dayStr,\n monthStr,\n yearStr,\n hourStr,\n minuteStr,\n secondStr,\n obsOffset,\n milOffset,\n offHourStr,\n offMinuteStr,\n ] = match,\n result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr);\n\n let offset;\n if (obsOffset) {\n offset = obsOffsets[obsOffset];\n } else if (milOffset) {\n offset = 0;\n } else {\n offset = signedOffset(offHourStr, offMinuteStr);\n }\n\n return [result, new FixedOffsetZone(offset)];\n}\n\nfunction preprocessRFC2822(s) {\n // Remove comments and folding whitespace and replace multiple-spaces with a single space\n return s\n .replace(/\\([^()]*\\)|[\\n\\t]/g, \" \")\n .replace(/(\\s\\s+)/g, \" \")\n .trim();\n}\n\n// http date\n\nconst rfc1123 =\n /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\\d\\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\\d{4}) (\\d\\d):(\\d\\d):(\\d\\d) GMT$/,\n rfc850 =\n /^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\\d\\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\\d\\d) (\\d\\d):(\\d\\d):(\\d\\d) GMT$/,\n ascii =\n /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \\d|\\d\\d) (\\d\\d):(\\d\\d):(\\d\\d) (\\d{4})$/;\n\nfunction extractRFC1123Or850(match) {\n const [, weekdayStr, dayStr, monthStr, yearStr, hourStr, minuteStr, secondStr] = match,\n result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr);\n return [result, FixedOffsetZone.utcInstance];\n}\n\nfunction extractASCII(match) {\n const [, weekdayStr, monthStr, dayStr, hourStr, minuteStr, secondStr, yearStr] = match,\n result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr);\n return [result, FixedOffsetZone.utcInstance];\n}\n\nconst isoYmdWithTimeExtensionRegex = combineRegexes(isoYmdRegex, isoTimeExtensionRegex);\nconst isoWeekWithTimeExtensionRegex = combineRegexes(isoWeekRegex, isoTimeExtensionRegex);\nconst isoOrdinalWithTimeExtensionRegex = combineRegexes(isoOrdinalRegex, isoTimeExtensionRegex);\nconst isoTimeCombinedRegex = combineRegexes(isoTimeRegex);\n\nconst extractISOYmdTimeAndOffset = combineExtractors(\n extractISOYmd,\n extractISOTime,\n extractISOOffset,\n extractIANAZone\n);\nconst extractISOWeekTimeAndOffset = combineExtractors(\n extractISOWeekData,\n extractISOTime,\n extractISOOffset,\n extractIANAZone\n);\nconst extractISOOrdinalDateAndTime = combineExtractors(\n extractISOOrdinalData,\n extractISOTime,\n extractISOOffset,\n extractIANAZone\n);\nconst extractISOTimeAndOffset = combineExtractors(\n extractISOTime,\n extractISOOffset,\n extractIANAZone\n);\n\n/*\n * @private\n */\n\nexport function parseISODate(s) {\n return parse(\n s,\n [isoYmdWithTimeExtensionRegex, extractISOYmdTimeAndOffset],\n [isoWeekWithTimeExtensionRegex, extractISOWeekTimeAndOffset],\n [isoOrdinalWithTimeExtensionRegex, extractISOOrdinalDateAndTime],\n [isoTimeCombinedRegex, extractISOTimeAndOffset]\n );\n}\n\nexport function parseRFC2822Date(s) {\n return parse(preprocessRFC2822(s), [rfc2822, extractRFC2822]);\n}\n\nexport function parseHTTPDate(s) {\n return parse(\n s,\n [rfc1123, extractRFC1123Or850],\n [rfc850, extractRFC1123Or850],\n [ascii, extractASCII]\n );\n}\n\nexport function parseISODuration(s) {\n return parse(s, [isoDuration, extractISODuration]);\n}\n\nconst extractISOTimeOnly = combineExtractors(extractISOTime);\n\nexport function parseISOTimeOnly(s) {\n return parse(s, [isoTimeOnly, extractISOTimeOnly]);\n}\n\nconst sqlYmdWithTimeExtensionRegex = combineRegexes(sqlYmdRegex, sqlTimeExtensionRegex);\nconst sqlTimeCombinedRegex = combineRegexes(sqlTimeRegex);\n\nconst extractISOTimeOffsetAndIANAZone = combineExtractors(\n extractISOTime,\n extractISOOffset,\n extractIANAZone\n);\n\nexport function parseSQL(s) {\n return parse(\n s,\n [sqlYmdWithTimeExtensionRegex, extractISOYmdTimeAndOffset],\n [sqlTimeCombinedRegex, extractISOTimeOffsetAndIANAZone]\n );\n}\n","import { InvalidArgumentError, InvalidDurationError, InvalidUnitError } from \"./errors.js\";\nimport Formatter from \"./impl/formatter.js\";\nimport Invalid from \"./impl/invalid.js\";\nimport Locale from \"./impl/locale.js\";\nimport { parseISODuration, parseISOTimeOnly } from \"./impl/regexParser.js\";\nimport {\n asNumber,\n hasOwnProperty,\n isNumber,\n isUndefined,\n normalizeObject,\n roundTo,\n} from \"./impl/util.js\";\nimport Settings from \"./settings.js\";\nimport DateTime from \"./datetime.js\";\n\nconst INVALID = \"Invalid Duration\";\n\n// unit conversion constants\nexport const lowOrderMatrix = {\n weeks: {\n days: 7,\n hours: 7 * 24,\n minutes: 7 * 24 * 60,\n seconds: 7 * 24 * 60 * 60,\n milliseconds: 7 * 24 * 60 * 60 * 1000,\n },\n days: {\n hours: 24,\n minutes: 24 * 60,\n seconds: 24 * 60 * 60,\n milliseconds: 24 * 60 * 60 * 1000,\n },\n hours: { minutes: 60, seconds: 60 * 60, milliseconds: 60 * 60 * 1000 },\n minutes: { seconds: 60, milliseconds: 60 * 1000 },\n seconds: { milliseconds: 1000 },\n },\n casualMatrix = {\n years: {\n quarters: 4,\n months: 12,\n weeks: 52,\n days: 365,\n hours: 365 * 24,\n minutes: 365 * 24 * 60,\n seconds: 365 * 24 * 60 * 60,\n milliseconds: 365 * 24 * 60 * 60 * 1000,\n },\n quarters: {\n months: 3,\n weeks: 13,\n days: 91,\n hours: 91 * 24,\n minutes: 91 * 24 * 60,\n seconds: 91 * 24 * 60 * 60,\n milliseconds: 91 * 24 * 60 * 60 * 1000,\n },\n months: {\n weeks: 4,\n days: 30,\n hours: 30 * 24,\n minutes: 30 * 24 * 60,\n seconds: 30 * 24 * 60 * 60,\n milliseconds: 30 * 24 * 60 * 60 * 1000,\n },\n\n ...lowOrderMatrix,\n },\n daysInYearAccurate = 146097.0 / 400,\n daysInMonthAccurate = 146097.0 / 4800,\n accurateMatrix = {\n years: {\n quarters: 4,\n months: 12,\n weeks: daysInYearAccurate / 7,\n days: daysInYearAccurate,\n hours: daysInYearAccurate * 24,\n minutes: daysInYearAccurate * 24 * 60,\n seconds: daysInYearAccurate * 24 * 60 * 60,\n milliseconds: daysInYearAccurate * 24 * 60 * 60 * 1000,\n },\n quarters: {\n months: 3,\n weeks: daysInYearAccurate / 28,\n days: daysInYearAccurate / 4,\n hours: (daysInYearAccurate * 24) / 4,\n minutes: (daysInYearAccurate * 24 * 60) / 4,\n seconds: (daysInYearAccurate * 24 * 60 * 60) / 4,\n milliseconds: (daysInYearAccurate * 24 * 60 * 60 * 1000) / 4,\n },\n months: {\n weeks: daysInMonthAccurate / 7,\n days: daysInMonthAccurate,\n hours: daysInMonthAccurate * 24,\n minutes: daysInMonthAccurate * 24 * 60,\n seconds: daysInMonthAccurate * 24 * 60 * 60,\n milliseconds: daysInMonthAccurate * 24 * 60 * 60 * 1000,\n },\n ...lowOrderMatrix,\n };\n\n// units ordered by size\nconst orderedUnits = [\n \"years\",\n \"quarters\",\n \"months\",\n \"weeks\",\n \"days\",\n \"hours\",\n \"minutes\",\n \"seconds\",\n \"milliseconds\",\n];\n\nconst reverseUnits = orderedUnits.slice(0).reverse();\n\n// clone really means \"create another instance just like this one, but with these changes\"\nfunction clone(dur, alts, clear = false) {\n // deep merge for vals\n const conf = {\n values: clear ? alts.values : { ...dur.values, ...(alts.values || {}) },\n loc: dur.loc.clone(alts.loc),\n conversionAccuracy: alts.conversionAccuracy || dur.conversionAccuracy,\n matrix: alts.matrix || dur.matrix,\n };\n return new Duration(conf);\n}\n\nfunction durationToMillis(matrix, vals) {\n let sum = vals.milliseconds ?? 0;\n for (const unit of reverseUnits.slice(1)) {\n if (vals[unit]) {\n sum += vals[unit] * matrix[unit][\"milliseconds\"];\n }\n }\n return sum;\n}\n\n// NB: mutates parameters\nfunction normalizeValues(matrix, vals) {\n // the logic below assumes the overall value of the duration is positive\n // if this is not the case, factor is used to make it so\n const factor = durationToMillis(matrix, vals) < 0 ? -1 : 1;\n\n orderedUnits.reduceRight((previous, current) => {\n if (!isUndefined(vals[current])) {\n if (previous) {\n const previousVal = vals[previous] * factor;\n const conv = matrix[current][previous];\n\n // if (previousVal < 0):\n // lower order unit is negative (e.g. { years: 2, days: -2 })\n // normalize this by reducing the higher order unit by the appropriate amount\n // and increasing the lower order unit\n // this can never make the higher order unit negative, because this function only operates\n // on positive durations, so the amount of time represented by the lower order unit cannot\n // be larger than the higher order unit\n // else:\n // lower order unit is positive (e.g. { years: 2, days: 450 } or { years: -2, days: 450 })\n // in this case we attempt to convert as much as possible from the lower order unit into\n // the higher order one\n //\n // Math.floor takes care of both of these cases, rounding away from 0\n // if previousVal < 0 it makes the absolute value larger\n // if previousVal >= it makes the absolute value smaller\n const rollUp = Math.floor(previousVal / conv);\n vals[current] += rollUp * factor;\n vals[previous] -= rollUp * conv * factor;\n }\n return current;\n } else {\n return previous;\n }\n }, null);\n\n // try to convert any decimals into smaller units if possible\n // for example for { years: 2.5, days: 0, seconds: 0 } we want to get { years: 2, days: 182, hours: 12 }\n orderedUnits.reduce((previous, current) => {\n if (!isUndefined(vals[current])) {\n if (previous) {\n const fraction = vals[previous] % 1;\n vals[previous] -= fraction;\n vals[current] += fraction * matrix[previous][current];\n }\n return current;\n } else {\n return previous;\n }\n }, null);\n}\n\n// Remove all properties with a value of 0 from an object\nfunction removeZeroes(vals) {\n const newVals = {};\n for (const [key, value] of Object.entries(vals)) {\n if (value !== 0) {\n newVals[key] = value;\n }\n }\n return newVals;\n}\n\n/**\n * A Duration object represents a period of time, like \"2 months\" or \"1 day, 1 hour\". Conceptually, it's just a map of units to their quantities, accompanied by some additional configuration and methods for creating, parsing, interrogating, transforming, and formatting them. They can be used on their own or in conjunction with other Luxon types; for example, you can use {@link DateTime#plus} to add a Duration object to a DateTime, producing another DateTime.\n *\n * Here is a brief overview of commonly used methods and getters in Duration:\n *\n * * **Creation** To create a Duration, use {@link Duration.fromMillis}, {@link Duration.fromObject}, or {@link Duration.fromISO}.\n * * **Unit values** See the {@link Duration#years}, {@link Duration#months}, {@link Duration#weeks}, {@link Duration#days}, {@link Duration#hours}, {@link Duration#minutes}, {@link Duration#seconds}, {@link Duration#milliseconds} accessors.\n * * **Configuration** See {@link Duration#locale} and {@link Duration#numberingSystem} accessors.\n * * **Transformation** To create new Durations out of old ones use {@link Duration#plus}, {@link Duration#minus}, {@link Duration#normalize}, {@link Duration#set}, {@link Duration#reconfigure}, {@link Duration#shiftTo}, and {@link Duration#negate}.\n * * **Output** To convert the Duration into other representations, see {@link Duration#as}, {@link Duration#toISO}, {@link Duration#toFormat}, and {@link Duration#toJSON}\n *\n * There's are more methods documented below. In addition, for more information on subtler topics like internationalization and validity, see the external documentation.\n */\nexport default class Duration {\n /**\n * @private\n */\n constructor(config) {\n const accurate = config.conversionAccuracy === \"longterm\" || false;\n let matrix = accurate ? accurateMatrix : casualMatrix;\n\n if (config.matrix) {\n matrix = config.matrix;\n }\n\n /**\n * @access private\n */\n this.values = config.values;\n /**\n * @access private\n */\n this.loc = config.loc || Locale.create();\n /**\n * @access private\n */\n this.conversionAccuracy = accurate ? \"longterm\" : \"casual\";\n /**\n * @access private\n */\n this.invalid = config.invalid || null;\n /**\n * @access private\n */\n this.matrix = matrix;\n /**\n * @access private\n */\n this.isLuxonDuration = true;\n }\n\n /**\n * Create Duration from a number of milliseconds.\n * @param {number} count of milliseconds\n * @param {Object} opts - options for parsing\n * @param {string} [opts.locale='en-US'] - the locale to use\n * @param {string} opts.numberingSystem - the numbering system to use\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @return {Duration}\n */\n static fromMillis(count, opts) {\n return Duration.fromObject({ milliseconds: count }, opts);\n }\n\n /**\n * Create a Duration from a JavaScript object with keys like 'years' and 'hours'.\n * If this object is empty then a zero milliseconds duration is returned.\n * @param {Object} obj - the object to create the DateTime from\n * @param {number} obj.years\n * @param {number} obj.quarters\n * @param {number} obj.months\n * @param {number} obj.weeks\n * @param {number} obj.days\n * @param {number} obj.hours\n * @param {number} obj.minutes\n * @param {number} obj.seconds\n * @param {number} obj.milliseconds\n * @param {Object} [opts=[]] - options for creating this Duration\n * @param {string} [opts.locale='en-US'] - the locale to use\n * @param {string} opts.numberingSystem - the numbering system to use\n * @param {string} [opts.conversionAccuracy='casual'] - the preset conversion system to use\n * @param {string} [opts.matrix=Object] - the custom conversion system to use\n * @return {Duration}\n */\n static fromObject(obj, opts = {}) {\n if (obj == null || typeof obj !== \"object\") {\n throw new InvalidArgumentError(\n `Duration.fromObject: argument expected to be an object, got ${\n obj === null ? \"null\" : typeof obj\n }`\n );\n }\n\n return new Duration({\n values: normalizeObject(obj, Duration.normalizeUnit),\n loc: Locale.fromObject(opts),\n conversionAccuracy: opts.conversionAccuracy,\n matrix: opts.matrix,\n });\n }\n\n /**\n * Create a Duration from DurationLike.\n *\n * @param {Object | number | Duration} durationLike\n * One of:\n * - object with keys like 'years' and 'hours'.\n * - number representing milliseconds\n * - Duration instance\n * @return {Duration}\n */\n static fromDurationLike(durationLike) {\n if (isNumber(durationLike)) {\n return Duration.fromMillis(durationLike);\n } else if (Duration.isDuration(durationLike)) {\n return durationLike;\n } else if (typeof durationLike === \"object\") {\n return Duration.fromObject(durationLike);\n } else {\n throw new InvalidArgumentError(\n `Unknown duration argument ${durationLike} of type ${typeof durationLike}`\n );\n }\n }\n\n /**\n * Create a Duration from an ISO 8601 duration string.\n * @param {string} text - text to parse\n * @param {Object} opts - options for parsing\n * @param {string} [opts.locale='en-US'] - the locale to use\n * @param {string} opts.numberingSystem - the numbering system to use\n * @param {string} [opts.conversionAccuracy='casual'] - the preset conversion system to use\n * @param {string} [opts.matrix=Object] - the preset conversion system to use\n * @see https://en.wikipedia.org/wiki/ISO_8601#Durations\n * @example Duration.fromISO('P3Y6M1W4DT12H30M5S').toObject() //=> { years: 3, months: 6, weeks: 1, days: 4, hours: 12, minutes: 30, seconds: 5 }\n * @example Duration.fromISO('PT23H').toObject() //=> { hours: 23 }\n * @example Duration.fromISO('P5Y3M').toObject() //=> { years: 5, months: 3 }\n * @return {Duration}\n */\n static fromISO(text, opts) {\n const [parsed] = parseISODuration(text);\n if (parsed) {\n return Duration.fromObject(parsed, opts);\n } else {\n return Duration.invalid(\"unparsable\", `the input \"${text}\" can't be parsed as ISO 8601`);\n }\n }\n\n /**\n * Create a Duration from an ISO 8601 time string.\n * @param {string} text - text to parse\n * @param {Object} opts - options for parsing\n * @param {string} [opts.locale='en-US'] - the locale to use\n * @param {string} opts.numberingSystem - the numbering system to use\n * @param {string} [opts.conversionAccuracy='casual'] - the preset conversion system to use\n * @param {string} [opts.matrix=Object] - the conversion system to use\n * @see https://en.wikipedia.org/wiki/ISO_8601#Times\n * @example Duration.fromISOTime('11:22:33.444').toObject() //=> { hours: 11, minutes: 22, seconds: 33, milliseconds: 444 }\n * @example Duration.fromISOTime('11:00').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }\n * @example Duration.fromISOTime('T11:00').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }\n * @example Duration.fromISOTime('1100').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }\n * @example Duration.fromISOTime('T1100').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }\n * @return {Duration}\n */\n static fromISOTime(text, opts) {\n const [parsed] = parseISOTimeOnly(text);\n if (parsed) {\n return Duration.fromObject(parsed, opts);\n } else {\n return Duration.invalid(\"unparsable\", `the input \"${text}\" can't be parsed as ISO 8601`);\n }\n }\n\n /**\n * Create an invalid Duration.\n * @param {string} reason - simple string of why this datetime is invalid. Should not contain parameters or anything else data-dependent\n * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information\n * @return {Duration}\n */\n static invalid(reason, explanation = null) {\n if (!reason) {\n throw new InvalidArgumentError(\"need to specify a reason the Duration is invalid\");\n }\n\n const invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation);\n\n if (Settings.throwOnInvalid) {\n throw new InvalidDurationError(invalid);\n } else {\n return new Duration({ invalid });\n }\n }\n\n /**\n * @private\n */\n static normalizeUnit(unit) {\n const normalized = {\n year: \"years\",\n years: \"years\",\n quarter: \"quarters\",\n quarters: \"quarters\",\n month: \"months\",\n months: \"months\",\n week: \"weeks\",\n weeks: \"weeks\",\n day: \"days\",\n days: \"days\",\n hour: \"hours\",\n hours: \"hours\",\n minute: \"minutes\",\n minutes: \"minutes\",\n second: \"seconds\",\n seconds: \"seconds\",\n millisecond: \"milliseconds\",\n milliseconds: \"milliseconds\",\n }[unit ? unit.toLowerCase() : unit];\n\n if (!normalized) throw new InvalidUnitError(unit);\n\n return normalized;\n }\n\n /**\n * Check if an object is a Duration. Works across context boundaries\n * @param {object} o\n * @return {boolean}\n */\n static isDuration(o) {\n return (o && o.isLuxonDuration) || false;\n }\n\n /**\n * Get the locale of a Duration, such 'en-GB'\n * @type {string}\n */\n get locale() {\n return this.isValid ? this.loc.locale : null;\n }\n\n /**\n * Get the numbering system of a Duration, such 'beng'. The numbering system is used when formatting the Duration\n *\n * @type {string}\n */\n get numberingSystem() {\n return this.isValid ? this.loc.numberingSystem : null;\n }\n\n /**\n * Returns a string representation of this Duration formatted according to the specified format string. You may use these tokens:\n * * `S` for milliseconds\n * * `s` for seconds\n * * `m` for minutes\n * * `h` for hours\n * * `d` for days\n * * `w` for weeks\n * * `M` for months\n * * `y` for years\n * Notes:\n * * Add padding by repeating the token, e.g. \"yy\" pads the years to two digits, \"hhhh\" pads the hours out to four digits\n * * Tokens can be escaped by wrapping with single quotes.\n * * The duration will be converted to the set of units in the format string using {@link Duration#shiftTo} and the Durations's conversion accuracy setting.\n * @param {string} fmt - the format string\n * @param {Object} opts - options\n * @param {boolean} [opts.floor=true] - floor numerical values\n * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat(\"y d s\") //=> \"1 6 2\"\n * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat(\"yy dd sss\") //=> \"01 06 002\"\n * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat(\"M S\") //=> \"12 518402000\"\n * @return {string}\n */\n toFormat(fmt, opts = {}) {\n // reverse-compat since 1.2; we always round down now, never up, and we do it by default\n const fmtOpts = {\n ...opts,\n floor: opts.round !== false && opts.floor !== false,\n };\n return this.isValid\n ? Formatter.create(this.loc, fmtOpts).formatDurationFromString(this, fmt)\n : INVALID;\n }\n\n /**\n * Returns a string representation of a Duration with all units included.\n * To modify its behavior, use `listStyle` and any Intl.NumberFormat option, though `unitDisplay` is especially relevant.\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#options\n * @param {Object} opts - Formatting options. Accepts the same keys as the options parameter of the native `Intl.NumberFormat` constructor, as well as `listStyle`.\n * @param {string} [opts.listStyle='narrow'] - How to format the merged list. Corresponds to the `style` property of the options parameter of the native `Intl.ListFormat` constructor.\n * @example\n * ```js\n * var dur = Duration.fromObject({ days: 1, hours: 5, minutes: 6 })\n * dur.toHuman() //=> '1 day, 5 hours, 6 minutes'\n * dur.toHuman({ listStyle: \"long\" }) //=> '1 day, 5 hours, and 6 minutes'\n * dur.toHuman({ unitDisplay: \"short\" }) //=> '1 day, 5 hr, 6 min'\n * ```\n */\n toHuman(opts = {}) {\n if (!this.isValid) return INVALID;\n\n const l = orderedUnits\n .map((unit) => {\n const val = this.values[unit];\n if (isUndefined(val)) {\n return null;\n }\n return this.loc\n .numberFormatter({ style: \"unit\", unitDisplay: \"long\", ...opts, unit: unit.slice(0, -1) })\n .format(val);\n })\n .filter((n) => n);\n\n return this.loc\n .listFormatter({ type: \"conjunction\", style: opts.listStyle || \"narrow\", ...opts })\n .format(l);\n }\n\n /**\n * Returns a JavaScript object with this Duration's values.\n * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toObject() //=> { years: 1, days: 6, seconds: 2 }\n * @return {Object}\n */\n toObject() {\n if (!this.isValid) return {};\n return { ...this.values };\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this Duration.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Durations\n * @example Duration.fromObject({ years: 3, seconds: 45 }).toISO() //=> 'P3YT45S'\n * @example Duration.fromObject({ months: 4, seconds: 45 }).toISO() //=> 'P4MT45S'\n * @example Duration.fromObject({ months: 5 }).toISO() //=> 'P5M'\n * @example Duration.fromObject({ minutes: 5 }).toISO() //=> 'PT5M'\n * @example Duration.fromObject({ milliseconds: 6 }).toISO() //=> 'PT0.006S'\n * @return {string}\n */\n toISO() {\n // we could use the formatter, but this is an easier way to get the minimum string\n if (!this.isValid) return null;\n\n let s = \"P\";\n if (this.years !== 0) s += this.years + \"Y\";\n if (this.months !== 0 || this.quarters !== 0) s += this.months + this.quarters * 3 + \"M\";\n if (this.weeks !== 0) s += this.weeks + \"W\";\n if (this.days !== 0) s += this.days + \"D\";\n if (this.hours !== 0 || this.minutes !== 0 || this.seconds !== 0 || this.milliseconds !== 0)\n s += \"T\";\n if (this.hours !== 0) s += this.hours + \"H\";\n if (this.minutes !== 0) s += this.minutes + \"M\";\n if (this.seconds !== 0 || this.milliseconds !== 0)\n // this will handle \"floating point madness\" by removing extra decimal places\n // https://stackoverflow.com/questions/588004/is-floating-point-math-broken\n s += roundTo(this.seconds + this.milliseconds / 1000, 3) + \"S\";\n if (s === \"P\") s += \"T0S\";\n return s;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this Duration, formatted as a time of day.\n * Note that this will return null if the duration is invalid, negative, or equal to or greater than 24 hours.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Times\n * @param {Object} opts - options\n * @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0\n * @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0\n * @param {boolean} [opts.includePrefix=false] - include the `T` prefix\n * @param {string} [opts.format='extended'] - choose between the basic and extended format\n * @example Duration.fromObject({ hours: 11 }).toISOTime() //=> '11:00:00.000'\n * @example Duration.fromObject({ hours: 11 }).toISOTime({ suppressMilliseconds: true }) //=> '11:00:00'\n * @example Duration.fromObject({ hours: 11 }).toISOTime({ suppressSeconds: true }) //=> '11:00'\n * @example Duration.fromObject({ hours: 11 }).toISOTime({ includePrefix: true }) //=> 'T11:00:00.000'\n * @example Duration.fromObject({ hours: 11 }).toISOTime({ format: 'basic' }) //=> '110000.000'\n * @return {string}\n */\n toISOTime(opts = {}) {\n if (!this.isValid) return null;\n\n const millis = this.toMillis();\n if (millis < 0 || millis >= 86400000) return null;\n\n opts = {\n suppressMilliseconds: false,\n suppressSeconds: false,\n includePrefix: false,\n format: \"extended\",\n ...opts,\n includeOffset: false,\n };\n\n const dateTime = DateTime.fromMillis(millis, { zone: \"UTC\" });\n return dateTime.toISOTime(opts);\n }\n\n /**\n * Returns an ISO 8601 representation of this Duration appropriate for use in JSON.\n * @return {string}\n */\n toJSON() {\n return this.toISO();\n }\n\n /**\n * Returns an ISO 8601 representation of this Duration appropriate for use in debugging.\n * @return {string}\n */\n toString() {\n return this.toISO();\n }\n\n /**\n * Returns a string representation of this Duration appropriate for the REPL.\n * @return {string}\n */\n [Symbol.for(\"nodejs.util.inspect.custom\")]() {\n if (this.isValid) {\n return `Duration { values: ${JSON.stringify(this.values)} }`;\n } else {\n return `Duration { Invalid, reason: ${this.invalidReason} }`;\n }\n }\n\n /**\n * Returns an milliseconds value of this Duration.\n * @return {number}\n */\n toMillis() {\n if (!this.isValid) return NaN;\n\n return durationToMillis(this.matrix, this.values);\n }\n\n /**\n * Returns an milliseconds value of this Duration. Alias of {@link toMillis}\n * @return {number}\n */\n valueOf() {\n return this.toMillis();\n }\n\n /**\n * Make this Duration longer by the specified amount. Return a newly-constructed Duration.\n * @param {Duration|Object|number} duration - The amount to add. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()\n * @return {Duration}\n */\n plus(duration) {\n if (!this.isValid) return this;\n\n const dur = Duration.fromDurationLike(duration),\n result = {};\n\n for (const k of orderedUnits) {\n if (hasOwnProperty(dur.values, k) || hasOwnProperty(this.values, k)) {\n result[k] = dur.get(k) + this.get(k);\n }\n }\n\n return clone(this, { values: result }, true);\n }\n\n /**\n * Make this Duration shorter by the specified amount. Return a newly-constructed Duration.\n * @param {Duration|Object|number} duration - The amount to subtract. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()\n * @return {Duration}\n */\n minus(duration) {\n if (!this.isValid) return this;\n\n const dur = Duration.fromDurationLike(duration);\n return this.plus(dur.negate());\n }\n\n /**\n * Scale this Duration by the specified amount. Return a newly-constructed Duration.\n * @param {function} fn - The function to apply to each unit. Arity is 1 or 2: the value of the unit and, optionally, the unit name. Must return a number.\n * @example Duration.fromObject({ hours: 1, minutes: 30 }).mapUnits(x => x * 2) //=> { hours: 2, minutes: 60 }\n * @example Duration.fromObject({ hours: 1, minutes: 30 }).mapUnits((x, u) => u === \"hours\" ? x * 2 : x) //=> { hours: 2, minutes: 30 }\n * @return {Duration}\n */\n mapUnits(fn) {\n if (!this.isValid) return this;\n const result = {};\n for (const k of Object.keys(this.values)) {\n result[k] = asNumber(fn(this.values[k], k));\n }\n return clone(this, { values: result }, true);\n }\n\n /**\n * Get the value of unit.\n * @param {string} unit - a unit such as 'minute' or 'day'\n * @example Duration.fromObject({years: 2, days: 3}).get('years') //=> 2\n * @example Duration.fromObject({years: 2, days: 3}).get('months') //=> 0\n * @example Duration.fromObject({years: 2, days: 3}).get('days') //=> 3\n * @return {number}\n */\n get(unit) {\n return this[Duration.normalizeUnit(unit)];\n }\n\n /**\n * \"Set\" the values of specified units. Return a newly-constructed Duration.\n * @param {Object} values - a mapping of units to numbers\n * @example dur.set({ years: 2017 })\n * @example dur.set({ hours: 8, minutes: 30 })\n * @return {Duration}\n */\n set(values) {\n if (!this.isValid) return this;\n\n const mixed = { ...this.values, ...normalizeObject(values, Duration.normalizeUnit) };\n return clone(this, { values: mixed });\n }\n\n /**\n * \"Set\" the locale and/or numberingSystem. Returns a newly-constructed Duration.\n * @example dur.reconfigure({ locale: 'en-GB' })\n * @return {Duration}\n */\n reconfigure({ locale, numberingSystem, conversionAccuracy, matrix } = {}) {\n const loc = this.loc.clone({ locale, numberingSystem });\n const opts = { loc, matrix, conversionAccuracy };\n return clone(this, opts);\n }\n\n /**\n * Return the length of the duration in the specified unit.\n * @param {string} unit - a unit such as 'minutes' or 'days'\n * @example Duration.fromObject({years: 1}).as('days') //=> 365\n * @example Duration.fromObject({years: 1}).as('months') //=> 12\n * @example Duration.fromObject({hours: 60}).as('days') //=> 2.5\n * @return {number}\n */\n as(unit) {\n return this.isValid ? this.shiftTo(unit).get(unit) : NaN;\n }\n\n /**\n * Reduce this Duration to its canonical representation in its current units.\n * Assuming the overall value of the Duration is positive, this means:\n * - excessive values for lower-order units are converted to higher-order units (if possible, see first and second example)\n * - negative lower-order units are converted to higher order units (there must be such a higher order unit, otherwise\n * the overall value would be negative, see third example)\n * - fractional values for higher-order units are converted to lower-order units (if possible, see fourth example)\n *\n * If the overall value is negative, the result of this method is equivalent to `this.negate().normalize().negate()`.\n * @example Duration.fromObject({ years: 2, days: 5000 }).normalize().toObject() //=> { years: 15, days: 255 }\n * @example Duration.fromObject({ days: 5000 }).normalize().toObject() //=> { days: 5000 }\n * @example Duration.fromObject({ hours: 12, minutes: -45 }).normalize().toObject() //=> { hours: 11, minutes: 15 }\n * @example Duration.fromObject({ years: 2.5, days: 0, hours: 0 }).normalize().toObject() //=> { years: 2, days: 182, hours: 12 }\n * @return {Duration}\n */\n normalize() {\n if (!this.isValid) return this;\n const vals = this.toObject();\n normalizeValues(this.matrix, vals);\n return clone(this, { values: vals }, true);\n }\n\n /**\n * Rescale units to its largest representation\n * @example Duration.fromObject({ milliseconds: 90000 }).rescale().toObject() //=> { minutes: 1, seconds: 30 }\n * @return {Duration}\n */\n rescale() {\n if (!this.isValid) return this;\n const vals = removeZeroes(this.normalize().shiftToAll().toObject());\n return clone(this, { values: vals }, true);\n }\n\n /**\n * Convert this Duration into its representation in a different set of units.\n * @example Duration.fromObject({ hours: 1, seconds: 30 }).shiftTo('minutes', 'milliseconds').toObject() //=> { minutes: 60, milliseconds: 30000 }\n * @return {Duration}\n */\n shiftTo(...units) {\n if (!this.isValid) return this;\n\n if (units.length === 0) {\n return this;\n }\n\n units = units.map((u) => Duration.normalizeUnit(u));\n\n const built = {},\n accumulated = {},\n vals = this.toObject();\n let lastUnit;\n\n for (const k of orderedUnits) {\n if (units.indexOf(k) >= 0) {\n lastUnit = k;\n\n let own = 0;\n\n // anything we haven't boiled down yet should get boiled to this unit\n for (const ak in accumulated) {\n own += this.matrix[ak][k] * accumulated[ak];\n accumulated[ak] = 0;\n }\n\n // plus anything that's already in this unit\n if (isNumber(vals[k])) {\n own += vals[k];\n }\n\n // only keep the integer part for now in the hopes of putting any decimal part\n // into a smaller unit later\n const i = Math.trunc(own);\n built[k] = i;\n accumulated[k] = (own * 1000 - i * 1000) / 1000;\n\n // otherwise, keep it in the wings to boil it later\n } else if (isNumber(vals[k])) {\n accumulated[k] = vals[k];\n }\n }\n\n // anything leftover becomes the decimal for the last unit\n // lastUnit must be defined since units is not empty\n for (const key in accumulated) {\n if (accumulated[key] !== 0) {\n built[lastUnit] +=\n key === lastUnit ? accumulated[key] : accumulated[key] / this.matrix[lastUnit][key];\n }\n }\n\n normalizeValues(this.matrix, built);\n return clone(this, { values: built }, true);\n }\n\n /**\n * Shift this Duration to all available units.\n * Same as shiftTo(\"years\", \"months\", \"weeks\", \"days\", \"hours\", \"minutes\", \"seconds\", \"milliseconds\")\n * @return {Duration}\n */\n shiftToAll() {\n if (!this.isValid) return this;\n return this.shiftTo(\n \"years\",\n \"months\",\n \"weeks\",\n \"days\",\n \"hours\",\n \"minutes\",\n \"seconds\",\n \"milliseconds\"\n );\n }\n\n /**\n * Return the negative of this Duration.\n * @example Duration.fromObject({ hours: 1, seconds: 30 }).negate().toObject() //=> { hours: -1, seconds: -30 }\n * @return {Duration}\n */\n negate() {\n if (!this.isValid) return this;\n const negated = {};\n for (const k of Object.keys(this.values)) {\n negated[k] = this.values[k] === 0 ? 0 : -this.values[k];\n }\n return clone(this, { values: negated }, true);\n }\n\n /**\n * Get the years.\n * @type {number}\n */\n get years() {\n return this.isValid ? this.values.years || 0 : NaN;\n }\n\n /**\n * Get the quarters.\n * @type {number}\n */\n get quarters() {\n return this.isValid ? this.values.quarters || 0 : NaN;\n }\n\n /**\n * Get the months.\n * @type {number}\n */\n get months() {\n return this.isValid ? this.values.months || 0 : NaN;\n }\n\n /**\n * Get the weeks\n * @type {number}\n */\n get weeks() {\n return this.isValid ? this.values.weeks || 0 : NaN;\n }\n\n /**\n * Get the days.\n * @type {number}\n */\n get days() {\n return this.isValid ? this.values.days || 0 : NaN;\n }\n\n /**\n * Get the hours.\n * @type {number}\n */\n get hours() {\n return this.isValid ? this.values.hours || 0 : NaN;\n }\n\n /**\n * Get the minutes.\n * @type {number}\n */\n get minutes() {\n return this.isValid ? this.values.minutes || 0 : NaN;\n }\n\n /**\n * Get the seconds.\n * @return {number}\n */\n get seconds() {\n return this.isValid ? this.values.seconds || 0 : NaN;\n }\n\n /**\n * Get the milliseconds.\n * @return {number}\n */\n get milliseconds() {\n return this.isValid ? this.values.milliseconds || 0 : NaN;\n }\n\n /**\n * Returns whether the Duration is invalid. Invalid durations are returned by diff operations\n * on invalid DateTimes or Intervals.\n * @return {boolean}\n */\n get isValid() {\n return this.invalid === null;\n }\n\n /**\n * Returns an error code if this Duration became invalid, or null if the Duration is valid\n * @return {string}\n */\n get invalidReason() {\n return this.invalid ? this.invalid.reason : null;\n }\n\n /**\n * Returns an explanation of why this Duration became invalid, or null if the Duration is valid\n * @type {string}\n */\n get invalidExplanation() {\n return this.invalid ? this.invalid.explanation : null;\n }\n\n /**\n * Equality check\n * Two Durations are equal iff they have the same units and the same values for each unit.\n * @param {Duration} other\n * @return {boolean}\n */\n equals(other) {\n if (!this.isValid || !other.isValid) {\n return false;\n }\n\n if (!this.loc.equals(other.loc)) {\n return false;\n }\n\n function eq(v1, v2) {\n // Consider 0 and undefined as equal\n if (v1 === undefined || v1 === 0) return v2 === undefined || v2 === 0;\n return v1 === v2;\n }\n\n for (const u of orderedUnits) {\n if (!eq(this.values[u], other.values[u])) {\n return false;\n }\n }\n return true;\n }\n}\n","import DateTime, { friendlyDateTime } from \"./datetime.js\";\nimport Duration from \"./duration.js\";\nimport Settings from \"./settings.js\";\nimport { InvalidArgumentError, InvalidIntervalError } from \"./errors.js\";\nimport Invalid from \"./impl/invalid.js\";\nimport Formatter from \"./impl/formatter.js\";\nimport * as Formats from \"./impl/formats.js\";\n\nconst INVALID = \"Invalid Interval\";\n\n// checks if the start is equal to or before the end\nfunction validateStartEnd(start, end) {\n if (!start || !start.isValid) {\n return Interval.invalid(\"missing or invalid start\");\n } else if (!end || !end.isValid) {\n return Interval.invalid(\"missing or invalid end\");\n } else if (end < start) {\n return Interval.invalid(\n \"end before start\",\n `The end of an interval must be after its start, but you had start=${start.toISO()} and end=${end.toISO()}`\n );\n } else {\n return null;\n }\n}\n\n/**\n * An Interval object represents a half-open interval of time, where each endpoint is a {@link DateTime}. Conceptually, it's a container for those two endpoints, accompanied by methods for creating, parsing, interrogating, comparing, transforming, and formatting them.\n *\n * Here is a brief overview of the most commonly used methods and getters in Interval:\n *\n * * **Creation** To create an Interval, use {@link Interval.fromDateTimes}, {@link Interval.after}, {@link Interval.before}, or {@link Interval.fromISO}.\n * * **Accessors** Use {@link Interval#start} and {@link Interval#end} to get the start and end.\n * * **Interrogation** To analyze the Interval, use {@link Interval#count}, {@link Interval#length}, {@link Interval#hasSame}, {@link Interval#contains}, {@link Interval#isAfter}, or {@link Interval#isBefore}.\n * * **Transformation** To create other Intervals out of this one, use {@link Interval#set}, {@link Interval#splitAt}, {@link Interval#splitBy}, {@link Interval#divideEqually}, {@link Interval.merge}, {@link Interval.xor}, {@link Interval#union}, {@link Interval#intersection}, or {@link Interval#difference}.\n * * **Comparison** To compare this Interval to another one, use {@link Interval#equals}, {@link Interval#overlaps}, {@link Interval#abutsStart}, {@link Interval#abutsEnd}, {@link Interval#engulfs}\n * * **Output** To convert the Interval into other representations, see {@link Interval#toString}, {@link Interval#toLocaleString}, {@link Interval#toISO}, {@link Interval#toISODate}, {@link Interval#toISOTime}, {@link Interval#toFormat}, and {@link Interval#toDuration}.\n */\nexport default class Interval {\n /**\n * @private\n */\n constructor(config) {\n /**\n * @access private\n */\n this.s = config.start;\n /**\n * @access private\n */\n this.e = config.end;\n /**\n * @access private\n */\n this.invalid = config.invalid || null;\n /**\n * @access private\n */\n this.isLuxonInterval = true;\n }\n\n /**\n * Create an invalid Interval.\n * @param {string} reason - simple string of why this Interval is invalid. Should not contain parameters or anything else data-dependent\n * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information\n * @return {Interval}\n */\n static invalid(reason, explanation = null) {\n if (!reason) {\n throw new InvalidArgumentError(\"need to specify a reason the Interval is invalid\");\n }\n\n const invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation);\n\n if (Settings.throwOnInvalid) {\n throw new InvalidIntervalError(invalid);\n } else {\n return new Interval({ invalid });\n }\n }\n\n /**\n * Create an Interval from a start DateTime and an end DateTime. Inclusive of the start but not the end.\n * @param {DateTime|Date|Object} start\n * @param {DateTime|Date|Object} end\n * @return {Interval}\n */\n static fromDateTimes(start, end) {\n const builtStart = friendlyDateTime(start),\n builtEnd = friendlyDateTime(end);\n\n const validateError = validateStartEnd(builtStart, builtEnd);\n\n if (validateError == null) {\n return new Interval({\n start: builtStart,\n end: builtEnd,\n });\n } else {\n return validateError;\n }\n }\n\n /**\n * Create an Interval from a start DateTime and a Duration to extend to.\n * @param {DateTime|Date|Object} start\n * @param {Duration|Object|number} duration - the length of the Interval.\n * @return {Interval}\n */\n static after(start, duration) {\n const dur = Duration.fromDurationLike(duration),\n dt = friendlyDateTime(start);\n return Interval.fromDateTimes(dt, dt.plus(dur));\n }\n\n /**\n * Create an Interval from an end DateTime and a Duration to extend backwards to.\n * @param {DateTime|Date|Object} end\n * @param {Duration|Object|number} duration - the length of the Interval.\n * @return {Interval}\n */\n static before(end, duration) {\n const dur = Duration.fromDurationLike(duration),\n dt = friendlyDateTime(end);\n return Interval.fromDateTimes(dt.minus(dur), dt);\n }\n\n /**\n * Create an Interval from an ISO 8601 string.\n * Accepts `/`, `/`, and `/` formats.\n * @param {string} text - the ISO string to parse\n * @param {Object} [opts] - options to pass {@link DateTime#fromISO} and optionally {@link Duration#fromISO}\n * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n * @return {Interval}\n */\n static fromISO(text, opts) {\n const [s, e] = (text || \"\").split(\"/\", 2);\n if (s && e) {\n let start, startIsValid;\n try {\n start = DateTime.fromISO(s, opts);\n startIsValid = start.isValid;\n } catch (e) {\n startIsValid = false;\n }\n\n let end, endIsValid;\n try {\n end = DateTime.fromISO(e, opts);\n endIsValid = end.isValid;\n } catch (e) {\n endIsValid = false;\n }\n\n if (startIsValid && endIsValid) {\n return Interval.fromDateTimes(start, end);\n }\n\n if (startIsValid) {\n const dur = Duration.fromISO(e, opts);\n if (dur.isValid) {\n return Interval.after(start, dur);\n }\n } else if (endIsValid) {\n const dur = Duration.fromISO(s, opts);\n if (dur.isValid) {\n return Interval.before(end, dur);\n }\n }\n }\n return Interval.invalid(\"unparsable\", `the input \"${text}\" can't be parsed as ISO 8601`);\n }\n\n /**\n * Check if an object is an Interval. Works across context boundaries\n * @param {object} o\n * @return {boolean}\n */\n static isInterval(o) {\n return (o && o.isLuxonInterval) || false;\n }\n\n /**\n * Returns the start of the Interval\n * @type {DateTime}\n */\n get start() {\n return this.isValid ? this.s : null;\n }\n\n /**\n * Returns the end of the Interval\n * @type {DateTime}\n */\n get end() {\n return this.isValid ? this.e : null;\n }\n\n /**\n * Returns whether this Interval's end is at least its start, meaning that the Interval isn't 'backwards'.\n * @type {boolean}\n */\n get isValid() {\n return this.invalidReason === null;\n }\n\n /**\n * Returns an error code if this Interval is invalid, or null if the Interval is valid\n * @type {string}\n */\n get invalidReason() {\n return this.invalid ? this.invalid.reason : null;\n }\n\n /**\n * Returns an explanation of why this Interval became invalid, or null if the Interval is valid\n * @type {string}\n */\n get invalidExplanation() {\n return this.invalid ? this.invalid.explanation : null;\n }\n\n /**\n * Returns the length of the Interval in the specified unit.\n * @param {string} unit - the unit (such as 'hours' or 'days') to return the length in.\n * @return {number}\n */\n length(unit = \"milliseconds\") {\n return this.isValid ? this.toDuration(...[unit]).get(unit) : NaN;\n }\n\n /**\n * Returns the count of minutes, hours, days, months, or years included in the Interval, even in part.\n * Unlike {@link Interval#length} this counts sections of the calendar, not periods of time, e.g. specifying 'day'\n * asks 'what dates are included in this interval?', not 'how many days long is this interval?'\n * @param {string} [unit='milliseconds'] - the unit of time to count.\n * @param {Object} opts - options\n * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week; this operation will always use the locale of the start DateTime\n * @return {number}\n */\n count(unit = \"milliseconds\", opts) {\n if (!this.isValid) return NaN;\n const start = this.start.startOf(unit, opts);\n let end;\n if (opts?.useLocaleWeeks) {\n end = this.end.reconfigure({ locale: start.locale });\n } else {\n end = this.end;\n }\n end = end.startOf(unit, opts);\n return Math.floor(end.diff(start, unit).get(unit)) + (end.valueOf() !== this.end.valueOf());\n }\n\n /**\n * Returns whether this Interval's start and end are both in the same unit of time\n * @param {string} unit - the unit of time to check sameness on\n * @return {boolean}\n */\n hasSame(unit) {\n return this.isValid ? this.isEmpty() || this.e.minus(1).hasSame(this.s, unit) : false;\n }\n\n /**\n * Return whether this Interval has the same start and end DateTimes.\n * @return {boolean}\n */\n isEmpty() {\n return this.s.valueOf() === this.e.valueOf();\n }\n\n /**\n * Return whether this Interval's start is after the specified DateTime.\n * @param {DateTime} dateTime\n * @return {boolean}\n */\n isAfter(dateTime) {\n if (!this.isValid) return false;\n return this.s > dateTime;\n }\n\n /**\n * Return whether this Interval's end is before the specified DateTime.\n * @param {DateTime} dateTime\n * @return {boolean}\n */\n isBefore(dateTime) {\n if (!this.isValid) return false;\n return this.e <= dateTime;\n }\n\n /**\n * Return whether this Interval contains the specified DateTime.\n * @param {DateTime} dateTime\n * @return {boolean}\n */\n contains(dateTime) {\n if (!this.isValid) return false;\n return this.s <= dateTime && this.e > dateTime;\n }\n\n /**\n * \"Sets\" the start and/or end dates. Returns a newly-constructed Interval.\n * @param {Object} values - the values to set\n * @param {DateTime} values.start - the starting DateTime\n * @param {DateTime} values.end - the ending DateTime\n * @return {Interval}\n */\n set({ start, end } = {}) {\n if (!this.isValid) return this;\n return Interval.fromDateTimes(start || this.s, end || this.e);\n }\n\n /**\n * Split this Interval at each of the specified DateTimes\n * @param {...DateTime} dateTimes - the unit of time to count.\n * @return {Array}\n */\n splitAt(...dateTimes) {\n if (!this.isValid) return [];\n const sorted = dateTimes\n .map(friendlyDateTime)\n .filter((d) => this.contains(d))\n .sort((a, b) => a.toMillis() - b.toMillis()),\n results = [];\n let { s } = this,\n i = 0;\n\n while (s < this.e) {\n const added = sorted[i] || this.e,\n next = +added > +this.e ? this.e : added;\n results.push(Interval.fromDateTimes(s, next));\n s = next;\n i += 1;\n }\n\n return results;\n }\n\n /**\n * Split this Interval into smaller Intervals, each of the specified length.\n * Left over time is grouped into a smaller interval\n * @param {Duration|Object|number} duration - The length of each resulting interval.\n * @return {Array}\n */\n splitBy(duration) {\n const dur = Duration.fromDurationLike(duration);\n\n if (!this.isValid || !dur.isValid || dur.as(\"milliseconds\") === 0) {\n return [];\n }\n\n let { s } = this,\n idx = 1,\n next;\n\n const results = [];\n while (s < this.e) {\n const added = this.start.plus(dur.mapUnits((x) => x * idx));\n next = +added > +this.e ? this.e : added;\n results.push(Interval.fromDateTimes(s, next));\n s = next;\n idx += 1;\n }\n\n return results;\n }\n\n /**\n * Split this Interval into the specified number of smaller intervals.\n * @param {number} numberOfParts - The number of Intervals to divide the Interval into.\n * @return {Array}\n */\n divideEqually(numberOfParts) {\n if (!this.isValid) return [];\n return this.splitBy(this.length() / numberOfParts).slice(0, numberOfParts);\n }\n\n /**\n * Return whether this Interval overlaps with the specified Interval\n * @param {Interval} other\n * @return {boolean}\n */\n overlaps(other) {\n return this.e > other.s && this.s < other.e;\n }\n\n /**\n * Return whether this Interval's end is adjacent to the specified Interval's start.\n * @param {Interval} other\n * @return {boolean}\n */\n abutsStart(other) {\n if (!this.isValid) return false;\n return +this.e === +other.s;\n }\n\n /**\n * Return whether this Interval's start is adjacent to the specified Interval's end.\n * @param {Interval} other\n * @return {boolean}\n */\n abutsEnd(other) {\n if (!this.isValid) return false;\n return +other.e === +this.s;\n }\n\n /**\n * Return whether this Interval engulfs the start and end of the specified Interval.\n * @param {Interval} other\n * @return {boolean}\n */\n engulfs(other) {\n if (!this.isValid) return false;\n return this.s <= other.s && this.e >= other.e;\n }\n\n /**\n * Return whether this Interval has the same start and end as the specified Interval.\n * @param {Interval} other\n * @return {boolean}\n */\n equals(other) {\n if (!this.isValid || !other.isValid) {\n return false;\n }\n\n return this.s.equals(other.s) && this.e.equals(other.e);\n }\n\n /**\n * Return an Interval representing the intersection of this Interval and the specified Interval.\n * Specifically, the resulting Interval has the maximum start time and the minimum end time of the two Intervals.\n * Returns null if the intersection is empty, meaning, the intervals don't intersect.\n * @param {Interval} other\n * @return {Interval}\n */\n intersection(other) {\n if (!this.isValid) return this;\n const s = this.s > other.s ? this.s : other.s,\n e = this.e < other.e ? this.e : other.e;\n\n if (s >= e) {\n return null;\n } else {\n return Interval.fromDateTimes(s, e);\n }\n }\n\n /**\n * Return an Interval representing the union of this Interval and the specified Interval.\n * Specifically, the resulting Interval has the minimum start time and the maximum end time of the two Intervals.\n * @param {Interval} other\n * @return {Interval}\n */\n union(other) {\n if (!this.isValid) return this;\n const s = this.s < other.s ? this.s : other.s,\n e = this.e > other.e ? this.e : other.e;\n return Interval.fromDateTimes(s, e);\n }\n\n /**\n * Merge an array of Intervals into a equivalent minimal set of Intervals.\n * Combines overlapping and adjacent Intervals.\n * @param {Array} intervals\n * @return {Array}\n */\n static merge(intervals) {\n const [found, final] = intervals\n .sort((a, b) => a.s - b.s)\n .reduce(\n ([sofar, current], item) => {\n if (!current) {\n return [sofar, item];\n } else if (current.overlaps(item) || current.abutsStart(item)) {\n return [sofar, current.union(item)];\n } else {\n return [sofar.concat([current]), item];\n }\n },\n [[], null]\n );\n if (final) {\n found.push(final);\n }\n return found;\n }\n\n /**\n * Return an array of Intervals representing the spans of time that only appear in one of the specified Intervals.\n * @param {Array} intervals\n * @return {Array}\n */\n static xor(intervals) {\n let start = null,\n currentCount = 0;\n const results = [],\n ends = intervals.map((i) => [\n { time: i.s, type: \"s\" },\n { time: i.e, type: \"e\" },\n ]),\n flattened = Array.prototype.concat(...ends),\n arr = flattened.sort((a, b) => a.time - b.time);\n\n for (const i of arr) {\n currentCount += i.type === \"s\" ? 1 : -1;\n\n if (currentCount === 1) {\n start = i.time;\n } else {\n if (start && +start !== +i.time) {\n results.push(Interval.fromDateTimes(start, i.time));\n }\n\n start = null;\n }\n }\n\n return Interval.merge(results);\n }\n\n /**\n * Return an Interval representing the span of time in this Interval that doesn't overlap with any of the specified Intervals.\n * @param {...Interval} intervals\n * @return {Array}\n */\n difference(...intervals) {\n return Interval.xor([this].concat(intervals))\n .map((i) => this.intersection(i))\n .filter((i) => i && !i.isEmpty());\n }\n\n /**\n * Returns a string representation of this Interval appropriate for debugging.\n * @return {string}\n */\n toString() {\n if (!this.isValid) return INVALID;\n return `[${this.s.toISO()} – ${this.e.toISO()})`;\n }\n\n /**\n * Returns a string representation of this Interval appropriate for the REPL.\n * @return {string}\n */\n [Symbol.for(\"nodejs.util.inspect.custom\")]() {\n if (this.isValid) {\n return `Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`;\n } else {\n return `Interval { Invalid, reason: ${this.invalidReason} }`;\n }\n }\n\n /**\n * Returns a localized string representing this Interval. Accepts the same options as the\n * Intl.DateTimeFormat constructor and any presets defined by Luxon, such as\n * {@link DateTime.DATE_FULL} or {@link DateTime.TIME_SIMPLE}. The exact behavior of this method\n * is browser-specific, but in general it will return an appropriate representation of the\n * Interval in the assigned locale. Defaults to the system's locale if no locale has been\n * specified.\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n * @param {Object} [formatOpts=DateTime.DATE_SHORT] - Either a DateTime preset or\n * Intl.DateTimeFormat constructor options.\n * @param {Object} opts - Options to override the configuration of the start DateTime.\n * @example Interval.fromISO('2022-11-07T09:00Z/2022-11-08T09:00Z').toLocaleString(); //=> 11/7/2022 – 11/8/2022\n * @example Interval.fromISO('2022-11-07T09:00Z/2022-11-08T09:00Z').toLocaleString(DateTime.DATE_FULL); //=> November 7 – 8, 2022\n * @example Interval.fromISO('2022-11-07T09:00Z/2022-11-08T09:00Z').toLocaleString(DateTime.DATE_FULL, { locale: 'fr-FR' }); //=> 7–8 novembre 2022\n * @example Interval.fromISO('2022-11-07T17:00Z/2022-11-07T19:00Z').toLocaleString(DateTime.TIME_SIMPLE); //=> 6:00 – 8:00 PM\n * @example Interval.fromISO('2022-11-07T17:00Z/2022-11-07T19:00Z').toLocaleString({ weekday: 'short', month: 'short', day: '2-digit', hour: '2-digit', minute: '2-digit' }); //=> Mon, Nov 07, 6:00 – 8:00 p\n * @return {string}\n */\n toLocaleString(formatOpts = Formats.DATE_SHORT, opts = {}) {\n return this.isValid\n ? Formatter.create(this.s.loc.clone(opts), formatOpts).formatInterval(this)\n : INVALID;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this Interval.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n * @param {Object} opts - The same options as {@link DateTime#toISO}\n * @return {string}\n */\n toISO(opts) {\n if (!this.isValid) return INVALID;\n return `${this.s.toISO(opts)}/${this.e.toISO(opts)}`;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of date of this Interval.\n * The time components are ignored.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n * @return {string}\n */\n toISODate() {\n if (!this.isValid) return INVALID;\n return `${this.s.toISODate()}/${this.e.toISODate()}`;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of time of this Interval.\n * The date components are ignored.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n * @param {Object} opts - The same options as {@link DateTime#toISO}\n * @return {string}\n */\n toISOTime(opts) {\n if (!this.isValid) return INVALID;\n return `${this.s.toISOTime(opts)}/${this.e.toISOTime(opts)}`;\n }\n\n /**\n * Returns a string representation of this Interval formatted according to the specified format\n * string. **You may not want this.** See {@link Interval#toLocaleString} for a more flexible\n * formatting tool.\n * @param {string} dateFormat - The format string. This string formats the start and end time.\n * See {@link DateTime#toFormat} for details.\n * @param {Object} opts - Options.\n * @param {string} [opts.separator = ' – '] - A separator to place between the start and end\n * representations.\n * @return {string}\n */\n toFormat(dateFormat, { separator = \" – \" } = {}) {\n if (!this.isValid) return INVALID;\n return `${this.s.toFormat(dateFormat)}${separator}${this.e.toFormat(dateFormat)}`;\n }\n\n /**\n * Return a Duration representing the time spanned by this interval.\n * @param {string|string[]} [unit=['milliseconds']] - the unit or units (such as 'hours' or 'days') to include in the duration.\n * @param {Object} opts - options that affect the creation of the Duration\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @example Interval.fromDateTimes(dt1, dt2).toDuration().toObject() //=> { milliseconds: 88489257 }\n * @example Interval.fromDateTimes(dt1, dt2).toDuration('days').toObject() //=> { days: 1.0241812152777778 }\n * @example Interval.fromDateTimes(dt1, dt2).toDuration(['hours', 'minutes']).toObject() //=> { hours: 24, minutes: 34.82095 }\n * @example Interval.fromDateTimes(dt1, dt2).toDuration(['hours', 'minutes', 'seconds']).toObject() //=> { hours: 24, minutes: 34, seconds: 49.257 }\n * @example Interval.fromDateTimes(dt1, dt2).toDuration('seconds').toObject() //=> { seconds: 88489.257 }\n * @return {Duration}\n */\n toDuration(unit, opts) {\n if (!this.isValid) {\n return Duration.invalid(this.invalidReason);\n }\n return this.e.diff(this.s, unit, opts);\n }\n\n /**\n * Run mapFn on the interval start and end, returning a new Interval from the resulting DateTimes\n * @param {function} mapFn\n * @return {Interval}\n * @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.toUTC())\n * @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.plus({ hours: 2 }))\n */\n mapEndpoints(mapFn) {\n return Interval.fromDateTimes(mapFn(this.s), mapFn(this.e));\n }\n}\n","import DateTime from \"./datetime.js\";\nimport Settings from \"./settings.js\";\nimport Locale from \"./impl/locale.js\";\nimport IANAZone from \"./zones/IANAZone.js\";\nimport { normalizeZone } from \"./impl/zoneUtil.js\";\n\nimport { hasLocaleWeekInfo, hasRelative } from \"./impl/util.js\";\n\n/**\n * The Info class contains static methods for retrieving general time and date related data. For example, it has methods for finding out if a time zone has a DST, for listing the months in any supported locale, and for discovering which of Luxon features are available in the current environment.\n */\nexport default class Info {\n /**\n * Return whether the specified zone contains a DST.\n * @param {string|Zone} [zone='local'] - Zone to check. Defaults to the environment's local zone.\n * @return {boolean}\n */\n static hasDST(zone = Settings.defaultZone) {\n const proto = DateTime.now().setZone(zone).set({ month: 12 });\n\n return !zone.isUniversal && proto.offset !== proto.set({ month: 6 }).offset;\n }\n\n /**\n * Return whether the specified zone is a valid IANA specifier.\n * @param {string} zone - Zone to check\n * @return {boolean}\n */\n static isValidIANAZone(zone) {\n return IANAZone.isValidZone(zone);\n }\n\n /**\n * Converts the input into a {@link Zone} instance.\n *\n * * If `input` is already a Zone instance, it is returned unchanged.\n * * If `input` is a string containing a valid time zone name, a Zone instance\n * with that name is returned.\n * * If `input` is a string that doesn't refer to a known time zone, a Zone\n * instance with {@link Zone#isValid} == false is returned.\n * * If `input is a number, a Zone instance with the specified fixed offset\n * in minutes is returned.\n * * If `input` is `null` or `undefined`, the default zone is returned.\n * @param {string|Zone|number} [input] - the value to be converted\n * @return {Zone}\n */\n static normalizeZone(input) {\n return normalizeZone(input, Settings.defaultZone);\n }\n\n /**\n * Get the weekday on which the week starts according to the given locale.\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @returns {number} the start of the week, 1 for Monday through 7 for Sunday\n */\n static getStartOfWeek({ locale = null, locObj = null } = {}) {\n return (locObj || Locale.create(locale)).getStartOfWeek();\n }\n\n /**\n * Get the minimum number of days necessary in a week before it is considered part of the next year according\n * to the given locale.\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @returns {number}\n */\n static getMinimumDaysInFirstWeek({ locale = null, locObj = null } = {}) {\n return (locObj || Locale.create(locale)).getMinDaysInFirstWeek();\n }\n\n /**\n * Get the weekdays, which are considered the weekend according to the given locale\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @returns {number[]} an array of weekdays, 1 for Monday through 7 for Sunday\n */\n static getWeekendWeekdays({ locale = null, locObj = null } = {}) {\n // copy the array, because we cache it internally\n return (locObj || Locale.create(locale)).getWeekendDays().slice();\n }\n\n /**\n * Return an array of standalone month names.\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n * @param {string} [length='long'] - the length of the month representation, such as \"numeric\", \"2-digit\", \"narrow\", \"short\", \"long\"\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @param {string} [opts.outputCalendar='gregory'] - the calendar\n * @example Info.months()[0] //=> 'January'\n * @example Info.months('short')[0] //=> 'Jan'\n * @example Info.months('numeric')[0] //=> '1'\n * @example Info.months('short', { locale: 'fr-CA' } )[0] //=> 'janv.'\n * @example Info.months('numeric', { locale: 'ar' })[0] //=> '١'\n * @example Info.months('long', { outputCalendar: 'islamic' })[0] //=> 'Rabiʻ I'\n * @return {Array}\n */\n static months(\n length = \"long\",\n { locale = null, numberingSystem = null, locObj = null, outputCalendar = \"gregory\" } = {}\n ) {\n return (locObj || Locale.create(locale, numberingSystem, outputCalendar)).months(length);\n }\n\n /**\n * Return an array of format month names.\n * Format months differ from standalone months in that they're meant to appear next to the day of the month. In some languages, that\n * changes the string.\n * See {@link Info#months}\n * @param {string} [length='long'] - the length of the month representation, such as \"numeric\", \"2-digit\", \"narrow\", \"short\", \"long\"\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @param {string} [opts.outputCalendar='gregory'] - the calendar\n * @return {Array}\n */\n static monthsFormat(\n length = \"long\",\n { locale = null, numberingSystem = null, locObj = null, outputCalendar = \"gregory\" } = {}\n ) {\n return (locObj || Locale.create(locale, numberingSystem, outputCalendar)).months(length, true);\n }\n\n /**\n * Return an array of standalone week names.\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n * @param {string} [length='long'] - the length of the weekday representation, such as \"narrow\", \"short\", \"long\".\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @example Info.weekdays()[0] //=> 'Monday'\n * @example Info.weekdays('short')[0] //=> 'Mon'\n * @example Info.weekdays('short', { locale: 'fr-CA' })[0] //=> 'lun.'\n * @example Info.weekdays('short', { locale: 'ar' })[0] //=> 'الاثنين'\n * @return {Array}\n */\n static weekdays(length = \"long\", { locale = null, numberingSystem = null, locObj = null } = {}) {\n return (locObj || Locale.create(locale, numberingSystem, null)).weekdays(length);\n }\n\n /**\n * Return an array of format week names.\n * Format weekdays differ from standalone weekdays in that they're meant to appear next to more date information. In some languages, that\n * changes the string.\n * See {@link Info#weekdays}\n * @param {string} [length='long'] - the length of the month representation, such as \"narrow\", \"short\", \"long\".\n * @param {Object} opts - options\n * @param {string} [opts.locale=null] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @return {Array}\n */\n static weekdaysFormat(\n length = \"long\",\n { locale = null, numberingSystem = null, locObj = null } = {}\n ) {\n return (locObj || Locale.create(locale, numberingSystem, null)).weekdays(length, true);\n }\n\n /**\n * Return an array of meridiems.\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @example Info.meridiems() //=> [ 'AM', 'PM' ]\n * @example Info.meridiems({ locale: 'my' }) //=> [ 'နံနက်', 'ညနေ' ]\n * @return {Array}\n */\n static meridiems({ locale = null } = {}) {\n return Locale.create(locale).meridiems();\n }\n\n /**\n * Return an array of eras, such as ['BC', 'AD']. The locale can be specified, but the calendar system is always Gregorian.\n * @param {string} [length='short'] - the length of the era representation, such as \"short\" or \"long\".\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @example Info.eras() //=> [ 'BC', 'AD' ]\n * @example Info.eras('long') //=> [ 'Before Christ', 'Anno Domini' ]\n * @example Info.eras('long', { locale: 'fr' }) //=> [ 'avant Jésus-Christ', 'après Jésus-Christ' ]\n * @return {Array}\n */\n static eras(length = \"short\", { locale = null } = {}) {\n return Locale.create(locale, null, \"gregory\").eras(length);\n }\n\n /**\n * Return the set of available features in this environment.\n * Some features of Luxon are not available in all environments. For example, on older browsers, relative time formatting support is not available. Use this function to figure out if that's the case.\n * Keys:\n * * `relative`: whether this environment supports relative time formatting\n * * `localeWeek`: whether this environment supports different weekdays for the start of the week based on the locale\n * @example Info.features() //=> { relative: false, localeWeek: true }\n * @return {Object}\n */\n static features() {\n return { relative: hasRelative(), localeWeek: hasLocaleWeekInfo() };\n }\n}\n","import Duration from \"../duration.js\";\n\nfunction dayDiff(earlier, later) {\n const utcDayStart = (dt) => dt.toUTC(0, { keepLocalTime: true }).startOf(\"day\").valueOf(),\n ms = utcDayStart(later) - utcDayStart(earlier);\n return Math.floor(Duration.fromMillis(ms).as(\"days\"));\n}\n\nfunction highOrderDiffs(cursor, later, units) {\n const differs = [\n [\"years\", (a, b) => b.year - a.year],\n [\"quarters\", (a, b) => b.quarter - a.quarter + (b.year - a.year) * 4],\n [\"months\", (a, b) => b.month - a.month + (b.year - a.year) * 12],\n [\n \"weeks\",\n (a, b) => {\n const days = dayDiff(a, b);\n return (days - (days % 7)) / 7;\n },\n ],\n [\"days\", dayDiff],\n ];\n\n const results = {};\n const earlier = cursor;\n let lowestOrder, highWater;\n\n /* This loop tries to diff using larger units first.\n If we overshoot, we backtrack and try the next smaller unit.\n \"cursor\" starts out at the earlier timestamp and moves closer and closer to \"later\"\n as we use smaller and smaller units.\n highWater keeps track of where we would be if we added one more of the smallest unit,\n this is used later to potentially convert any difference smaller than the smallest higher order unit\n into a fraction of that smallest higher order unit\n */\n for (const [unit, differ] of differs) {\n if (units.indexOf(unit) >= 0) {\n lowestOrder = unit;\n\n results[unit] = differ(cursor, later);\n highWater = earlier.plus(results);\n\n if (highWater > later) {\n // we overshot the end point, backtrack cursor by 1\n results[unit]--;\n cursor = earlier.plus(results);\n\n // if we are still overshooting now, we need to backtrack again\n // this happens in certain situations when diffing times in different zones,\n // because this calculation ignores time zones\n if (cursor > later) {\n // keep the \"overshot by 1\" around as highWater\n highWater = cursor;\n // backtrack cursor by 1\n results[unit]--;\n cursor = earlier.plus(results);\n }\n } else {\n cursor = highWater;\n }\n }\n }\n\n return [cursor, results, highWater, lowestOrder];\n}\n\nexport default function (earlier, later, units, opts) {\n let [cursor, results, highWater, lowestOrder] = highOrderDiffs(earlier, later, units);\n\n const remainingMillis = later - cursor;\n\n const lowerOrderUnits = units.filter(\n (u) => [\"hours\", \"minutes\", \"seconds\", \"milliseconds\"].indexOf(u) >= 0\n );\n\n if (lowerOrderUnits.length === 0) {\n if (highWater < later) {\n highWater = cursor.plus({ [lowestOrder]: 1 });\n }\n\n if (highWater !== cursor) {\n results[lowestOrder] = (results[lowestOrder] || 0) + remainingMillis / (highWater - cursor);\n }\n }\n\n const duration = Duration.fromObject(results, opts);\n\n if (lowerOrderUnits.length > 0) {\n return Duration.fromMillis(remainingMillis, opts)\n .shiftTo(...lowerOrderUnits)\n .plus(duration);\n } else {\n return duration;\n }\n}\n","const numberingSystems = {\n arab: \"[\\u0660-\\u0669]\",\n arabext: \"[\\u06F0-\\u06F9]\",\n bali: \"[\\u1B50-\\u1B59]\",\n beng: \"[\\u09E6-\\u09EF]\",\n deva: \"[\\u0966-\\u096F]\",\n fullwide: \"[\\uFF10-\\uFF19]\",\n gujr: \"[\\u0AE6-\\u0AEF]\",\n hanidec: \"[〇|一|二|三|四|五|六|七|八|九]\",\n khmr: \"[\\u17E0-\\u17E9]\",\n knda: \"[\\u0CE6-\\u0CEF]\",\n laoo: \"[\\u0ED0-\\u0ED9]\",\n limb: \"[\\u1946-\\u194F]\",\n mlym: \"[\\u0D66-\\u0D6F]\",\n mong: \"[\\u1810-\\u1819]\",\n mymr: \"[\\u1040-\\u1049]\",\n orya: \"[\\u0B66-\\u0B6F]\",\n tamldec: \"[\\u0BE6-\\u0BEF]\",\n telu: \"[\\u0C66-\\u0C6F]\",\n thai: \"[\\u0E50-\\u0E59]\",\n tibt: \"[\\u0F20-\\u0F29]\",\n latn: \"\\\\d\",\n};\n\nconst numberingSystemsUTF16 = {\n arab: [1632, 1641],\n arabext: [1776, 1785],\n bali: [6992, 7001],\n beng: [2534, 2543],\n deva: [2406, 2415],\n fullwide: [65296, 65303],\n gujr: [2790, 2799],\n khmr: [6112, 6121],\n knda: [3302, 3311],\n laoo: [3792, 3801],\n limb: [6470, 6479],\n mlym: [3430, 3439],\n mong: [6160, 6169],\n mymr: [4160, 4169],\n orya: [2918, 2927],\n tamldec: [3046, 3055],\n telu: [3174, 3183],\n thai: [3664, 3673],\n tibt: [3872, 3881],\n};\n\nconst hanidecChars = numberingSystems.hanidec.replace(/[\\[|\\]]/g, \"\").split(\"\");\n\nexport function parseDigits(str) {\n let value = parseInt(str, 10);\n if (isNaN(value)) {\n value = \"\";\n for (let i = 0; i < str.length; i++) {\n const code = str.charCodeAt(i);\n\n if (str[i].search(numberingSystems.hanidec) !== -1) {\n value += hanidecChars.indexOf(str[i]);\n } else {\n for (const key in numberingSystemsUTF16) {\n const [min, max] = numberingSystemsUTF16[key];\n if (code >= min && code <= max) {\n value += code - min;\n }\n }\n }\n }\n return parseInt(value, 10);\n } else {\n return value;\n }\n}\n\nexport function digitRegex({ numberingSystem }, append = \"\") {\n return new RegExp(`${numberingSystems[numberingSystem || \"latn\"]}${append}`);\n}\n","import { parseMillis, isUndefined, untruncateYear, signedOffset, hasOwnProperty } from \"./util.js\";\nimport Formatter from \"./formatter.js\";\nimport FixedOffsetZone from \"../zones/fixedOffsetZone.js\";\nimport IANAZone from \"../zones/IANAZone.js\";\nimport DateTime from \"../datetime.js\";\nimport { digitRegex, parseDigits } from \"./digits.js\";\nimport { ConflictingSpecificationError } from \"../errors.js\";\n\nconst MISSING_FTP = \"missing Intl.DateTimeFormat.formatToParts support\";\n\nfunction intUnit(regex, post = (i) => i) {\n return { regex, deser: ([s]) => post(parseDigits(s)) };\n}\n\nconst NBSP = String.fromCharCode(160);\nconst spaceOrNBSP = `[ ${NBSP}]`;\nconst spaceOrNBSPRegExp = new RegExp(spaceOrNBSP, \"g\");\n\nfunction fixListRegex(s) {\n // make dots optional and also make them literal\n // make space and non breakable space characters interchangeable\n return s.replace(/\\./g, \"\\\\.?\").replace(spaceOrNBSPRegExp, spaceOrNBSP);\n}\n\nfunction stripInsensitivities(s) {\n return s\n .replace(/\\./g, \"\") // ignore dots that were made optional\n .replace(spaceOrNBSPRegExp, \" \") // interchange space and nbsp\n .toLowerCase();\n}\n\nfunction oneOf(strings, startIndex) {\n if (strings === null) {\n return null;\n } else {\n return {\n regex: RegExp(strings.map(fixListRegex).join(\"|\")),\n deser: ([s]) =>\n strings.findIndex((i) => stripInsensitivities(s) === stripInsensitivities(i)) + startIndex,\n };\n }\n}\n\nfunction offset(regex, groups) {\n return { regex, deser: ([, h, m]) => signedOffset(h, m), groups };\n}\n\nfunction simple(regex) {\n return { regex, deser: ([s]) => s };\n}\n\nfunction escapeToken(value) {\n return value.replace(/[\\-\\[\\]{}()*+?.,\\\\\\^$|#\\s]/g, \"\\\\$&\");\n}\n\n/**\n * @param token\n * @param {Locale} loc\n */\nfunction unitForToken(token, loc) {\n const one = digitRegex(loc),\n two = digitRegex(loc, \"{2}\"),\n three = digitRegex(loc, \"{3}\"),\n four = digitRegex(loc, \"{4}\"),\n six = digitRegex(loc, \"{6}\"),\n oneOrTwo = digitRegex(loc, \"{1,2}\"),\n oneToThree = digitRegex(loc, \"{1,3}\"),\n oneToSix = digitRegex(loc, \"{1,6}\"),\n oneToNine = digitRegex(loc, \"{1,9}\"),\n twoToFour = digitRegex(loc, \"{2,4}\"),\n fourToSix = digitRegex(loc, \"{4,6}\"),\n literal = (t) => ({ regex: RegExp(escapeToken(t.val)), deser: ([s]) => s, literal: true }),\n unitate = (t) => {\n if (token.literal) {\n return literal(t);\n }\n switch (t.val) {\n // era\n case \"G\":\n return oneOf(loc.eras(\"short\"), 0);\n case \"GG\":\n return oneOf(loc.eras(\"long\"), 0);\n // years\n case \"y\":\n return intUnit(oneToSix);\n case \"yy\":\n return intUnit(twoToFour, untruncateYear);\n case \"yyyy\":\n return intUnit(four);\n case \"yyyyy\":\n return intUnit(fourToSix);\n case \"yyyyyy\":\n return intUnit(six);\n // months\n case \"M\":\n return intUnit(oneOrTwo);\n case \"MM\":\n return intUnit(two);\n case \"MMM\":\n return oneOf(loc.months(\"short\", true), 1);\n case \"MMMM\":\n return oneOf(loc.months(\"long\", true), 1);\n case \"L\":\n return intUnit(oneOrTwo);\n case \"LL\":\n return intUnit(two);\n case \"LLL\":\n return oneOf(loc.months(\"short\", false), 1);\n case \"LLLL\":\n return oneOf(loc.months(\"long\", false), 1);\n // dates\n case \"d\":\n return intUnit(oneOrTwo);\n case \"dd\":\n return intUnit(two);\n // ordinals\n case \"o\":\n return intUnit(oneToThree);\n case \"ooo\":\n return intUnit(three);\n // time\n case \"HH\":\n return intUnit(two);\n case \"H\":\n return intUnit(oneOrTwo);\n case \"hh\":\n return intUnit(two);\n case \"h\":\n return intUnit(oneOrTwo);\n case \"mm\":\n return intUnit(two);\n case \"m\":\n return intUnit(oneOrTwo);\n case \"q\":\n return intUnit(oneOrTwo);\n case \"qq\":\n return intUnit(two);\n case \"s\":\n return intUnit(oneOrTwo);\n case \"ss\":\n return intUnit(two);\n case \"S\":\n return intUnit(oneToThree);\n case \"SSS\":\n return intUnit(three);\n case \"u\":\n return simple(oneToNine);\n case \"uu\":\n return simple(oneOrTwo);\n case \"uuu\":\n return intUnit(one);\n // meridiem\n case \"a\":\n return oneOf(loc.meridiems(), 0);\n // weekYear (k)\n case \"kkkk\":\n return intUnit(four);\n case \"kk\":\n return intUnit(twoToFour, untruncateYear);\n // weekNumber (W)\n case \"W\":\n return intUnit(oneOrTwo);\n case \"WW\":\n return intUnit(two);\n // weekdays\n case \"E\":\n case \"c\":\n return intUnit(one);\n case \"EEE\":\n return oneOf(loc.weekdays(\"short\", false), 1);\n case \"EEEE\":\n return oneOf(loc.weekdays(\"long\", false), 1);\n case \"ccc\":\n return oneOf(loc.weekdays(\"short\", true), 1);\n case \"cccc\":\n return oneOf(loc.weekdays(\"long\", true), 1);\n // offset/zone\n case \"Z\":\n case \"ZZ\":\n return offset(new RegExp(`([+-]${oneOrTwo.source})(?::(${two.source}))?`), 2);\n case \"ZZZ\":\n return offset(new RegExp(`([+-]${oneOrTwo.source})(${two.source})?`), 2);\n // we don't support ZZZZ (PST) or ZZZZZ (Pacific Standard Time) in parsing\n // because we don't have any way to figure out what they are\n case \"z\":\n return simple(/[a-z_+-/]{1,256}?/i);\n // this special-case \"token\" represents a place where a macro-token expanded into a white-space literal\n // in this case we accept any non-newline white-space\n case \" \":\n return simple(/[^\\S\\n\\r]/);\n default:\n return literal(t);\n }\n };\n\n const unit = unitate(token) || {\n invalidReason: MISSING_FTP,\n };\n\n unit.token = token;\n\n return unit;\n}\n\nconst partTypeStyleToTokenVal = {\n year: {\n \"2-digit\": \"yy\",\n numeric: \"yyyyy\",\n },\n month: {\n numeric: \"M\",\n \"2-digit\": \"MM\",\n short: \"MMM\",\n long: \"MMMM\",\n },\n day: {\n numeric: \"d\",\n \"2-digit\": \"dd\",\n },\n weekday: {\n short: \"EEE\",\n long: \"EEEE\",\n },\n dayperiod: \"a\",\n dayPeriod: \"a\",\n hour12: {\n numeric: \"h\",\n \"2-digit\": \"hh\",\n },\n hour24: {\n numeric: \"H\",\n \"2-digit\": \"HH\",\n },\n minute: {\n numeric: \"m\",\n \"2-digit\": \"mm\",\n },\n second: {\n numeric: \"s\",\n \"2-digit\": \"ss\",\n },\n timeZoneName: {\n long: \"ZZZZZ\",\n short: \"ZZZ\",\n },\n};\n\nfunction tokenForPart(part, formatOpts, resolvedOpts) {\n const { type, value } = part;\n\n if (type === \"literal\") {\n const isSpace = /^\\s+$/.test(value);\n return {\n literal: !isSpace,\n val: isSpace ? \" \" : value,\n };\n }\n\n const style = formatOpts[type];\n\n // The user might have explicitly specified hour12 or hourCycle\n // if so, respect their decision\n // if not, refer back to the resolvedOpts, which are based on the locale\n let actualType = type;\n if (type === \"hour\") {\n if (formatOpts.hour12 != null) {\n actualType = formatOpts.hour12 ? \"hour12\" : \"hour24\";\n } else if (formatOpts.hourCycle != null) {\n if (formatOpts.hourCycle === \"h11\" || formatOpts.hourCycle === \"h12\") {\n actualType = \"hour12\";\n } else {\n actualType = \"hour24\";\n }\n } else {\n // tokens only differentiate between 24 hours or not,\n // so we do not need to check hourCycle here, which is less supported anyways\n actualType = resolvedOpts.hour12 ? \"hour12\" : \"hour24\";\n }\n }\n let val = partTypeStyleToTokenVal[actualType];\n if (typeof val === \"object\") {\n val = val[style];\n }\n\n if (val) {\n return {\n literal: false,\n val,\n };\n }\n\n return undefined;\n}\n\nfunction buildRegex(units) {\n const re = units.map((u) => u.regex).reduce((f, r) => `${f}(${r.source})`, \"\");\n return [`^${re}$`, units];\n}\n\nfunction match(input, regex, handlers) {\n const matches = input.match(regex);\n\n if (matches) {\n const all = {};\n let matchIndex = 1;\n for (const i in handlers) {\n if (hasOwnProperty(handlers, i)) {\n const h = handlers[i],\n groups = h.groups ? h.groups + 1 : 1;\n if (!h.literal && h.token) {\n all[h.token.val[0]] = h.deser(matches.slice(matchIndex, matchIndex + groups));\n }\n matchIndex += groups;\n }\n }\n return [matches, all];\n } else {\n return [matches, {}];\n }\n}\n\nfunction dateTimeFromMatches(matches) {\n const toField = (token) => {\n switch (token) {\n case \"S\":\n return \"millisecond\";\n case \"s\":\n return \"second\";\n case \"m\":\n return \"minute\";\n case \"h\":\n case \"H\":\n return \"hour\";\n case \"d\":\n return \"day\";\n case \"o\":\n return \"ordinal\";\n case \"L\":\n case \"M\":\n return \"month\";\n case \"y\":\n return \"year\";\n case \"E\":\n case \"c\":\n return \"weekday\";\n case \"W\":\n return \"weekNumber\";\n case \"k\":\n return \"weekYear\";\n case \"q\":\n return \"quarter\";\n default:\n return null;\n }\n };\n\n let zone = null;\n let specificOffset;\n if (!isUndefined(matches.z)) {\n zone = IANAZone.create(matches.z);\n }\n\n if (!isUndefined(matches.Z)) {\n if (!zone) {\n zone = new FixedOffsetZone(matches.Z);\n }\n specificOffset = matches.Z;\n }\n\n if (!isUndefined(matches.q)) {\n matches.M = (matches.q - 1) * 3 + 1;\n }\n\n if (!isUndefined(matches.h)) {\n if (matches.h < 12 && matches.a === 1) {\n matches.h += 12;\n } else if (matches.h === 12 && matches.a === 0) {\n matches.h = 0;\n }\n }\n\n if (matches.G === 0 && matches.y) {\n matches.y = -matches.y;\n }\n\n if (!isUndefined(matches.u)) {\n matches.S = parseMillis(matches.u);\n }\n\n const vals = Object.keys(matches).reduce((r, k) => {\n const f = toField(k);\n if (f) {\n r[f] = matches[k];\n }\n\n return r;\n }, {});\n\n return [vals, zone, specificOffset];\n}\n\nlet dummyDateTimeCache = null;\n\nfunction getDummyDateTime() {\n if (!dummyDateTimeCache) {\n dummyDateTimeCache = DateTime.fromMillis(1555555555555);\n }\n\n return dummyDateTimeCache;\n}\n\nfunction maybeExpandMacroToken(token, locale) {\n if (token.literal) {\n return token;\n }\n\n const formatOpts = Formatter.macroTokenToFormatOpts(token.val);\n const tokens = formatOptsToTokens(formatOpts, locale);\n\n if (tokens == null || tokens.includes(undefined)) {\n return token;\n }\n\n return tokens;\n}\n\nexport function expandMacroTokens(tokens, locale) {\n return Array.prototype.concat(...tokens.map((t) => maybeExpandMacroToken(t, locale)));\n}\n\n/**\n * @private\n */\n\nexport function explainFromTokens(locale, input, format) {\n const tokens = expandMacroTokens(Formatter.parseFormat(format), locale),\n units = tokens.map((t) => unitForToken(t, locale)),\n disqualifyingUnit = units.find((t) => t.invalidReason);\n\n if (disqualifyingUnit) {\n return { input, tokens, invalidReason: disqualifyingUnit.invalidReason };\n } else {\n const [regexString, handlers] = buildRegex(units),\n regex = RegExp(regexString, \"i\"),\n [rawMatches, matches] = match(input, regex, handlers),\n [result, zone, specificOffset] = matches\n ? dateTimeFromMatches(matches)\n : [null, null, undefined];\n if (hasOwnProperty(matches, \"a\") && hasOwnProperty(matches, \"H\")) {\n throw new ConflictingSpecificationError(\n \"Can't include meridiem when specifying 24-hour format\"\n );\n }\n return { input, tokens, regex, rawMatches, matches, result, zone, specificOffset };\n }\n}\n\nexport function parseFromTokens(locale, input, format) {\n const { result, zone, specificOffset, invalidReason } = explainFromTokens(locale, input, format);\n return [result, zone, specificOffset, invalidReason];\n}\n\nexport function formatOptsToTokens(formatOpts, locale) {\n if (!formatOpts) {\n return null;\n }\n\n const formatter = Formatter.create(locale, formatOpts);\n const df = formatter.dtFormatter(getDummyDateTime());\n const parts = df.formatToParts();\n const resolvedOpts = df.resolvedOptions();\n return parts.map((p) => tokenForPart(p, formatOpts, resolvedOpts));\n}\n","import Duration from \"./duration.js\";\nimport Interval from \"./interval.js\";\nimport Settings from \"./settings.js\";\nimport Info from \"./info.js\";\nimport Formatter from \"./impl/formatter.js\";\nimport FixedOffsetZone from \"./zones/fixedOffsetZone.js\";\nimport Locale from \"./impl/locale.js\";\nimport {\n isUndefined,\n maybeArray,\n isDate,\n isNumber,\n bestBy,\n daysInMonth,\n daysInYear,\n isLeapYear,\n weeksInWeekYear,\n normalizeObject,\n roundTo,\n objToLocalTS,\n padStart,\n} from \"./impl/util.js\";\nimport { normalizeZone } from \"./impl/zoneUtil.js\";\nimport diff from \"./impl/diff.js\";\nimport { parseRFC2822Date, parseISODate, parseHTTPDate, parseSQL } from \"./impl/regexParser.js\";\nimport {\n parseFromTokens,\n explainFromTokens,\n formatOptsToTokens,\n expandMacroTokens,\n} from \"./impl/tokenParser.js\";\nimport {\n gregorianToWeek,\n weekToGregorian,\n gregorianToOrdinal,\n ordinalToGregorian,\n hasInvalidGregorianData,\n hasInvalidWeekData,\n hasInvalidOrdinalData,\n hasInvalidTimeData,\n usesLocalWeekValues,\n isoWeekdayToLocal,\n} from \"./impl/conversions.js\";\nimport * as Formats from \"./impl/formats.js\";\nimport {\n InvalidArgumentError,\n ConflictingSpecificationError,\n InvalidUnitError,\n InvalidDateTimeError,\n} from \"./errors.js\";\nimport Invalid from \"./impl/invalid.js\";\n\nconst INVALID = \"Invalid DateTime\";\nconst MAX_DATE = 8.64e15;\n\nfunction unsupportedZone(zone) {\n return new Invalid(\"unsupported zone\", `the zone \"${zone.name}\" is not supported`);\n}\n\n// we cache week data on the DT object and this intermediates the cache\n/**\n * @param {DateTime} dt\n */\nfunction possiblyCachedWeekData(dt) {\n if (dt.weekData === null) {\n dt.weekData = gregorianToWeek(dt.c);\n }\n return dt.weekData;\n}\n\n/**\n * @param {DateTime} dt\n */\nfunction possiblyCachedLocalWeekData(dt) {\n if (dt.localWeekData === null) {\n dt.localWeekData = gregorianToWeek(\n dt.c,\n dt.loc.getMinDaysInFirstWeek(),\n dt.loc.getStartOfWeek()\n );\n }\n return dt.localWeekData;\n}\n\n// clone really means, \"make a new object with these modifications\". all \"setters\" really use this\n// to create a new object while only changing some of the properties\nfunction clone(inst, alts) {\n const current = {\n ts: inst.ts,\n zone: inst.zone,\n c: inst.c,\n o: inst.o,\n loc: inst.loc,\n invalid: inst.invalid,\n };\n return new DateTime({ ...current, ...alts, old: current });\n}\n\n// find the right offset a given local time. The o input is our guess, which determines which\n// offset we'll pick in ambiguous cases (e.g. there are two 3 AMs b/c Fallback DST)\nfunction fixOffset(localTS, o, tz) {\n // Our UTC time is just a guess because our offset is just a guess\n let utcGuess = localTS - o * 60 * 1000;\n\n // Test whether the zone matches the offset for this ts\n const o2 = tz.offset(utcGuess);\n\n // If so, offset didn't change and we're done\n if (o === o2) {\n return [utcGuess, o];\n }\n\n // If not, change the ts by the difference in the offset\n utcGuess -= (o2 - o) * 60 * 1000;\n\n // If that gives us the local time we want, we're done\n const o3 = tz.offset(utcGuess);\n if (o2 === o3) {\n return [utcGuess, o2];\n }\n\n // If it's different, we're in a hole time. The offset has changed, but the we don't adjust the time\n return [localTS - Math.min(o2, o3) * 60 * 1000, Math.max(o2, o3)];\n}\n\n// convert an epoch timestamp into a calendar object with the given offset\nfunction tsToObj(ts, offset) {\n ts += offset * 60 * 1000;\n\n const d = new Date(ts);\n\n return {\n year: d.getUTCFullYear(),\n month: d.getUTCMonth() + 1,\n day: d.getUTCDate(),\n hour: d.getUTCHours(),\n minute: d.getUTCMinutes(),\n second: d.getUTCSeconds(),\n millisecond: d.getUTCMilliseconds(),\n };\n}\n\n// convert a calendar object to a epoch timestamp\nfunction objToTS(obj, offset, zone) {\n return fixOffset(objToLocalTS(obj), offset, zone);\n}\n\n// create a new DT instance by adding a duration, adjusting for DSTs\nfunction adjustTime(inst, dur) {\n const oPre = inst.o,\n year = inst.c.year + Math.trunc(dur.years),\n month = inst.c.month + Math.trunc(dur.months) + Math.trunc(dur.quarters) * 3,\n c = {\n ...inst.c,\n year,\n month,\n day:\n Math.min(inst.c.day, daysInMonth(year, month)) +\n Math.trunc(dur.days) +\n Math.trunc(dur.weeks) * 7,\n },\n millisToAdd = Duration.fromObject({\n years: dur.years - Math.trunc(dur.years),\n quarters: dur.quarters - Math.trunc(dur.quarters),\n months: dur.months - Math.trunc(dur.months),\n weeks: dur.weeks - Math.trunc(dur.weeks),\n days: dur.days - Math.trunc(dur.days),\n hours: dur.hours,\n minutes: dur.minutes,\n seconds: dur.seconds,\n milliseconds: dur.milliseconds,\n }).as(\"milliseconds\"),\n localTS = objToLocalTS(c);\n\n let [ts, o] = fixOffset(localTS, oPre, inst.zone);\n\n if (millisToAdd !== 0) {\n ts += millisToAdd;\n // that could have changed the offset by going over a DST, but we want to keep the ts the same\n o = inst.zone.offset(ts);\n }\n\n return { ts, o };\n}\n\n// helper useful in turning the results of parsing into real dates\n// by handling the zone options\nfunction parseDataToDateTime(parsed, parsedZone, opts, format, text, specificOffset) {\n const { setZone, zone } = opts;\n if ((parsed && Object.keys(parsed).length !== 0) || parsedZone) {\n const interpretationZone = parsedZone || zone,\n inst = DateTime.fromObject(parsed, {\n ...opts,\n zone: interpretationZone,\n specificOffset,\n });\n return setZone ? inst : inst.setZone(zone);\n } else {\n return DateTime.invalid(\n new Invalid(\"unparsable\", `the input \"${text}\" can't be parsed as ${format}`)\n );\n }\n}\n\n// if you want to output a technical format (e.g. RFC 2822), this helper\n// helps handle the details\nfunction toTechFormat(dt, format, allowZ = true) {\n return dt.isValid\n ? Formatter.create(Locale.create(\"en-US\"), {\n allowZ,\n forceSimple: true,\n }).formatDateTimeFromString(dt, format)\n : null;\n}\n\nfunction toISODate(o, extended) {\n const longFormat = o.c.year > 9999 || o.c.year < 0;\n let c = \"\";\n if (longFormat && o.c.year >= 0) c += \"+\";\n c += padStart(o.c.year, longFormat ? 6 : 4);\n\n if (extended) {\n c += \"-\";\n c += padStart(o.c.month);\n c += \"-\";\n c += padStart(o.c.day);\n } else {\n c += padStart(o.c.month);\n c += padStart(o.c.day);\n }\n return c;\n}\n\nfunction toISOTime(\n o,\n extended,\n suppressSeconds,\n suppressMilliseconds,\n includeOffset,\n extendedZone\n) {\n let c = padStart(o.c.hour);\n if (extended) {\n c += \":\";\n c += padStart(o.c.minute);\n if (o.c.millisecond !== 0 || o.c.second !== 0 || !suppressSeconds) {\n c += \":\";\n }\n } else {\n c += padStart(o.c.minute);\n }\n\n if (o.c.millisecond !== 0 || o.c.second !== 0 || !suppressSeconds) {\n c += padStart(o.c.second);\n\n if (o.c.millisecond !== 0 || !suppressMilliseconds) {\n c += \".\";\n c += padStart(o.c.millisecond, 3);\n }\n }\n\n if (includeOffset) {\n if (o.isOffsetFixed && o.offset === 0 && !extendedZone) {\n c += \"Z\";\n } else if (o.o < 0) {\n c += \"-\";\n c += padStart(Math.trunc(-o.o / 60));\n c += \":\";\n c += padStart(Math.trunc(-o.o % 60));\n } else {\n c += \"+\";\n c += padStart(Math.trunc(o.o / 60));\n c += \":\";\n c += padStart(Math.trunc(o.o % 60));\n }\n }\n\n if (extendedZone) {\n c += \"[\" + o.zone.ianaName + \"]\";\n }\n return c;\n}\n\n// defaults for unspecified units in the supported calendars\nconst defaultUnitValues = {\n month: 1,\n day: 1,\n hour: 0,\n minute: 0,\n second: 0,\n millisecond: 0,\n },\n defaultWeekUnitValues = {\n weekNumber: 1,\n weekday: 1,\n hour: 0,\n minute: 0,\n second: 0,\n millisecond: 0,\n },\n defaultOrdinalUnitValues = {\n ordinal: 1,\n hour: 0,\n minute: 0,\n second: 0,\n millisecond: 0,\n };\n\n// Units in the supported calendars, sorted by bigness\nconst orderedUnits = [\"year\", \"month\", \"day\", \"hour\", \"minute\", \"second\", \"millisecond\"],\n orderedWeekUnits = [\n \"weekYear\",\n \"weekNumber\",\n \"weekday\",\n \"hour\",\n \"minute\",\n \"second\",\n \"millisecond\",\n ],\n orderedOrdinalUnits = [\"year\", \"ordinal\", \"hour\", \"minute\", \"second\", \"millisecond\"];\n\n// standardize case and plurality in units\nfunction normalizeUnit(unit) {\n const normalized = {\n year: \"year\",\n years: \"year\",\n month: \"month\",\n months: \"month\",\n day: \"day\",\n days: \"day\",\n hour: \"hour\",\n hours: \"hour\",\n minute: \"minute\",\n minutes: \"minute\",\n quarter: \"quarter\",\n quarters: \"quarter\",\n second: \"second\",\n seconds: \"second\",\n millisecond: \"millisecond\",\n milliseconds: \"millisecond\",\n weekday: \"weekday\",\n weekdays: \"weekday\",\n weeknumber: \"weekNumber\",\n weeksnumber: \"weekNumber\",\n weeknumbers: \"weekNumber\",\n weekyear: \"weekYear\",\n weekyears: \"weekYear\",\n ordinal: \"ordinal\",\n }[unit.toLowerCase()];\n\n if (!normalized) throw new InvalidUnitError(unit);\n\n return normalized;\n}\n\nfunction normalizeUnitWithLocalWeeks(unit) {\n switch (unit.toLowerCase()) {\n case \"localweekday\":\n case \"localweekdays\":\n return \"localWeekday\";\n case \"localweeknumber\":\n case \"localweeknumbers\":\n return \"localWeekNumber\";\n case \"localweekyear\":\n case \"localweekyears\":\n return \"localWeekYear\";\n default:\n return normalizeUnit(unit);\n }\n}\n\n// this is a dumbed down version of fromObject() that runs about 60% faster\n// but doesn't do any validation, makes a bunch of assumptions about what units\n// are present, and so on.\nfunction quickDT(obj, opts) {\n const zone = normalizeZone(opts.zone, Settings.defaultZone),\n loc = Locale.fromObject(opts),\n tsNow = Settings.now();\n\n let ts, o;\n\n // assume we have the higher-order units\n if (!isUndefined(obj.year)) {\n for (const u of orderedUnits) {\n if (isUndefined(obj[u])) {\n obj[u] = defaultUnitValues[u];\n }\n }\n\n const invalid = hasInvalidGregorianData(obj) || hasInvalidTimeData(obj);\n if (invalid) {\n return DateTime.invalid(invalid);\n }\n\n const offsetProvis = zone.offset(tsNow);\n [ts, o] = objToTS(obj, offsetProvis, zone);\n } else {\n ts = tsNow;\n }\n\n return new DateTime({ ts, zone, loc, o });\n}\n\nfunction diffRelative(start, end, opts) {\n const round = isUndefined(opts.round) ? true : opts.round,\n format = (c, unit) => {\n c = roundTo(c, round || opts.calendary ? 0 : 2, true);\n const formatter = end.loc.clone(opts).relFormatter(opts);\n return formatter.format(c, unit);\n },\n differ = (unit) => {\n if (opts.calendary) {\n if (!end.hasSame(start, unit)) {\n return end.startOf(unit).diff(start.startOf(unit), unit).get(unit);\n } else return 0;\n } else {\n return end.diff(start, unit).get(unit);\n }\n };\n\n if (opts.unit) {\n return format(differ(opts.unit), opts.unit);\n }\n\n for (const unit of opts.units) {\n const count = differ(unit);\n if (Math.abs(count) >= 1) {\n return format(count, unit);\n }\n }\n return format(start > end ? -0 : 0, opts.units[opts.units.length - 1]);\n}\n\nfunction lastOpts(argList) {\n let opts = {},\n args;\n if (argList.length > 0 && typeof argList[argList.length - 1] === \"object\") {\n opts = argList[argList.length - 1];\n args = Array.from(argList).slice(0, argList.length - 1);\n } else {\n args = Array.from(argList);\n }\n return [opts, args];\n}\n\n/**\n * A DateTime is an immutable data structure representing a specific date and time and accompanying methods. It contains class and instance methods for creating, parsing, interrogating, transforming, and formatting them.\n *\n * A DateTime comprises of:\n * * A timestamp. Each DateTime instance refers to a specific millisecond of the Unix epoch.\n * * A time zone. Each instance is considered in the context of a specific zone (by default the local system's zone).\n * * Configuration properties that effect how output strings are formatted, such as `locale`, `numberingSystem`, and `outputCalendar`.\n *\n * Here is a brief overview of the most commonly used functionality it provides:\n *\n * * **Creation**: To create a DateTime from its components, use one of its factory class methods: {@link DateTime.local}, {@link DateTime.utc}, and (most flexibly) {@link DateTime.fromObject}. To create one from a standard string format, use {@link DateTime.fromISO}, {@link DateTime.fromHTTP}, and {@link DateTime.fromRFC2822}. To create one from a custom string format, use {@link DateTime.fromFormat}. To create one from a native JS date, use {@link DateTime.fromJSDate}.\n * * **Gregorian calendar and time**: To examine the Gregorian properties of a DateTime individually (i.e as opposed to collectively through {@link DateTime#toObject}), use the {@link DateTime#year}, {@link DateTime#month},\n * {@link DateTime#day}, {@link DateTime#hour}, {@link DateTime#minute}, {@link DateTime#second}, {@link DateTime#millisecond} accessors.\n * * **Week calendar**: For ISO week calendar attributes, see the {@link DateTime#weekYear}, {@link DateTime#weekNumber}, and {@link DateTime#weekday} accessors.\n * * **Configuration** See the {@link DateTime#locale} and {@link DateTime#numberingSystem} accessors.\n * * **Transformation**: To transform the DateTime into other DateTimes, use {@link DateTime#set}, {@link DateTime#reconfigure}, {@link DateTime#setZone}, {@link DateTime#setLocale}, {@link DateTime.plus}, {@link DateTime#minus}, {@link DateTime#endOf}, {@link DateTime#startOf}, {@link DateTime#toUTC}, and {@link DateTime#toLocal}.\n * * **Output**: To convert the DateTime to other representations, use the {@link DateTime#toRelative}, {@link DateTime#toRelativeCalendar}, {@link DateTime#toJSON}, {@link DateTime#toISO}, {@link DateTime#toHTTP}, {@link DateTime#toObject}, {@link DateTime#toRFC2822}, {@link DateTime#toString}, {@link DateTime#toLocaleString}, {@link DateTime#toFormat}, {@link DateTime#toMillis} and {@link DateTime#toJSDate}.\n *\n * There's plenty others documented below. In addition, for more information on subtler topics like internationalization, time zones, alternative calendars, validity, and so on, see the external documentation.\n */\nexport default class DateTime {\n /**\n * @access private\n */\n constructor(config) {\n const zone = config.zone || Settings.defaultZone;\n\n let invalid =\n config.invalid ||\n (Number.isNaN(config.ts) ? new Invalid(\"invalid input\") : null) ||\n (!zone.isValid ? unsupportedZone(zone) : null);\n /**\n * @access private\n */\n this.ts = isUndefined(config.ts) ? Settings.now() : config.ts;\n\n let c = null,\n o = null;\n if (!invalid) {\n const unchanged = config.old && config.old.ts === this.ts && config.old.zone.equals(zone);\n\n if (unchanged) {\n [c, o] = [config.old.c, config.old.o];\n } else {\n const ot = zone.offset(this.ts);\n c = tsToObj(this.ts, ot);\n invalid = Number.isNaN(c.year) ? new Invalid(\"invalid input\") : null;\n c = invalid ? null : c;\n o = invalid ? null : ot;\n }\n }\n\n /**\n * @access private\n */\n this._zone = zone;\n /**\n * @access private\n */\n this.loc = config.loc || Locale.create();\n /**\n * @access private\n */\n this.invalid = invalid;\n /**\n * @access private\n */\n this.weekData = null;\n /**\n * @access private\n */\n this.localWeekData = null;\n /**\n * @access private\n */\n this.c = c;\n /**\n * @access private\n */\n this.o = o;\n /**\n * @access private\n */\n this.isLuxonDateTime = true;\n }\n\n // CONSTRUCT\n\n /**\n * Create a DateTime for the current instant, in the system's time zone.\n *\n * Use Settings to override these default values if needed.\n * @example DateTime.now().toISO() //~> now in the ISO format\n * @return {DateTime}\n */\n static now() {\n return new DateTime({});\n }\n\n /**\n * Create a local DateTime\n * @param {number} [year] - The calendar year. If omitted (as in, call `local()` with no arguments), the current time will be used\n * @param {number} [month=1] - The month, 1-indexed\n * @param {number} [day=1] - The day of the month, 1-indexed\n * @param {number} [hour=0] - The hour of the day, in 24-hour time\n * @param {number} [minute=0] - The minute of the hour, meaning a number between 0 and 59\n * @param {number} [second=0] - The second of the minute, meaning a number between 0 and 59\n * @param {number} [millisecond=0] - The millisecond of the second, meaning a number between 0 and 999\n * @example DateTime.local() //~> now\n * @example DateTime.local({ zone: \"America/New_York\" }) //~> now, in US east coast time\n * @example DateTime.local(2017) //~> 2017-01-01T00:00:00\n * @example DateTime.local(2017, 3) //~> 2017-03-01T00:00:00\n * @example DateTime.local(2017, 3, 12, { locale: \"fr\" }) //~> 2017-03-12T00:00:00, with a French locale\n * @example DateTime.local(2017, 3, 12, 5) //~> 2017-03-12T05:00:00\n * @example DateTime.local(2017, 3, 12, 5, { zone: \"utc\" }) //~> 2017-03-12T05:00:00, in UTC\n * @example DateTime.local(2017, 3, 12, 5, 45) //~> 2017-03-12T05:45:00\n * @example DateTime.local(2017, 3, 12, 5, 45, 10) //~> 2017-03-12T05:45:10\n * @example DateTime.local(2017, 3, 12, 5, 45, 10, 765) //~> 2017-03-12T05:45:10.765\n * @return {DateTime}\n */\n static local() {\n const [opts, args] = lastOpts(arguments),\n [year, month, day, hour, minute, second, millisecond] = args;\n return quickDT({ year, month, day, hour, minute, second, millisecond }, opts);\n }\n\n /**\n * Create a DateTime in UTC\n * @param {number} [year] - The calendar year. If omitted (as in, call `utc()` with no arguments), the current time will be used\n * @param {number} [month=1] - The month, 1-indexed\n * @param {number} [day=1] - The day of the month\n * @param {number} [hour=0] - The hour of the day, in 24-hour time\n * @param {number} [minute=0] - The minute of the hour, meaning a number between 0 and 59\n * @param {number} [second=0] - The second of the minute, meaning a number between 0 and 59\n * @param {number} [millisecond=0] - The millisecond of the second, meaning a number between 0 and 999\n * @param {Object} options - configuration options for the DateTime\n * @param {string} [options.locale] - a locale to set on the resulting DateTime instance\n * @param {string} [options.outputCalendar] - the output calendar to set on the resulting DateTime instance\n * @param {string} [options.numberingSystem] - the numbering system to set on the resulting DateTime instance\n * @example DateTime.utc() //~> now\n * @example DateTime.utc(2017) //~> 2017-01-01T00:00:00Z\n * @example DateTime.utc(2017, 3) //~> 2017-03-01T00:00:00Z\n * @example DateTime.utc(2017, 3, 12) //~> 2017-03-12T00:00:00Z\n * @example DateTime.utc(2017, 3, 12, 5) //~> 2017-03-12T05:00:00Z\n * @example DateTime.utc(2017, 3, 12, 5, 45) //~> 2017-03-12T05:45:00Z\n * @example DateTime.utc(2017, 3, 12, 5, 45, { locale: \"fr\" }) //~> 2017-03-12T05:45:00Z with a French locale\n * @example DateTime.utc(2017, 3, 12, 5, 45, 10) //~> 2017-03-12T05:45:10Z\n * @example DateTime.utc(2017, 3, 12, 5, 45, 10, 765, { locale: \"fr\" }) //~> 2017-03-12T05:45:10.765Z with a French locale\n * @return {DateTime}\n */\n static utc() {\n const [opts, args] = lastOpts(arguments),\n [year, month, day, hour, minute, second, millisecond] = args;\n\n opts.zone = FixedOffsetZone.utcInstance;\n return quickDT({ year, month, day, hour, minute, second, millisecond }, opts);\n }\n\n /**\n * Create a DateTime from a JavaScript Date object. Uses the default zone.\n * @param {Date} date - a JavaScript Date object\n * @param {Object} options - configuration options for the DateTime\n * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into\n * @return {DateTime}\n */\n static fromJSDate(date, options = {}) {\n const ts = isDate(date) ? date.valueOf() : NaN;\n if (Number.isNaN(ts)) {\n return DateTime.invalid(\"invalid input\");\n }\n\n const zoneToUse = normalizeZone(options.zone, Settings.defaultZone);\n if (!zoneToUse.isValid) {\n return DateTime.invalid(unsupportedZone(zoneToUse));\n }\n\n return new DateTime({\n ts: ts,\n zone: zoneToUse,\n loc: Locale.fromObject(options),\n });\n }\n\n /**\n * Create a DateTime from a number of milliseconds since the epoch (meaning since 1 January 1970 00:00:00 UTC). Uses the default zone.\n * @param {number} milliseconds - a number of milliseconds since 1970 UTC\n * @param {Object} options - configuration options for the DateTime\n * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into\n * @param {string} [options.locale] - a locale to set on the resulting DateTime instance\n * @param {string} options.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} options.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @return {DateTime}\n */\n static fromMillis(milliseconds, options = {}) {\n if (!isNumber(milliseconds)) {\n throw new InvalidArgumentError(\n `fromMillis requires a numerical input, but received a ${typeof milliseconds} with value ${milliseconds}`\n );\n } else if (milliseconds < -MAX_DATE || milliseconds > MAX_DATE) {\n // this isn't perfect because because we can still end up out of range because of additional shifting, but it's a start\n return DateTime.invalid(\"Timestamp out of range\");\n } else {\n return new DateTime({\n ts: milliseconds,\n zone: normalizeZone(options.zone, Settings.defaultZone),\n loc: Locale.fromObject(options),\n });\n }\n }\n\n /**\n * Create a DateTime from a number of seconds since the epoch (meaning since 1 January 1970 00:00:00 UTC). Uses the default zone.\n * @param {number} seconds - a number of seconds since 1970 UTC\n * @param {Object} options - configuration options for the DateTime\n * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into\n * @param {string} [options.locale] - a locale to set on the resulting DateTime instance\n * @param {string} options.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} options.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @return {DateTime}\n */\n static fromSeconds(seconds, options = {}) {\n if (!isNumber(seconds)) {\n throw new InvalidArgumentError(\"fromSeconds requires a numerical input\");\n } else {\n return new DateTime({\n ts: seconds * 1000,\n zone: normalizeZone(options.zone, Settings.defaultZone),\n loc: Locale.fromObject(options),\n });\n }\n }\n\n /**\n * Create a DateTime from a JavaScript object with keys like 'year' and 'hour' with reasonable defaults.\n * @param {Object} obj - the object to create the DateTime from\n * @param {number} obj.year - a year, such as 1987\n * @param {number} obj.month - a month, 1-12\n * @param {number} obj.day - a day of the month, 1-31, depending on the month\n * @param {number} obj.ordinal - day of the year, 1-365 or 366\n * @param {number} obj.weekYear - an ISO week year\n * @param {number} obj.weekNumber - an ISO week number, between 1 and 52 or 53, depending on the year\n * @param {number} obj.weekday - an ISO weekday, 1-7, where 1 is Monday and 7 is Sunday\n * @param {number} obj.localWeekYear - a week year, according to the locale\n * @param {number} obj.localWeekNumber - a week number, between 1 and 52 or 53, depending on the year, according to the locale\n * @param {number} obj.localWeekday - a weekday, 1-7, where 1 is the first and 7 is the last day of the week, according to the locale\n * @param {number} obj.hour - hour of the day, 0-23\n * @param {number} obj.minute - minute of the hour, 0-59\n * @param {number} obj.second - second of the minute, 0-59\n * @param {number} obj.millisecond - millisecond of the second, 0-999\n * @param {Object} opts - options for creating this DateTime\n * @param {string|Zone} [opts.zone='local'] - interpret the numbers in the context of a particular zone. Can take any value taken as the first argument to setZone()\n * @param {string} [opts.locale='system\\'s locale'] - a locale to set on the resulting DateTime instance\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @example DateTime.fromObject({ year: 1982, month: 5, day: 25}).toISODate() //=> '1982-05-25'\n * @example DateTime.fromObject({ year: 1982 }).toISODate() //=> '1982-01-01'\n * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }) //~> today at 10:26:06\n * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'utc' }),\n * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'local' })\n * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'America/New_York' })\n * @example DateTime.fromObject({ weekYear: 2016, weekNumber: 2, weekday: 3 }).toISODate() //=> '2016-01-13'\n * @example DateTime.fromObject({ localWeekYear: 2022, localWeekNumber: 1, localWeekday: 1 }, { locale: \"en-US\" }).toISODate() //=> '2021-12-26'\n * @return {DateTime}\n */\n static fromObject(obj, opts = {}) {\n obj = obj || {};\n const zoneToUse = normalizeZone(opts.zone, Settings.defaultZone);\n if (!zoneToUse.isValid) {\n return DateTime.invalid(unsupportedZone(zoneToUse));\n }\n\n const loc = Locale.fromObject(opts);\n const normalized = normalizeObject(obj, normalizeUnitWithLocalWeeks);\n const { minDaysInFirstWeek, startOfWeek } = usesLocalWeekValues(normalized, loc);\n\n const tsNow = Settings.now(),\n offsetProvis = !isUndefined(opts.specificOffset)\n ? opts.specificOffset\n : zoneToUse.offset(tsNow),\n containsOrdinal = !isUndefined(normalized.ordinal),\n containsGregorYear = !isUndefined(normalized.year),\n containsGregorMD = !isUndefined(normalized.month) || !isUndefined(normalized.day),\n containsGregor = containsGregorYear || containsGregorMD,\n definiteWeekDef = normalized.weekYear || normalized.weekNumber;\n\n // cases:\n // just a weekday -> this week's instance of that weekday, no worries\n // (gregorian data or ordinal) + (weekYear or weekNumber) -> error\n // (gregorian month or day) + ordinal -> error\n // otherwise just use weeks or ordinals or gregorian, depending on what's specified\n\n if ((containsGregor || containsOrdinal) && definiteWeekDef) {\n throw new ConflictingSpecificationError(\n \"Can't mix weekYear/weekNumber units with year/month/day or ordinals\"\n );\n }\n\n if (containsGregorMD && containsOrdinal) {\n throw new ConflictingSpecificationError(\"Can't mix ordinal dates with month/day\");\n }\n\n const useWeekData = definiteWeekDef || (normalized.weekday && !containsGregor);\n\n // configure ourselves to deal with gregorian dates or week stuff\n let units,\n defaultValues,\n objNow = tsToObj(tsNow, offsetProvis);\n if (useWeekData) {\n units = orderedWeekUnits;\n defaultValues = defaultWeekUnitValues;\n objNow = gregorianToWeek(objNow, minDaysInFirstWeek, startOfWeek);\n } else if (containsOrdinal) {\n units = orderedOrdinalUnits;\n defaultValues = defaultOrdinalUnitValues;\n objNow = gregorianToOrdinal(objNow);\n } else {\n units = orderedUnits;\n defaultValues = defaultUnitValues;\n }\n\n // set default values for missing stuff\n let foundFirst = false;\n for (const u of units) {\n const v = normalized[u];\n if (!isUndefined(v)) {\n foundFirst = true;\n } else if (foundFirst) {\n normalized[u] = defaultValues[u];\n } else {\n normalized[u] = objNow[u];\n }\n }\n\n // make sure the values we have are in range\n const higherOrderInvalid = useWeekData\n ? hasInvalidWeekData(normalized, minDaysInFirstWeek, startOfWeek)\n : containsOrdinal\n ? hasInvalidOrdinalData(normalized)\n : hasInvalidGregorianData(normalized),\n invalid = higherOrderInvalid || hasInvalidTimeData(normalized);\n\n if (invalid) {\n return DateTime.invalid(invalid);\n }\n\n // compute the actual time\n const gregorian = useWeekData\n ? weekToGregorian(normalized, minDaysInFirstWeek, startOfWeek)\n : containsOrdinal\n ? ordinalToGregorian(normalized)\n : normalized,\n [tsFinal, offsetFinal] = objToTS(gregorian, offsetProvis, zoneToUse),\n inst = new DateTime({\n ts: tsFinal,\n zone: zoneToUse,\n o: offsetFinal,\n loc,\n });\n\n // gregorian data + weekday serves only to validate\n if (normalized.weekday && containsGregor && obj.weekday !== inst.weekday) {\n return DateTime.invalid(\n \"mismatched weekday\",\n `you can't specify both a weekday of ${normalized.weekday} and a date of ${inst.toISO()}`\n );\n }\n\n return inst;\n }\n\n /**\n * Create a DateTime from an ISO 8601 string\n * @param {string} text - the ISO string\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the time to this zone\n * @param {boolean} [opts.setZone=false] - override the zone with a fixed-offset zone specified in the string itself, if it specifies one\n * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance\n * @param {string} [opts.outputCalendar] - the output calendar to set on the resulting DateTime instance\n * @param {string} [opts.numberingSystem] - the numbering system to set on the resulting DateTime instance\n * @example DateTime.fromISO('2016-05-25T09:08:34.123')\n * @example DateTime.fromISO('2016-05-25T09:08:34.123+06:00')\n * @example DateTime.fromISO('2016-05-25T09:08:34.123+06:00', {setZone: true})\n * @example DateTime.fromISO('2016-05-25T09:08:34.123', {zone: 'utc'})\n * @example DateTime.fromISO('2016-W05-4')\n * @return {DateTime}\n */\n static fromISO(text, opts = {}) {\n const [vals, parsedZone] = parseISODate(text);\n return parseDataToDateTime(vals, parsedZone, opts, \"ISO 8601\", text);\n }\n\n /**\n * Create a DateTime from an RFC 2822 string\n * @param {string} text - the RFC 2822 string\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - convert the time to this zone. Since the offset is always specified in the string itself, this has no effect on the interpretation of string, merely the zone the resulting DateTime is expressed in.\n * @param {boolean} [opts.setZone=false] - override the zone with a fixed-offset zone specified in the string itself, if it specifies one\n * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @example DateTime.fromRFC2822('25 Nov 2016 13:23:12 GMT')\n * @example DateTime.fromRFC2822('Fri, 25 Nov 2016 13:23:12 +0600')\n * @example DateTime.fromRFC2822('25 Nov 2016 13:23 Z')\n * @return {DateTime}\n */\n static fromRFC2822(text, opts = {}) {\n const [vals, parsedZone] = parseRFC2822Date(text);\n return parseDataToDateTime(vals, parsedZone, opts, \"RFC 2822\", text);\n }\n\n /**\n * Create a DateTime from an HTTP header date\n * @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1\n * @param {string} text - the HTTP header date\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - convert the time to this zone. Since HTTP dates are always in UTC, this has no effect on the interpretation of string, merely the zone the resulting DateTime is expressed in.\n * @param {boolean} [opts.setZone=false] - override the zone with the fixed-offset zone specified in the string. For HTTP dates, this is always UTC, so this option is equivalent to setting the `zone` option to 'utc', but this option is included for consistency with similar methods.\n * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @example DateTime.fromHTTP('Sun, 06 Nov 1994 08:49:37 GMT')\n * @example DateTime.fromHTTP('Sunday, 06-Nov-94 08:49:37 GMT')\n * @example DateTime.fromHTTP('Sun Nov 6 08:49:37 1994')\n * @return {DateTime}\n */\n static fromHTTP(text, opts = {}) {\n const [vals, parsedZone] = parseHTTPDate(text);\n return parseDataToDateTime(vals, parsedZone, opts, \"HTTP\", opts);\n }\n\n /**\n * Create a DateTime from an input string and format string.\n * Defaults to en-US if no locale has been specified, regardless of the system's locale. For a table of tokens and their interpretations, see [here](https://moment.github.io/luxon/#/parsing?id=table-of-tokens).\n * @param {string} text - the string to parse\n * @param {string} fmt - the format the string is expected to be in (see the link below for the formats)\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the DateTime to this zone\n * @param {boolean} [opts.setZone=false] - override the zone with a zone specified in the string itself, if it specifies one\n * @param {string} [opts.locale='en-US'] - a locale string to use when parsing. Will also set the DateTime to this locale\n * @param {string} opts.numberingSystem - the numbering system to use when parsing. Will also set the resulting DateTime to this numbering system\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @return {DateTime}\n */\n static fromFormat(text, fmt, opts = {}) {\n if (isUndefined(text) || isUndefined(fmt)) {\n throw new InvalidArgumentError(\"fromFormat requires an input string and a format\");\n }\n\n const { locale = null, numberingSystem = null } = opts,\n localeToUse = Locale.fromOpts({\n locale,\n numberingSystem,\n defaultToEN: true,\n }),\n [vals, parsedZone, specificOffset, invalid] = parseFromTokens(localeToUse, text, fmt);\n if (invalid) {\n return DateTime.invalid(invalid);\n } else {\n return parseDataToDateTime(vals, parsedZone, opts, `format ${fmt}`, text, specificOffset);\n }\n }\n\n /**\n * @deprecated use fromFormat instead\n */\n static fromString(text, fmt, opts = {}) {\n return DateTime.fromFormat(text, fmt, opts);\n }\n\n /**\n * Create a DateTime from a SQL date, time, or datetime\n * Defaults to en-US if no locale has been specified, regardless of the system's locale\n * @param {string} text - the string to parse\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the DateTime to this zone\n * @param {boolean} [opts.setZone=false] - override the zone with a zone specified in the string itself, if it specifies one\n * @param {string} [opts.locale='en-US'] - a locale string to use when parsing. Will also set the DateTime to this locale\n * @param {string} opts.numberingSystem - the numbering system to use when parsing. Will also set the resulting DateTime to this numbering system\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @example DateTime.fromSQL('2017-05-15')\n * @example DateTime.fromSQL('2017-05-15 09:12:34')\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342')\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342+06:00')\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342 America/Los_Angeles')\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342 America/Los_Angeles', { setZone: true })\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342', { zone: 'America/Los_Angeles' })\n * @example DateTime.fromSQL('09:12:34.342')\n * @return {DateTime}\n */\n static fromSQL(text, opts = {}) {\n const [vals, parsedZone] = parseSQL(text);\n return parseDataToDateTime(vals, parsedZone, opts, \"SQL\", text);\n }\n\n /**\n * Create an invalid DateTime.\n * @param {string} reason - simple string of why this DateTime is invalid. Should not contain parameters or anything else data-dependent.\n * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information\n * @return {DateTime}\n */\n static invalid(reason, explanation = null) {\n if (!reason) {\n throw new InvalidArgumentError(\"need to specify a reason the DateTime is invalid\");\n }\n\n const invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation);\n\n if (Settings.throwOnInvalid) {\n throw new InvalidDateTimeError(invalid);\n } else {\n return new DateTime({ invalid });\n }\n }\n\n /**\n * Check if an object is an instance of DateTime. Works across context boundaries\n * @param {object} o\n * @return {boolean}\n */\n static isDateTime(o) {\n return (o && o.isLuxonDateTime) || false;\n }\n\n /**\n * Produce the format string for a set of options\n * @param formatOpts\n * @param localeOpts\n * @returns {string}\n */\n static parseFormatForOpts(formatOpts, localeOpts = {}) {\n const tokenList = formatOptsToTokens(formatOpts, Locale.fromObject(localeOpts));\n return !tokenList ? null : tokenList.map((t) => (t ? t.val : null)).join(\"\");\n }\n\n /**\n * Produce the the fully expanded format token for the locale\n * Does NOT quote characters, so quoted tokens will not round trip correctly\n * @param fmt\n * @param localeOpts\n * @returns {string}\n */\n static expandFormat(fmt, localeOpts = {}) {\n const expanded = expandMacroTokens(Formatter.parseFormat(fmt), Locale.fromObject(localeOpts));\n return expanded.map((t) => t.val).join(\"\");\n }\n\n // INFO\n\n /**\n * Get the value of unit.\n * @param {string} unit - a unit such as 'minute' or 'day'\n * @example DateTime.local(2017, 7, 4).get('month'); //=> 7\n * @example DateTime.local(2017, 7, 4).get('day'); //=> 4\n * @return {number}\n */\n get(unit) {\n return this[unit];\n }\n\n /**\n * Returns whether the DateTime is valid. Invalid DateTimes occur when:\n * * The DateTime was created from invalid calendar information, such as the 13th month or February 30\n * * The DateTime was created by an operation on another invalid date\n * @type {boolean}\n */\n get isValid() {\n return this.invalid === null;\n }\n\n /**\n * Returns an error code if this DateTime is invalid, or null if the DateTime is valid\n * @type {string}\n */\n get invalidReason() {\n return this.invalid ? this.invalid.reason : null;\n }\n\n /**\n * Returns an explanation of why this DateTime became invalid, or null if the DateTime is valid\n * @type {string}\n */\n get invalidExplanation() {\n return this.invalid ? this.invalid.explanation : null;\n }\n\n /**\n * Get the locale of a DateTime, such 'en-GB'. The locale is used when formatting the DateTime\n *\n * @type {string}\n */\n get locale() {\n return this.isValid ? this.loc.locale : null;\n }\n\n /**\n * Get the numbering system of a DateTime, such 'beng'. The numbering system is used when formatting the DateTime\n *\n * @type {string}\n */\n get numberingSystem() {\n return this.isValid ? this.loc.numberingSystem : null;\n }\n\n /**\n * Get the output calendar of a DateTime, such 'islamic'. The output calendar is used when formatting the DateTime\n *\n * @type {string}\n */\n get outputCalendar() {\n return this.isValid ? this.loc.outputCalendar : null;\n }\n\n /**\n * Get the time zone associated with this DateTime.\n * @type {Zone}\n */\n get zone() {\n return this._zone;\n }\n\n /**\n * Get the name of the time zone.\n * @type {string}\n */\n get zoneName() {\n return this.isValid ? this.zone.name : null;\n }\n\n /**\n * Get the year\n * @example DateTime.local(2017, 5, 25).year //=> 2017\n * @type {number}\n */\n get year() {\n return this.isValid ? this.c.year : NaN;\n }\n\n /**\n * Get the quarter\n * @example DateTime.local(2017, 5, 25).quarter //=> 2\n * @type {number}\n */\n get quarter() {\n return this.isValid ? Math.ceil(this.c.month / 3) : NaN;\n }\n\n /**\n * Get the month (1-12).\n * @example DateTime.local(2017, 5, 25).month //=> 5\n * @type {number}\n */\n get month() {\n return this.isValid ? this.c.month : NaN;\n }\n\n /**\n * Get the day of the month (1-30ish).\n * @example DateTime.local(2017, 5, 25).day //=> 25\n * @type {number}\n */\n get day() {\n return this.isValid ? this.c.day : NaN;\n }\n\n /**\n * Get the hour of the day (0-23).\n * @example DateTime.local(2017, 5, 25, 9).hour //=> 9\n * @type {number}\n */\n get hour() {\n return this.isValid ? this.c.hour : NaN;\n }\n\n /**\n * Get the minute of the hour (0-59).\n * @example DateTime.local(2017, 5, 25, 9, 30).minute //=> 30\n * @type {number}\n */\n get minute() {\n return this.isValid ? this.c.minute : NaN;\n }\n\n /**\n * Get the second of the minute (0-59).\n * @example DateTime.local(2017, 5, 25, 9, 30, 52).second //=> 52\n * @type {number}\n */\n get second() {\n return this.isValid ? this.c.second : NaN;\n }\n\n /**\n * Get the millisecond of the second (0-999).\n * @example DateTime.local(2017, 5, 25, 9, 30, 52, 654).millisecond //=> 654\n * @type {number}\n */\n get millisecond() {\n return this.isValid ? this.c.millisecond : NaN;\n }\n\n /**\n * Get the week year\n * @see https://en.wikipedia.org/wiki/ISO_week_date\n * @example DateTime.local(2014, 12, 31).weekYear //=> 2015\n * @type {number}\n */\n get weekYear() {\n return this.isValid ? possiblyCachedWeekData(this).weekYear : NaN;\n }\n\n /**\n * Get the week number of the week year (1-52ish).\n * @see https://en.wikipedia.org/wiki/ISO_week_date\n * @example DateTime.local(2017, 5, 25).weekNumber //=> 21\n * @type {number}\n */\n get weekNumber() {\n return this.isValid ? possiblyCachedWeekData(this).weekNumber : NaN;\n }\n\n /**\n * Get the day of the week.\n * 1 is Monday and 7 is Sunday\n * @see https://en.wikipedia.org/wiki/ISO_week_date\n * @example DateTime.local(2014, 11, 31).weekday //=> 4\n * @type {number}\n */\n get weekday() {\n return this.isValid ? possiblyCachedWeekData(this).weekday : NaN;\n }\n\n /**\n * Returns true if this date is on a weekend according to the locale, false otherwise\n * @returns {boolean}\n */\n get isWeekend() {\n return this.isValid && this.loc.getWeekendDays().includes(this.weekday);\n }\n\n /**\n * Get the day of the week according to the locale.\n * 1 is the first day of the week and 7 is the last day of the week.\n * If the locale assigns Sunday as the first day of the week, then a date which is a Sunday will return 1,\n * @returns {number}\n */\n get localWeekday() {\n return this.isValid ? possiblyCachedLocalWeekData(this).weekday : NaN;\n }\n\n /**\n * Get the week number of the week year according to the locale. Different locales assign week numbers differently,\n * because the week can start on different days of the week (see localWeekday) and because a different number of days\n * is required for a week to count as the first week of a year.\n * @returns {number}\n */\n get localWeekNumber() {\n return this.isValid ? possiblyCachedLocalWeekData(this).weekNumber : NaN;\n }\n\n /**\n * Get the week year according to the locale. Different locales assign week numbers (and therefor week years)\n * differently, see localWeekNumber.\n * @returns {number}\n */\n get localWeekYear() {\n return this.isValid ? possiblyCachedLocalWeekData(this).weekYear : NaN;\n }\n\n /**\n * Get the ordinal (meaning the day of the year)\n * @example DateTime.local(2017, 5, 25).ordinal //=> 145\n * @type {number|DateTime}\n */\n get ordinal() {\n return this.isValid ? gregorianToOrdinal(this.c).ordinal : NaN;\n }\n\n /**\n * Get the human readable short month name, such as 'Oct'.\n * Defaults to the system's locale if no locale has been specified\n * @example DateTime.local(2017, 10, 30).monthShort //=> Oct\n * @type {string}\n */\n get monthShort() {\n return this.isValid ? Info.months(\"short\", { locObj: this.loc })[this.month - 1] : null;\n }\n\n /**\n * Get the human readable long month name, such as 'October'.\n * Defaults to the system's locale if no locale has been specified\n * @example DateTime.local(2017, 10, 30).monthLong //=> October\n * @type {string}\n */\n get monthLong() {\n return this.isValid ? Info.months(\"long\", { locObj: this.loc })[this.month - 1] : null;\n }\n\n /**\n * Get the human readable short weekday, such as 'Mon'.\n * Defaults to the system's locale if no locale has been specified\n * @example DateTime.local(2017, 10, 30).weekdayShort //=> Mon\n * @type {string}\n */\n get weekdayShort() {\n return this.isValid ? Info.weekdays(\"short\", { locObj: this.loc })[this.weekday - 1] : null;\n }\n\n /**\n * Get the human readable long weekday, such as 'Monday'.\n * Defaults to the system's locale if no locale has been specified\n * @example DateTime.local(2017, 10, 30).weekdayLong //=> Monday\n * @type {string}\n */\n get weekdayLong() {\n return this.isValid ? Info.weekdays(\"long\", { locObj: this.loc })[this.weekday - 1] : null;\n }\n\n /**\n * Get the UTC offset of this DateTime in minutes\n * @example DateTime.now().offset //=> -240\n * @example DateTime.utc().offset //=> 0\n * @type {number}\n */\n get offset() {\n return this.isValid ? +this.o : NaN;\n }\n\n /**\n * Get the short human name for the zone's current offset, for example \"EST\" or \"EDT\".\n * Defaults to the system's locale if no locale has been specified\n * @type {string}\n */\n get offsetNameShort() {\n if (this.isValid) {\n return this.zone.offsetName(this.ts, {\n format: \"short\",\n locale: this.locale,\n });\n } else {\n return null;\n }\n }\n\n /**\n * Get the long human name for the zone's current offset, for example \"Eastern Standard Time\" or \"Eastern Daylight Time\".\n * Defaults to the system's locale if no locale has been specified\n * @type {string}\n */\n get offsetNameLong() {\n if (this.isValid) {\n return this.zone.offsetName(this.ts, {\n format: \"long\",\n locale: this.locale,\n });\n } else {\n return null;\n }\n }\n\n /**\n * Get whether this zone's offset ever changes, as in a DST.\n * @type {boolean}\n */\n get isOffsetFixed() {\n return this.isValid ? this.zone.isUniversal : null;\n }\n\n /**\n * Get whether the DateTime is in a DST.\n * @type {boolean}\n */\n get isInDST() {\n if (this.isOffsetFixed) {\n return false;\n } else {\n return (\n this.offset > this.set({ month: 1, day: 1 }).offset ||\n this.offset > this.set({ month: 5 }).offset\n );\n }\n }\n\n /**\n * Get those DateTimes which have the same local time as this DateTime, but a different offset from UTC\n * in this DateTime's zone. During DST changes local time can be ambiguous, for example\n * `2023-10-29T02:30:00` in `Europe/Berlin` can have offset `+01:00` or `+02:00`.\n * This method will return both possible DateTimes if this DateTime's local time is ambiguous.\n * @returns {DateTime[]}\n */\n getPossibleOffsets() {\n if (!this.isValid || this.isOffsetFixed) {\n return [this];\n }\n const dayMs = 86400000;\n const minuteMs = 60000;\n const localTS = objToLocalTS(this.c);\n const oEarlier = this.zone.offset(localTS - dayMs);\n const oLater = this.zone.offset(localTS + dayMs);\n\n const o1 = this.zone.offset(localTS - oEarlier * minuteMs);\n const o2 = this.zone.offset(localTS - oLater * minuteMs);\n if (o1 === o2) {\n return [this];\n }\n const ts1 = localTS - o1 * minuteMs;\n const ts2 = localTS - o2 * minuteMs;\n const c1 = tsToObj(ts1, o1);\n const c2 = tsToObj(ts2, o2);\n if (\n c1.hour === c2.hour &&\n c1.minute === c2.minute &&\n c1.second === c2.second &&\n c1.millisecond === c2.millisecond\n ) {\n return [clone(this, { ts: ts1 }), clone(this, { ts: ts2 })];\n }\n return [this];\n }\n\n /**\n * Returns true if this DateTime is in a leap year, false otherwise\n * @example DateTime.local(2016).isInLeapYear //=> true\n * @example DateTime.local(2013).isInLeapYear //=> false\n * @type {boolean}\n */\n get isInLeapYear() {\n return isLeapYear(this.year);\n }\n\n /**\n * Returns the number of days in this DateTime's month\n * @example DateTime.local(2016, 2).daysInMonth //=> 29\n * @example DateTime.local(2016, 3).daysInMonth //=> 31\n * @type {number}\n */\n get daysInMonth() {\n return daysInMonth(this.year, this.month);\n }\n\n /**\n * Returns the number of days in this DateTime's year\n * @example DateTime.local(2016).daysInYear //=> 366\n * @example DateTime.local(2013).daysInYear //=> 365\n * @type {number}\n */\n get daysInYear() {\n return this.isValid ? daysInYear(this.year) : NaN;\n }\n\n /**\n * Returns the number of weeks in this DateTime's year\n * @see https://en.wikipedia.org/wiki/ISO_week_date\n * @example DateTime.local(2004).weeksInWeekYear //=> 53\n * @example DateTime.local(2013).weeksInWeekYear //=> 52\n * @type {number}\n */\n get weeksInWeekYear() {\n return this.isValid ? weeksInWeekYear(this.weekYear) : NaN;\n }\n\n /**\n * Returns the number of weeks in this DateTime's local week year\n * @example DateTime.local(2020, 6, {locale: 'en-US'}).weeksInLocalWeekYear //=> 52\n * @example DateTime.local(2020, 6, {locale: 'de-DE'}).weeksInLocalWeekYear //=> 53\n * @type {number}\n */\n get weeksInLocalWeekYear() {\n return this.isValid\n ? weeksInWeekYear(\n this.localWeekYear,\n this.loc.getMinDaysInFirstWeek(),\n this.loc.getStartOfWeek()\n )\n : NaN;\n }\n\n /**\n * Returns the resolved Intl options for this DateTime.\n * This is useful in understanding the behavior of formatting methods\n * @param {Object} opts - the same options as toLocaleString\n * @return {Object}\n */\n resolvedLocaleOptions(opts = {}) {\n const { locale, numberingSystem, calendar } = Formatter.create(\n this.loc.clone(opts),\n opts\n ).resolvedOptions(this);\n return { locale, numberingSystem, outputCalendar: calendar };\n }\n\n // TRANSFORM\n\n /**\n * \"Set\" the DateTime's zone to UTC. Returns a newly-constructed DateTime.\n *\n * Equivalent to {@link DateTime#setZone}('utc')\n * @param {number} [offset=0] - optionally, an offset from UTC in minutes\n * @param {Object} [opts={}] - options to pass to `setZone()`\n * @return {DateTime}\n */\n toUTC(offset = 0, opts = {}) {\n return this.setZone(FixedOffsetZone.instance(offset), opts);\n }\n\n /**\n * \"Set\" the DateTime's zone to the host's local zone. Returns a newly-constructed DateTime.\n *\n * Equivalent to `setZone('local')`\n * @return {DateTime}\n */\n toLocal() {\n return this.setZone(Settings.defaultZone);\n }\n\n /**\n * \"Set\" the DateTime's zone to specified zone. Returns a newly-constructed DateTime.\n *\n * By default, the setter keeps the underlying time the same (as in, the same timestamp), but the new instance will report different local times and consider DSTs when making computations, as with {@link DateTime#plus}. You may wish to use {@link DateTime#toLocal} and {@link DateTime#toUTC} which provide simple convenience wrappers for commonly used zones.\n * @param {string|Zone} [zone='local'] - a zone identifier. As a string, that can be any IANA zone supported by the host environment, or a fixed-offset name of the form 'UTC+3', or the strings 'local' or 'utc'. You may also supply an instance of a {@link DateTime#Zone} class.\n * @param {Object} opts - options\n * @param {boolean} [opts.keepLocalTime=false] - If true, adjust the underlying time so that the local time stays the same, but in the target zone. You should rarely need this.\n * @return {DateTime}\n */\n setZone(zone, { keepLocalTime = false, keepCalendarTime = false } = {}) {\n zone = normalizeZone(zone, Settings.defaultZone);\n if (zone.equals(this.zone)) {\n return this;\n } else if (!zone.isValid) {\n return DateTime.invalid(unsupportedZone(zone));\n } else {\n let newTS = this.ts;\n if (keepLocalTime || keepCalendarTime) {\n const offsetGuess = zone.offset(this.ts);\n const asObj = this.toObject();\n [newTS] = objToTS(asObj, offsetGuess, zone);\n }\n return clone(this, { ts: newTS, zone });\n }\n }\n\n /**\n * \"Set\" the locale, numberingSystem, or outputCalendar. Returns a newly-constructed DateTime.\n * @param {Object} properties - the properties to set\n * @example DateTime.local(2017, 5, 25).reconfigure({ locale: 'en-GB' })\n * @return {DateTime}\n */\n reconfigure({ locale, numberingSystem, outputCalendar } = {}) {\n const loc = this.loc.clone({ locale, numberingSystem, outputCalendar });\n return clone(this, { loc });\n }\n\n /**\n * \"Set\" the locale. Returns a newly-constructed DateTime.\n * Just a convenient alias for reconfigure({ locale })\n * @example DateTime.local(2017, 5, 25).setLocale('en-GB')\n * @return {DateTime}\n */\n setLocale(locale) {\n return this.reconfigure({ locale });\n }\n\n /**\n * \"Set\" the values of specified units. Returns a newly-constructed DateTime.\n * You can only set units with this method; for \"setting\" metadata, see {@link DateTime#reconfigure} and {@link DateTime#setZone}.\n *\n * This method also supports setting locale-based week units, i.e. `localWeekday`, `localWeekNumber` and `localWeekYear`.\n * They cannot be mixed with ISO-week units like `weekday`.\n * @param {Object} values - a mapping of units to numbers\n * @example dt.set({ year: 2017 })\n * @example dt.set({ hour: 8, minute: 30 })\n * @example dt.set({ weekday: 5 })\n * @example dt.set({ year: 2005, ordinal: 234 })\n * @return {DateTime}\n */\n set(values) {\n if (!this.isValid) return this;\n\n const normalized = normalizeObject(values, normalizeUnitWithLocalWeeks);\n const { minDaysInFirstWeek, startOfWeek } = usesLocalWeekValues(normalized, this.loc);\n\n const settingWeekStuff =\n !isUndefined(normalized.weekYear) ||\n !isUndefined(normalized.weekNumber) ||\n !isUndefined(normalized.weekday),\n containsOrdinal = !isUndefined(normalized.ordinal),\n containsGregorYear = !isUndefined(normalized.year),\n containsGregorMD = !isUndefined(normalized.month) || !isUndefined(normalized.day),\n containsGregor = containsGregorYear || containsGregorMD,\n definiteWeekDef = normalized.weekYear || normalized.weekNumber;\n\n if ((containsGregor || containsOrdinal) && definiteWeekDef) {\n throw new ConflictingSpecificationError(\n \"Can't mix weekYear/weekNumber units with year/month/day or ordinals\"\n );\n }\n\n if (containsGregorMD && containsOrdinal) {\n throw new ConflictingSpecificationError(\"Can't mix ordinal dates with month/day\");\n }\n\n let mixed;\n if (settingWeekStuff) {\n mixed = weekToGregorian(\n { ...gregorianToWeek(this.c, minDaysInFirstWeek, startOfWeek), ...normalized },\n minDaysInFirstWeek,\n startOfWeek\n );\n } else if (!isUndefined(normalized.ordinal)) {\n mixed = ordinalToGregorian({ ...gregorianToOrdinal(this.c), ...normalized });\n } else {\n mixed = { ...this.toObject(), ...normalized };\n\n // if we didn't set the day but we ended up on an overflow date,\n // use the last day of the right month\n if (isUndefined(normalized.day)) {\n mixed.day = Math.min(daysInMonth(mixed.year, mixed.month), mixed.day);\n }\n }\n\n const [ts, o] = objToTS(mixed, this.o, this.zone);\n return clone(this, { ts, o });\n }\n\n /**\n * Add a period of time to this DateTime and return the resulting DateTime\n *\n * Adding hours, minutes, seconds, or milliseconds increases the timestamp by the right number of milliseconds. Adding days, months, or years shifts the calendar, accounting for DSTs and leap years along the way. Thus, `dt.plus({ hours: 24 })` may result in a different time than `dt.plus({ days: 1 })` if there's a DST shift in between.\n * @param {Duration|Object|number} duration - The amount to add. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()\n * @example DateTime.now().plus(123) //~> in 123 milliseconds\n * @example DateTime.now().plus({ minutes: 15 }) //~> in 15 minutes\n * @example DateTime.now().plus({ days: 1 }) //~> this time tomorrow\n * @example DateTime.now().plus({ days: -1 }) //~> this time yesterday\n * @example DateTime.now().plus({ hours: 3, minutes: 13 }) //~> in 3 hr, 13 min\n * @example DateTime.now().plus(Duration.fromObject({ hours: 3, minutes: 13 })) //~> in 3 hr, 13 min\n * @return {DateTime}\n */\n plus(duration) {\n if (!this.isValid) return this;\n const dur = Duration.fromDurationLike(duration);\n return clone(this, adjustTime(this, dur));\n }\n\n /**\n * Subtract a period of time to this DateTime and return the resulting DateTime\n * See {@link DateTime#plus}\n * @param {Duration|Object|number} duration - The amount to subtract. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()\n @return {DateTime}\n */\n minus(duration) {\n if (!this.isValid) return this;\n const dur = Duration.fromDurationLike(duration).negate();\n return clone(this, adjustTime(this, dur));\n }\n\n /**\n * \"Set\" this DateTime to the beginning of a unit of time.\n * @param {string} unit - The unit to go to the beginning of. Can be 'year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', or 'millisecond'.\n * @param {Object} opts - options\n * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week\n * @example DateTime.local(2014, 3, 3).startOf('month').toISODate(); //=> '2014-03-01'\n * @example DateTime.local(2014, 3, 3).startOf('year').toISODate(); //=> '2014-01-01'\n * @example DateTime.local(2014, 3, 3).startOf('week').toISODate(); //=> '2014-03-03', weeks always start on Mondays\n * @example DateTime.local(2014, 3, 3, 5, 30).startOf('day').toISOTime(); //=> '00:00.000-05:00'\n * @example DateTime.local(2014, 3, 3, 5, 30).startOf('hour').toISOTime(); //=> '05:00:00.000-05:00'\n * @return {DateTime}\n */\n startOf(unit, { useLocaleWeeks = false } = {}) {\n if (!this.isValid) return this;\n\n const o = {},\n normalizedUnit = Duration.normalizeUnit(unit);\n switch (normalizedUnit) {\n case \"years\":\n o.month = 1;\n // falls through\n case \"quarters\":\n case \"months\":\n o.day = 1;\n // falls through\n case \"weeks\":\n case \"days\":\n o.hour = 0;\n // falls through\n case \"hours\":\n o.minute = 0;\n // falls through\n case \"minutes\":\n o.second = 0;\n // falls through\n case \"seconds\":\n o.millisecond = 0;\n break;\n case \"milliseconds\":\n break;\n // no default, invalid units throw in normalizeUnit()\n }\n\n if (normalizedUnit === \"weeks\") {\n if (useLocaleWeeks) {\n const startOfWeek = this.loc.getStartOfWeek();\n const { weekday } = this;\n if (weekday < startOfWeek) {\n o.weekNumber = this.weekNumber - 1;\n }\n o.weekday = startOfWeek;\n } else {\n o.weekday = 1;\n }\n }\n\n if (normalizedUnit === \"quarters\") {\n const q = Math.ceil(this.month / 3);\n o.month = (q - 1) * 3 + 1;\n }\n\n return this.set(o);\n }\n\n /**\n * \"Set\" this DateTime to the end (meaning the last millisecond) of a unit of time\n * @param {string} unit - The unit to go to the end of. Can be 'year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', or 'millisecond'.\n * @param {Object} opts - options\n * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week\n * @example DateTime.local(2014, 3, 3).endOf('month').toISO(); //=> '2014-03-31T23:59:59.999-05:00'\n * @example DateTime.local(2014, 3, 3).endOf('year').toISO(); //=> '2014-12-31T23:59:59.999-05:00'\n * @example DateTime.local(2014, 3, 3).endOf('week').toISO(); // => '2014-03-09T23:59:59.999-05:00', weeks start on Mondays\n * @example DateTime.local(2014, 3, 3, 5, 30).endOf('day').toISO(); //=> '2014-03-03T23:59:59.999-05:00'\n * @example DateTime.local(2014, 3, 3, 5, 30).endOf('hour').toISO(); //=> '2014-03-03T05:59:59.999-05:00'\n * @return {DateTime}\n */\n endOf(unit, opts) {\n return this.isValid\n ? this.plus({ [unit]: 1 })\n .startOf(unit, opts)\n .minus(1)\n : this;\n }\n\n // OUTPUT\n\n /**\n * Returns a string representation of this DateTime formatted according to the specified format string.\n * **You may not want this.** See {@link DateTime#toLocaleString} for a more flexible formatting tool. For a table of tokens and their interpretations, see [here](https://moment.github.io/luxon/#/formatting?id=table-of-tokens).\n * Defaults to en-US if no locale has been specified, regardless of the system's locale.\n * @param {string} fmt - the format string\n * @param {Object} opts - opts to override the configuration options on this DateTime\n * @example DateTime.now().toFormat('yyyy LLL dd') //=> '2017 Apr 22'\n * @example DateTime.now().setLocale('fr').toFormat('yyyy LLL dd') //=> '2017 avr. 22'\n * @example DateTime.now().toFormat('yyyy LLL dd', { locale: \"fr\" }) //=> '2017 avr. 22'\n * @example DateTime.now().toFormat(\"HH 'hours and' mm 'minutes'\") //=> '20 hours and 55 minutes'\n * @return {string}\n */\n toFormat(fmt, opts = {}) {\n return this.isValid\n ? Formatter.create(this.loc.redefaultToEN(opts)).formatDateTimeFromString(this, fmt)\n : INVALID;\n }\n\n /**\n * Returns a localized string representing this date. Accepts the same options as the Intl.DateTimeFormat constructor and any presets defined by Luxon, such as `DateTime.DATE_FULL` or `DateTime.TIME_SIMPLE`.\n * The exact behavior of this method is browser-specific, but in general it will return an appropriate representation\n * of the DateTime in the assigned locale.\n * Defaults to the system's locale if no locale has been specified\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n * @param formatOpts {Object} - Intl.DateTimeFormat constructor options and configuration options\n * @param {Object} opts - opts to override the configuration options on this DateTime\n * @example DateTime.now().toLocaleString(); //=> 4/20/2017\n * @example DateTime.now().setLocale('en-gb').toLocaleString(); //=> '20/04/2017'\n * @example DateTime.now().toLocaleString(DateTime.DATE_FULL); //=> 'April 20, 2017'\n * @example DateTime.now().toLocaleString(DateTime.DATE_FULL, { locale: 'fr' }); //=> '28 août 2022'\n * @example DateTime.now().toLocaleString(DateTime.TIME_SIMPLE); //=> '11:32 AM'\n * @example DateTime.now().toLocaleString(DateTime.DATETIME_SHORT); //=> '4/20/2017, 11:32 AM'\n * @example DateTime.now().toLocaleString({ weekday: 'long', month: 'long', day: '2-digit' }); //=> 'Thursday, April 20'\n * @example DateTime.now().toLocaleString({ weekday: 'short', month: 'short', day: '2-digit', hour: '2-digit', minute: '2-digit' }); //=> 'Thu, Apr 20, 11:27 AM'\n * @example DateTime.now().toLocaleString({ hour: '2-digit', minute: '2-digit', hourCycle: 'h23' }); //=> '11:32'\n * @return {string}\n */\n toLocaleString(formatOpts = Formats.DATE_SHORT, opts = {}) {\n return this.isValid\n ? Formatter.create(this.loc.clone(opts), formatOpts).formatDateTime(this)\n : INVALID;\n }\n\n /**\n * Returns an array of format \"parts\", meaning individual tokens along with metadata. This is allows callers to post-process individual sections of the formatted output.\n * Defaults to the system's locale if no locale has been specified\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat/formatToParts\n * @param opts {Object} - Intl.DateTimeFormat constructor options, same as `toLocaleString`.\n * @example DateTime.now().toLocaleParts(); //=> [\n * //=> { type: 'day', value: '25' },\n * //=> { type: 'literal', value: '/' },\n * //=> { type: 'month', value: '05' },\n * //=> { type: 'literal', value: '/' },\n * //=> { type: 'year', value: '1982' }\n * //=> ]\n */\n toLocaleParts(opts = {}) {\n return this.isValid\n ? Formatter.create(this.loc.clone(opts), opts).formatDateTimeParts(this)\n : [];\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this DateTime\n * @param {Object} opts - options\n * @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0\n * @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0\n * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'\n * @param {boolean} [opts.extendedZone=false] - add the time zone format extension\n * @param {string} [opts.format='extended'] - choose between the basic and extended format\n * @example DateTime.utc(1983, 5, 25).toISO() //=> '1982-05-25T00:00:00.000Z'\n * @example DateTime.now().toISO() //=> '2017-04-22T20:47:05.335-04:00'\n * @example DateTime.now().toISO({ includeOffset: false }) //=> '2017-04-22T20:47:05.335'\n * @example DateTime.now().toISO({ format: 'basic' }) //=> '20170422T204705.335-0400'\n * @return {string}\n */\n toISO({\n format = \"extended\",\n suppressSeconds = false,\n suppressMilliseconds = false,\n includeOffset = true,\n extendedZone = false,\n } = {}) {\n if (!this.isValid) {\n return null;\n }\n\n const ext = format === \"extended\";\n\n let c = toISODate(this, ext);\n c += \"T\";\n c += toISOTime(this, ext, suppressSeconds, suppressMilliseconds, includeOffset, extendedZone);\n return c;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this DateTime's date component\n * @param {Object} opts - options\n * @param {string} [opts.format='extended'] - choose between the basic and extended format\n * @example DateTime.utc(1982, 5, 25).toISODate() //=> '1982-05-25'\n * @example DateTime.utc(1982, 5, 25).toISODate({ format: 'basic' }) //=> '19820525'\n * @return {string}\n */\n toISODate({ format = \"extended\" } = {}) {\n if (!this.isValid) {\n return null;\n }\n\n return toISODate(this, format === \"extended\");\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this DateTime's week date\n * @example DateTime.utc(1982, 5, 25).toISOWeekDate() //=> '1982-W21-2'\n * @return {string}\n */\n toISOWeekDate() {\n return toTechFormat(this, \"kkkk-'W'WW-c\");\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this DateTime's time component\n * @param {Object} opts - options\n * @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0\n * @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0\n * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'\n * @param {boolean} [opts.extendedZone=true] - add the time zone format extension\n * @param {boolean} [opts.includePrefix=false] - include the `T` prefix\n * @param {string} [opts.format='extended'] - choose between the basic and extended format\n * @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime() //=> '07:34:19.361Z'\n * @example DateTime.utc().set({ hour: 7, minute: 34, seconds: 0, milliseconds: 0 }).toISOTime({ suppressSeconds: true }) //=> '07:34Z'\n * @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime({ format: 'basic' }) //=> '073419.361Z'\n * @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime({ includePrefix: true }) //=> 'T07:34:19.361Z'\n * @return {string}\n */\n toISOTime({\n suppressMilliseconds = false,\n suppressSeconds = false,\n includeOffset = true,\n includePrefix = false,\n extendedZone = false,\n format = \"extended\",\n } = {}) {\n if (!this.isValid) {\n return null;\n }\n\n let c = includePrefix ? \"T\" : \"\";\n return (\n c +\n toISOTime(\n this,\n format === \"extended\",\n suppressSeconds,\n suppressMilliseconds,\n includeOffset,\n extendedZone\n )\n );\n }\n\n /**\n * Returns an RFC 2822-compatible string representation of this DateTime\n * @example DateTime.utc(2014, 7, 13).toRFC2822() //=> 'Sun, 13 Jul 2014 00:00:00 +0000'\n * @example DateTime.local(2014, 7, 13).toRFC2822() //=> 'Sun, 13 Jul 2014 00:00:00 -0400'\n * @return {string}\n */\n toRFC2822() {\n return toTechFormat(this, \"EEE, dd LLL yyyy HH:mm:ss ZZZ\", false);\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for use in HTTP headers. The output is always expressed in GMT.\n * Specifically, the string conforms to RFC 1123.\n * @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1\n * @example DateTime.utc(2014, 7, 13).toHTTP() //=> 'Sun, 13 Jul 2014 00:00:00 GMT'\n * @example DateTime.utc(2014, 7, 13, 19).toHTTP() //=> 'Sun, 13 Jul 2014 19:00:00 GMT'\n * @return {string}\n */\n toHTTP() {\n return toTechFormat(this.toUTC(), \"EEE, dd LLL yyyy HH:mm:ss 'GMT'\");\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for use in SQL Date\n * @example DateTime.utc(2014, 7, 13).toSQLDate() //=> '2014-07-13'\n * @return {string}\n */\n toSQLDate() {\n if (!this.isValid) {\n return null;\n }\n return toISODate(this, true);\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for use in SQL Time\n * @param {Object} opts - options\n * @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset.\n * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'\n * @param {boolean} [opts.includeOffsetSpace=true] - include the space between the time and the offset, such as '05:15:16.345 -04:00'\n * @example DateTime.utc().toSQL() //=> '05:15:16.345'\n * @example DateTime.now().toSQL() //=> '05:15:16.345 -04:00'\n * @example DateTime.now().toSQL({ includeOffset: false }) //=> '05:15:16.345'\n * @example DateTime.now().toSQL({ includeZone: false }) //=> '05:15:16.345 America/New_York'\n * @return {string}\n */\n toSQLTime({ includeOffset = true, includeZone = false, includeOffsetSpace = true } = {}) {\n let fmt = \"HH:mm:ss.SSS\";\n\n if (includeZone || includeOffset) {\n if (includeOffsetSpace) {\n fmt += \" \";\n }\n if (includeZone) {\n fmt += \"z\";\n } else if (includeOffset) {\n fmt += \"ZZ\";\n }\n }\n\n return toTechFormat(this, fmt, true);\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for use in SQL DateTime\n * @param {Object} opts - options\n * @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset.\n * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'\n * @param {boolean} [opts.includeOffsetSpace=true] - include the space between the time and the offset, such as '05:15:16.345 -04:00'\n * @example DateTime.utc(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 Z'\n * @example DateTime.local(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 -04:00'\n * @example DateTime.local(2014, 7, 13).toSQL({ includeOffset: false }) //=> '2014-07-13 00:00:00.000'\n * @example DateTime.local(2014, 7, 13).toSQL({ includeZone: true }) //=> '2014-07-13 00:00:00.000 America/New_York'\n * @return {string}\n */\n toSQL(opts = {}) {\n if (!this.isValid) {\n return null;\n }\n\n return `${this.toSQLDate()} ${this.toSQLTime(opts)}`;\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for debugging\n * @return {string}\n */\n toString() {\n return this.isValid ? this.toISO() : INVALID;\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for the REPL.\n * @return {string}\n */\n [Symbol.for(\"nodejs.util.inspect.custom\")]() {\n if (this.isValid) {\n return `DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`;\n } else {\n return `DateTime { Invalid, reason: ${this.invalidReason} }`;\n }\n }\n\n /**\n * Returns the epoch milliseconds of this DateTime. Alias of {@link DateTime#toMillis}\n * @return {number}\n */\n valueOf() {\n return this.toMillis();\n }\n\n /**\n * Returns the epoch milliseconds of this DateTime.\n * @return {number}\n */\n toMillis() {\n return this.isValid ? this.ts : NaN;\n }\n\n /**\n * Returns the epoch seconds of this DateTime.\n * @return {number}\n */\n toSeconds() {\n return this.isValid ? this.ts / 1000 : NaN;\n }\n\n /**\n * Returns the epoch seconds (as a whole number) of this DateTime.\n * @return {number}\n */\n toUnixInteger() {\n return this.isValid ? Math.floor(this.ts / 1000) : NaN;\n }\n\n /**\n * Returns an ISO 8601 representation of this DateTime appropriate for use in JSON.\n * @return {string}\n */\n toJSON() {\n return this.toISO();\n }\n\n /**\n * Returns a BSON serializable equivalent to this DateTime.\n * @return {Date}\n */\n toBSON() {\n return this.toJSDate();\n }\n\n /**\n * Returns a JavaScript object with this DateTime's year, month, day, and so on.\n * @param opts - options for generating the object\n * @param {boolean} [opts.includeConfig=false] - include configuration attributes in the output\n * @example DateTime.now().toObject() //=> { year: 2017, month: 4, day: 22, hour: 20, minute: 49, second: 42, millisecond: 268 }\n * @return {Object}\n */\n toObject(opts = {}) {\n if (!this.isValid) return {};\n\n const base = { ...this.c };\n\n if (opts.includeConfig) {\n base.outputCalendar = this.outputCalendar;\n base.numberingSystem = this.loc.numberingSystem;\n base.locale = this.loc.locale;\n }\n return base;\n }\n\n /**\n * Returns a JavaScript Date equivalent to this DateTime.\n * @return {Date}\n */\n toJSDate() {\n return new Date(this.isValid ? this.ts : NaN);\n }\n\n // COMPARE\n\n /**\n * Return the difference between two DateTimes as a Duration.\n * @param {DateTime} otherDateTime - the DateTime to compare this one to\n * @param {string|string[]} [unit=['milliseconds']] - the unit or array of units (such as 'hours' or 'days') to include in the duration.\n * @param {Object} opts - options that affect the creation of the Duration\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @example\n * var i1 = DateTime.fromISO('1982-05-25T09:45'),\n * i2 = DateTime.fromISO('1983-10-14T10:30');\n * i2.diff(i1).toObject() //=> { milliseconds: 43807500000 }\n * i2.diff(i1, 'hours').toObject() //=> { hours: 12168.75 }\n * i2.diff(i1, ['months', 'days']).toObject() //=> { months: 16, days: 19.03125 }\n * i2.diff(i1, ['months', 'days', 'hours']).toObject() //=> { months: 16, days: 19, hours: 0.75 }\n * @return {Duration}\n */\n diff(otherDateTime, unit = \"milliseconds\", opts = {}) {\n if (!this.isValid || !otherDateTime.isValid) {\n return Duration.invalid(\"created by diffing an invalid DateTime\");\n }\n\n const durOpts = { locale: this.locale, numberingSystem: this.numberingSystem, ...opts };\n\n const units = maybeArray(unit).map(Duration.normalizeUnit),\n otherIsLater = otherDateTime.valueOf() > this.valueOf(),\n earlier = otherIsLater ? this : otherDateTime,\n later = otherIsLater ? otherDateTime : this,\n diffed = diff(earlier, later, units, durOpts);\n\n return otherIsLater ? diffed.negate() : diffed;\n }\n\n /**\n * Return the difference between this DateTime and right now.\n * See {@link DateTime#diff}\n * @param {string|string[]} [unit=['milliseconds']] - the unit or units units (such as 'hours' or 'days') to include in the duration\n * @param {Object} opts - options that affect the creation of the Duration\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @return {Duration}\n */\n diffNow(unit = \"milliseconds\", opts = {}) {\n return this.diff(DateTime.now(), unit, opts);\n }\n\n /**\n * Return an Interval spanning between this DateTime and another DateTime\n * @param {DateTime} otherDateTime - the other end point of the Interval\n * @return {Interval}\n */\n until(otherDateTime) {\n return this.isValid ? Interval.fromDateTimes(this, otherDateTime) : this;\n }\n\n /**\n * Return whether this DateTime is in the same unit of time as another DateTime.\n * Higher-order units must also be identical for this function to return `true`.\n * Note that time zones are **ignored** in this comparison, which compares the **local** calendar time. Use {@link DateTime#setZone} to convert one of the dates if needed.\n * @param {DateTime} otherDateTime - the other DateTime\n * @param {string} unit - the unit of time to check sameness on\n * @param {Object} opts - options\n * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week; only the locale of this DateTime is used\n * @example DateTime.now().hasSame(otherDT, 'day'); //~> true if otherDT is in the same current calendar day\n * @return {boolean}\n */\n hasSame(otherDateTime, unit, opts) {\n if (!this.isValid) return false;\n\n const inputMs = otherDateTime.valueOf();\n const adjustedToZone = this.setZone(otherDateTime.zone, { keepLocalTime: true });\n return (\n adjustedToZone.startOf(unit, opts) <= inputMs && inputMs <= adjustedToZone.endOf(unit, opts)\n );\n }\n\n /**\n * Equality check\n * Two DateTimes are equal if and only if they represent the same millisecond, have the same zone and location, and are both valid.\n * To compare just the millisecond values, use `+dt1 === +dt2`.\n * @param {DateTime} other - the other DateTime\n * @return {boolean}\n */\n equals(other) {\n return (\n this.isValid &&\n other.isValid &&\n this.valueOf() === other.valueOf() &&\n this.zone.equals(other.zone) &&\n this.loc.equals(other.loc)\n );\n }\n\n /**\n * Returns a string representation of a this time relative to now, such as \"in two days\". Can only internationalize if your\n * platform supports Intl.RelativeTimeFormat. Rounds down by default.\n * @param {Object} options - options that affect the output\n * @param {DateTime} [options.base=DateTime.now()] - the DateTime to use as the basis to which this time is compared. Defaults to now.\n * @param {string} [options.style=\"long\"] - the style of units, must be \"long\", \"short\", or \"narrow\"\n * @param {string|string[]} options.unit - use a specific unit or array of units; if omitted, or an array, the method will pick the best unit. Use an array or one of \"years\", \"quarters\", \"months\", \"weeks\", \"days\", \"hours\", \"minutes\", or \"seconds\"\n * @param {boolean} [options.round=true] - whether to round the numbers in the output.\n * @param {number} [options.padding=0] - padding in milliseconds. This allows you to round up the result if it fits inside the threshold. Don't use in combination with {round: false} because the decimal output will include the padding.\n * @param {string} options.locale - override the locale of this DateTime\n * @param {string} options.numberingSystem - override the numberingSystem of this DateTime. The Intl system may choose not to honor this\n * @example DateTime.now().plus({ days: 1 }).toRelative() //=> \"in 1 day\"\n * @example DateTime.now().setLocale(\"es\").toRelative({ days: 1 }) //=> \"dentro de 1 día\"\n * @example DateTime.now().plus({ days: 1 }).toRelative({ locale: \"fr\" }) //=> \"dans 23 heures\"\n * @example DateTime.now().minus({ days: 2 }).toRelative() //=> \"2 days ago\"\n * @example DateTime.now().minus({ days: 2 }).toRelative({ unit: \"hours\" }) //=> \"48 hours ago\"\n * @example DateTime.now().minus({ hours: 36 }).toRelative({ round: false }) //=> \"1.5 days ago\"\n */\n toRelative(options = {}) {\n if (!this.isValid) return null;\n const base = options.base || DateTime.fromObject({}, { zone: this.zone }),\n padding = options.padding ? (this < base ? -options.padding : options.padding) : 0;\n let units = [\"years\", \"months\", \"days\", \"hours\", \"minutes\", \"seconds\"];\n let unit = options.unit;\n if (Array.isArray(options.unit)) {\n units = options.unit;\n unit = undefined;\n }\n return diffRelative(base, this.plus(padding), {\n ...options,\n numeric: \"always\",\n units,\n unit,\n });\n }\n\n /**\n * Returns a string representation of this date relative to today, such as \"yesterday\" or \"next month\".\n * Only internationalizes on platforms that supports Intl.RelativeTimeFormat.\n * @param {Object} options - options that affect the output\n * @param {DateTime} [options.base=DateTime.now()] - the DateTime to use as the basis to which this time is compared. Defaults to now.\n * @param {string} options.locale - override the locale of this DateTime\n * @param {string} options.unit - use a specific unit; if omitted, the method will pick the unit. Use one of \"years\", \"quarters\", \"months\", \"weeks\", or \"days\"\n * @param {string} options.numberingSystem - override the numberingSystem of this DateTime. The Intl system may choose not to honor this\n * @example DateTime.now().plus({ days: 1 }).toRelativeCalendar() //=> \"tomorrow\"\n * @example DateTime.now().setLocale(\"es\").plus({ days: 1 }).toRelative() //=> \"\"mañana\"\n * @example DateTime.now().plus({ days: 1 }).toRelativeCalendar({ locale: \"fr\" }) //=> \"demain\"\n * @example DateTime.now().minus({ days: 2 }).toRelativeCalendar() //=> \"2 days ago\"\n */\n toRelativeCalendar(options = {}) {\n if (!this.isValid) return null;\n\n return diffRelative(options.base || DateTime.fromObject({}, { zone: this.zone }), this, {\n ...options,\n numeric: \"auto\",\n units: [\"years\", \"months\", \"days\"],\n calendary: true,\n });\n }\n\n /**\n * Return the min of several date times\n * @param {...DateTime} dateTimes - the DateTimes from which to choose the minimum\n * @return {DateTime} the min DateTime, or undefined if called with no argument\n */\n static min(...dateTimes) {\n if (!dateTimes.every(DateTime.isDateTime)) {\n throw new InvalidArgumentError(\"min requires all arguments be DateTimes\");\n }\n return bestBy(dateTimes, (i) => i.valueOf(), Math.min);\n }\n\n /**\n * Return the max of several date times\n * @param {...DateTime} dateTimes - the DateTimes from which to choose the maximum\n * @return {DateTime} the max DateTime, or undefined if called with no argument\n */\n static max(...dateTimes) {\n if (!dateTimes.every(DateTime.isDateTime)) {\n throw new InvalidArgumentError(\"max requires all arguments be DateTimes\");\n }\n return bestBy(dateTimes, (i) => i.valueOf(), Math.max);\n }\n\n // MISC\n\n /**\n * Explain how a string would be parsed by fromFormat()\n * @param {string} text - the string to parse\n * @param {string} fmt - the format the string is expected to be in (see description)\n * @param {Object} options - options taken by fromFormat()\n * @return {Object}\n */\n static fromFormatExplain(text, fmt, options = {}) {\n const { locale = null, numberingSystem = null } = options,\n localeToUse = Locale.fromOpts({\n locale,\n numberingSystem,\n defaultToEN: true,\n });\n return explainFromTokens(localeToUse, text, fmt);\n }\n\n /**\n * @deprecated use fromFormatExplain instead\n */\n static fromStringExplain(text, fmt, options = {}) {\n return DateTime.fromFormatExplain(text, fmt, options);\n }\n\n // FORMAT PRESETS\n\n /**\n * {@link DateTime#toLocaleString} format like 10/14/1983\n * @type {Object}\n */\n static get DATE_SHORT() {\n return Formats.DATE_SHORT;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Oct 14, 1983'\n * @type {Object}\n */\n static get DATE_MED() {\n return Formats.DATE_MED;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Fri, Oct 14, 1983'\n * @type {Object}\n */\n static get DATE_MED_WITH_WEEKDAY() {\n return Formats.DATE_MED_WITH_WEEKDAY;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'October 14, 1983'\n * @type {Object}\n */\n static get DATE_FULL() {\n return Formats.DATE_FULL;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Tuesday, October 14, 1983'\n * @type {Object}\n */\n static get DATE_HUGE() {\n return Formats.DATE_HUGE;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get TIME_SIMPLE() {\n return Formats.TIME_SIMPLE;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30:23 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get TIME_WITH_SECONDS() {\n return Formats.TIME_WITH_SECONDS;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30:23 AM EDT'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get TIME_WITH_SHORT_OFFSET() {\n return Formats.TIME_WITH_SHORT_OFFSET;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30:23 AM Eastern Daylight Time'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get TIME_WITH_LONG_OFFSET() {\n return Formats.TIME_WITH_LONG_OFFSET;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30', always 24-hour.\n * @type {Object}\n */\n static get TIME_24_SIMPLE() {\n return Formats.TIME_24_SIMPLE;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30:23', always 24-hour.\n * @type {Object}\n */\n static get TIME_24_WITH_SECONDS() {\n return Formats.TIME_24_WITH_SECONDS;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30:23 EDT', always 24-hour.\n * @type {Object}\n */\n static get TIME_24_WITH_SHORT_OFFSET() {\n return Formats.TIME_24_WITH_SHORT_OFFSET;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30:23 Eastern Daylight Time', always 24-hour.\n * @type {Object}\n */\n static get TIME_24_WITH_LONG_OFFSET() {\n return Formats.TIME_24_WITH_LONG_OFFSET;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '10/14/1983, 9:30 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_SHORT() {\n return Formats.DATETIME_SHORT;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '10/14/1983, 9:30:33 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_SHORT_WITH_SECONDS() {\n return Formats.DATETIME_SHORT_WITH_SECONDS;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Oct 14, 1983, 9:30 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_MED() {\n return Formats.DATETIME_MED;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Oct 14, 1983, 9:30:33 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_MED_WITH_SECONDS() {\n return Formats.DATETIME_MED_WITH_SECONDS;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Fri, 14 Oct 1983, 9:30 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_MED_WITH_WEEKDAY() {\n return Formats.DATETIME_MED_WITH_WEEKDAY;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'October 14, 1983, 9:30 AM EDT'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_FULL() {\n return Formats.DATETIME_FULL;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'October 14, 1983, 9:30:33 AM EDT'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_FULL_WITH_SECONDS() {\n return Formats.DATETIME_FULL_WITH_SECONDS;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Friday, October 14, 1983, 9:30 AM Eastern Daylight Time'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_HUGE() {\n return Formats.DATETIME_HUGE;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Friday, October 14, 1983, 9:30:33 AM Eastern Daylight Time'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_HUGE_WITH_SECONDS() {\n return Formats.DATETIME_HUGE_WITH_SECONDS;\n }\n}\n\n/**\n * @private\n */\nexport function friendlyDateTime(dateTimeish) {\n if (DateTime.isDateTime(dateTimeish)) {\n return dateTimeish;\n } else if (dateTimeish && dateTimeish.valueOf && isNumber(dateTimeish.valueOf())) {\n return DateTime.fromJSDate(dateTimeish);\n } else if (dateTimeish && typeof dateTimeish === \"object\") {\n return DateTime.fromObject(dateTimeish);\n } else {\n throw new InvalidArgumentError(\n `Unknown datetime argument: ${dateTimeish}, of type ${typeof dateTimeish}`\n );\n }\n}\n"],"names":["LuxonError","Error","InvalidDateTimeError","constructor","reason","super","concat","toMessage","InvalidIntervalError","InvalidDurationError","ConflictingSpecificationError","InvalidUnitError","unit","InvalidArgumentError","ZoneIsAbstractError","n","s","l","DATE_SHORT","year","month","day","DATE_MED","DATE_MED_WITH_WEEKDAY","weekday","DATE_FULL","DATE_HUGE","TIME_SIMPLE","hour","minute","TIME_WITH_SECONDS","second","TIME_WITH_SHORT_OFFSET","timeZoneName","TIME_WITH_LONG_OFFSET","TIME_24_SIMPLE","hourCycle","TIME_24_WITH_SECONDS","TIME_24_WITH_SHORT_OFFSET","TIME_24_WITH_LONG_OFFSET","DATETIME_SHORT","DATETIME_SHORT_WITH_SECONDS","DATETIME_MED","DATETIME_MED_WITH_SECONDS","DATETIME_MED_WITH_WEEKDAY","DATETIME_FULL","DATETIME_FULL_WITH_SECONDS","DATETIME_HUGE","DATETIME_HUGE_WITH_SECONDS","Zone","type","name","ianaName","this","isUniversal","offsetName","ts","opts","formatOffset","format","offset","equals","otherZone","isValid","singleton","SystemZone","instance","Intl","DateTimeFormat","resolvedOptions","timeZone","_ref","locale","parseZoneInfo","Date","getTimezoneOffset","dtfCache","typeToPos","era","ianaZoneCache","IANAZone","create","resetCache","isValidSpecifier","isValidZone","zone","e","zoneName","valid","date","isNaN","NaN","dtf","hour12","adOrBc","formatToParts","formatted","filled","i","length","value","pos","isUndefined","parseInt","partsOffset","replace","parsed","exec","fMonth","fDay","fYear","fadOrBc","fHour","fMinute","fSecond","hackyOffset","Math","abs","asTS","over","objToLocalTS","millisecond","intlLFCache","intlDTCache","getCachedDTF","locString","arguments","undefined","key","JSON","stringify","intlNumCache","intlRelCache","sysLocaleCache","weekInfoCache","listStuff","loc","englishFn","intlFn","mode","listingMode","PolyNumberFormatter","intl","forceSimple","padTo","floor","otherOpts","Object","keys","intlOpts","useGrouping","minimumIntegerDigits","inf","NumberFormat","getCachedINF","fixed","padStart","roundTo","PolyDateFormatter","dt","z","originalZone","gmtOffset","offsetZ","setZone","plus","minutes","map","join","toJSDate","parts","part","PolyRelFormatter","isEnglish","style","hasRelative","rtf","base","cacheKeyOpts","RelativeTimeFormat","getCachedRTF","count","numeric","narrow","units","years","quarters","months","weeks","days","hours","seconds","lastable","indexOf","isDay","isInPast","is","fmtValue","singular","lilUnits","fmtUnit","English","fallbackWeekSettings","firstDay","minimalDays","weekend","Locale","fromOpts","numberingSystem","outputCalendar","weekSettings","defaultToEN","specifiedLocale","Settings","defaultLocale","localeR","numberingSystemR","defaultNumberingSystem","outputCalendarR","defaultOutputCalendar","weekSettingsR","validateWeekSettings","defaultWeekSettings","fromObject","numbering","parsedLocale","parsedNumberingSystem","parsedOutputCalendar","localeStr","xIndex","substring","uIndex","options","selectedStr","smaller","calendar","parseLocaleString","includes","intlConfigString","weekdaysCache","standalone","monthsCache","meridiemCache","eraCache","fastNumbersCached","fastNumbers","startsWith","isActuallyEn","hasNoWeirdness","clone","alts","getOwnPropertyNames","redefaultToEN","redefaultToSystem","formatStr","f","ms","DateTime","utc","push","mapMonths","extract","weekdays","mapWeekdays","meridiems","eras","field","matching","dtFormatter","find","m","toLowerCase","numberFormatter","relFormatter","listFormatter","ListFormat","getCachedLF","getWeekSettings","hasLocaleWeekInfo","data","getWeekInfo","weekInfo","getCachedWeekInfo","getStartOfWeek","getMinDaysInFirstWeek","getWeekendDays","other","FixedOffsetZone","utcInstance","parseSpecifier","r","match","signedOffset","InvalidZone","normalizeZone","input","defaultZone","lowered","isNumber","throwOnInvalid","now","twoDigitCutoffYear","cutoffYear","t","resetCaches","Invalid","explanation","nonLeapLadder","leapLadder","unitOutOfRange","dayOfWeek","d","UTC","setUTCFullYear","getUTCFullYear","js","getUTCDay","computeOrdinal","isLeapYear","uncomputeOrdinal","ordinal","table","month0","findIndex","isoWeekdayToLocal","isoWeekday","startOfWeek","gregorianToWeek","gregObj","minDaysInFirstWeek","weekYear","weekNumber","weeksInWeekYear","timeObject","weekToGregorian","weekData","weekdayOfJan4","yearInDays","daysInYear","gregorianToOrdinal","gregData","ordinalToGregorian","ordinalData","usesLocalWeekValues","obj","localWeekday","localWeekNumber","localWeekYear","hasInvalidGregorianData","validYear","isInteger","validMonth","integerBetween","validDay","daysInMonth","hasInvalidTimeData","validHour","validMinute","validSecond","validMillisecond","o","prototype","bestBy","arr","by","compare","reduce","best","next","pair","hasOwnProperty","prop","call","settings","Array","isArray","some","v","from","thing","bottom","top","padded","parseInteger","string","parseFloating","parseFloat","parseMillis","fraction","number","digits","factor","trunc","round","modMonth","x","floorMod","firstWeekOffset","weekOffset","weekOffsetNext","untruncateYear","offsetFormat","modified","offHourStr","offMinuteStr","offHour","Number","offMin","asNumber","numericValue","normalizeObject","normalizer","normalized","u","sign","RangeError","a","k","pick","monthsLong","monthsShort","monthsNarrow","weekdaysLong","weekdaysShort","weekdaysNarrow","erasLong","erasShort","erasNarrow","stringifyTokens","splits","tokenToString","token","literal","val","macroTokenToFormatOpts","D","Formats","DD","DDD","DDDD","tt","ttt","tttt","T","TT","TTT","TTTT","ff","fff","ffff","F","FF","FFF","FFFF","Formatter","parseFormat","fmt","current","currentFull","bracketed","c","charAt","test","formatOpts","systemLoc","formatWithSystemDefault","formatDateTime","formatDateTimeParts","formatInterval","interval","start","formatRange","end","num","p","formatDateTimeFromString","knownEnglish","useDateTimeFormatter","isOffsetFixed","allowZ","meridiem","maybeMacro","toString","slice","quarter","formatDurationFromString","dur","tokenToField","tokens","realTokens","found","lildur","mapped","get","shiftTo","filter","ianaRegex","combineRegexes","_len","regexes","_key","full","source","RegExp","combineExtractors","_len2","extractors","_key2","ex","mergedVals","mergedZone","cursor","parse","_len3","patterns","_key3","regex","extractor","simpleParse","_len4","_key4","ret","offsetRegex","isoExtendedZone","isoTimeBaseRegex","isoTimeRegex","isoTimeExtensionRegex","extractISOWeekData","extractISOOrdinalData","sqlTimeRegex","sqlTimeExtensionRegex","int","fallback","extractISOTime","milliseconds","extractISOOffset","local","fullOffset","extractIANAZone","isoTimeOnly","isoDuration","extractISODuration","yearStr","monthStr","weekStr","dayStr","hourStr","minuteStr","secondStr","millisecondsStr","hasNegativePrefix","negativeSeconds","maybeNegate","obsOffsets","GMT","EDT","EST","CDT","CST","MDT","MST","PDT","PST","fromStrings","weekdayStr","result","rfc2822","extractRFC2822","obsOffset","milOffset","rfc1123","rfc850","ascii","extractRFC1123Or850","extractASCII","isoYmdWithTimeExtensionRegex","isoWeekWithTimeExtensionRegex","isoOrdinalWithTimeExtensionRegex","isoTimeCombinedRegex","extractISOYmdTimeAndOffset","extractISOWeekTimeAndOffset","extractISOOrdinalDateAndTime","extractISOTimeAndOffset","extractISOTimeOnly","sqlYmdWithTimeExtensionRegex","sqlTimeCombinedRegex","extractISOTimeOffsetAndIANAZone","INVALID","lowOrderMatrix","casualMatrix","daysInYearAccurate","daysInMonthAccurate","accurateMatrix","orderedUnits","reverseUnits","reverse","conf","values","conversionAccuracy","matrix","Duration","durationToMillis","vals","_vals$milliseconds","sum","normalizeValues","reduceRight","previous","previousVal","conv","rollUp","config","accurate","invalid","isLuxonDuration","fromMillis","normalizeUnit","fromDurationLike","durationLike","isDuration","fromISO","text","parseISODuration","fromISOTime","parseISOTimeOnly","week","toFormat","fmtOpts","toHuman","unitDisplay","listStyle","toObject","toISO","toISOTime","millis","toMillis","suppressMilliseconds","suppressSeconds","includePrefix","includeOffset","toJSON","Symbol","for","invalidReason","valueOf","duration","minus","negate","mapUnits","fn","set","reconfigure","as","normalize","rescale","newVals","entries","removeZeroes","shiftToAll","built","accumulated","lastUnit","own","ak","negated","invalidExplanation","v1","v2","Interval","isLuxonInterval","fromDateTimes","builtStart","friendlyDateTime","builtEnd","validateError","validateStartEnd","after","before","split","startIsValid","endIsValid","isInterval","toDuration","startOf","useLocaleWeeks","diff","hasSame","isEmpty","isAfter","dateTime","isBefore","contains","splitAt","dateTimes","sorted","sort","b","results","added","splitBy","idx","divideEqually","numberOfParts","overlaps","abutsStart","abutsEnd","engulfs","intersection","union","merge","intervals","final","item","sofar","xor","currentCount","ends","time","difference","toLocaleString","toISODate","dateFormat","separator","mapEndpoints","mapFn","Info","hasDST","proto","isValidIANAZone","locObj","getMinimumDaysInFirstWeek","getWeekendWeekdays","monthsFormat","weekdaysFormat","features","relative","localeWeek","dayDiff","earlier","later","utcDayStart","toUTC","keepLocalTime","highWater","lowestOrder","differs","differ","highOrderDiffs","remainingMillis","lowerOrderUnits","numberingSystems","arab","arabext","bali","beng","deva","fullwide","gujr","hanidec","khmr","knda","laoo","limb","mlym","mong","mymr","orya","tamldec","telu","thai","tibt","latn","numberingSystemsUTF16","hanidecChars","digitRegex","append","MISSING_FTP","intUnit","post","deser","str","code","charCodeAt","search","min","max","parseDigits","NBSP","String","fromCharCode","spaceOrNBSP","spaceOrNBSPRegExp","fixListRegex","stripInsensitivities","oneOf","strings","startIndex","_ref2","groups","_ref3","h","simple","_ref4","partTypeStyleToTokenVal","short","long","dayperiod","dayPeriod","hour24","dummyDateTimeCache","expandMacroTokens","formatOptsToTokens","maybeExpandMacroToken","explainFromTokens","one","two","three","four","six","oneOrTwo","oneToThree","oneToSix","oneToNine","twoToFour","fourToSix","_ref5","unitate","unitForToken","disqualifyingUnit","regexString","handlers","re","buildRegex","rawMatches","matches","all","matchIndex","specificOffset","Z","q","M","G","y","S","toField","dateTimeFromMatches","df","resolvedOpts","isSpace","actualType","tokenForPart","MAX_DATE","unsupportedZone","possiblyCachedWeekData","possiblyCachedLocalWeekData","localWeekData","inst","old","fixOffset","localTS","tz","utcGuess","o2","o3","tsToObj","getUTCMonth","getUTCDate","getUTCHours","getUTCMinutes","getUTCSeconds","getUTCMilliseconds","objToTS","adjustTime","oPre","millisToAdd","parseDataToDateTime","parsedZone","interpretationZone","toTechFormat","extended","longFormat","extendedZone","defaultUnitValues","defaultWeekUnitValues","defaultOrdinalUnitValues","orderedWeekUnits","orderedOrdinalUnits","normalizeUnitWithLocalWeeks","weeknumber","weeksnumber","weeknumbers","weekyear","weekyears","quickDT","tsNow","offsetProvis","diffRelative","calendary","lastOpts","argList","args","ot","_zone","isLuxonDateTime","fromJSDate","zoneToUse","fromSeconds","containsOrdinal","containsGregorYear","containsGregorMD","containsGregor","definiteWeekDef","useWeekData","defaultValues","objNow","foundFirst","higherOrderInvalid","validWeek","validWeekday","hasInvalidWeekData","validOrdinal","hasInvalidOrdinalData","gregorian","tsFinal","offsetFinal","parseISODate","fromRFC2822","trim","preprocessRFC2822","parseRFC2822Date","fromHTTP","parseHTTPDate","fromFormat","localeToUse","parseFromTokens","fromString","fromSQL","parseSQL","isDateTime","parseFormatForOpts","localeOpts","tokenList","expandFormat","ceil","isWeekend","monthShort","monthLong","weekdayShort","weekdayLong","offsetNameShort","offsetNameLong","isInDST","getPossibleOffsets","dayMs","minuteMs","oEarlier","oLater","o1","ts1","ts2","c1","c2","isInLeapYear","weeksInLocalWeekYear","resolvedLocaleOptions","toLocal","keepCalendarTime","newTS","offsetGuess","asObj","setLocale","settingWeekStuff","mixed","normalizedUnit","endOf","toLocaleParts","ext","toISOWeekDate","toRFC2822","toHTTP","toSQLDate","toSQLTime","includeZone","includeOffsetSpace","toSQL","toSeconds","toUnixInteger","toBSON","includeConfig","otherDateTime","durOpts","otherIsLater","diffed","diffNow","until","inputMs","adjustedToZone","toRelative","padding","toRelativeCalendar","every","fromFormatExplain","fromStringExplain","dateTimeish"],"sourceRoot":""} \ No newline at end of file diff --git a/web-app/build/static/js/260.0cefb6d3.chunk.js b/web-app/build/static/js/260.0cefb6d3.chunk.js deleted file mode 100644 index 4a1fa864a54..00000000000 --- a/web-app/build/static/js/260.0cefb6d3.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[260],{1260:(e,t,a)=>{a.r(t),a.d(t,{default:()=>h});var o=a(2791),s=a(7689),c=a(1320),l=a(5248),r=a(7995),n=a(6078),u=a(1207),g=a(7241),p=a(184);const h=()=>{const e=(0,c.TL)(),t=(0,s.s0)();return(0,o.useEffect)((()=>{(()=>{const a=()=>{(0,l.Ov)(),e((0,r.wr)(!1)),localStorage.setItem("userLoggedIn",""),localStorage.setItem("redirect-path",""),e((0,n.lX)()),t("/login")},o=localStorage.getItem("auth-state");u.Z.invoke("POST","/api/v1/logout",{state:o}).then((()=>{a()})).catch((e=>{console.log(e),a()}))})()}),[e,t]),(0,p.jsx)(g.Z,{})}}}]); -//# sourceMappingURL=260.0cefb6d3.chunk.js.map \ No newline at end of file diff --git a/web-app/build/static/js/298.3a4fcab3.chunk.js b/web-app/build/static/js/298.3a4fcab3.chunk.js deleted file mode 100644 index abd73094f4a..00000000000 --- a/web-app/build/static/js/298.3a4fcab3.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[298],{4298:(e,s,n)=>{n.r(s),n.d(s,{default:()=>j});var t=n(2791),a=n(9945),c=n(9434),r=n(7689),i=n(7995),l=n(1320),h=n(1207),p=n(184);const j=()=>{const e=(0,l.TL)(),{tenantName:s,tenantNamespace:n}=(0,r.UO)(),j=(0,c.v9)((e=>e.tenants.loadingTenant)),[d,u]=(0,t.useState)(!0),[x]=(0,t.useState)([""]),[o]=(0,t.useState)([""]),[m]=(0,t.useState)([""]);return(0,t.useEffect)((()=>{j&&u(!0)}),[j]),(0,t.useEffect)((()=>{d&&h.Z.invoke("GET","/api/v1/namespaces/".concat(n||"","/tenants/").concat(s||"","/csr")).then((e=>{for(var s=0;s{e((0,i.Ih)(s))}))}),[d,n,s,m,o,x,e]),(0,p.jsxs)(t.Fragment,{children:[(0,p.jsx)(a.NZf,{separator:!0,sx:{marginBottom:15},children:"Certificate Signing Requests"}),(0,p.jsx)(a.xuv,{children:(0,p.jsxs)(a.iA_,{"aria-label":"collapsible table",children:[(0,p.jsx)(a.ssF,{children:(0,p.jsxs)(a.SCH,{children:[(0,p.jsx)(a.pj1,{children:"Name"}),(0,p.jsx)(a.pj1,{children:"Status"}),(0,p.jsx)(a.pj1,{children:"Annotation"})]})}),(0,p.jsx)(a.RMI,{children:(0,p.jsxs)(a.SCH,{children:[(0,p.jsx)(a.pj1,{children:o.map((e=>(0,p.jsx)("p",{children:e})))}),(0,p.jsx)(a.pj1,{children:x.map((e=>(0,p.jsx)("p",{children:e})))}),(0,p.jsx)(a.pj1,{children:m.map((e=>(0,p.jsx)("p",{children:e})))})]})})]})})]})}}}]); -//# sourceMappingURL=298.3a4fcab3.chunk.js.map \ No newline at end of file diff --git a/web-app/build/static/js/301.d424161c.chunk.js b/web-app/build/static/js/301.d424161c.chunk.js new file mode 100644 index 00000000000..571f09702ba --- /dev/null +++ b/web-app/build/static/js/301.d424161c.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[301],{5301:(e,t,a)=>{a.r(t),a.d(t,{default:()=>h});var o=a(5043),s=a(3216),c=a(2961),l=a(6483),n=a(4159),r=a(6537),p=a(649),u=a(685),g=a(579);const h=()=>{const e=(0,c.jL)(),t=(0,s.Zp)();return(0,o.useEffect)((()=>{(()=>{const a=()=>{(0,l.q7)(),e((0,n.WQ)(!1)),localStorage.setItem("userLoggedIn",""),localStorage.setItem("redirect-path",""),e((0,r.wD)()),t("/login")},o=localStorage.getItem("auth-state");p.A.invoke("POST","/api/v1/logout",{state:o}).then((()=>{a()})).catch((e=>{console.log(e),a()}))})()}),[e,t]),(0,g.jsx)(u.A,{})}}}]); +//# sourceMappingURL=301.d424161c.chunk.js.map \ No newline at end of file diff --git a/web-app/build/static/js/260.0cefb6d3.chunk.js.map b/web-app/build/static/js/301.d424161c.chunk.js.map similarity index 95% rename from web-app/build/static/js/260.0cefb6d3.chunk.js.map rename to web-app/build/static/js/301.d424161c.chunk.js.map index 32c5b402257..2989dfa8cdf 100644 --- a/web-app/build/static/js/260.0cefb6d3.chunk.js.map +++ b/web-app/build/static/js/301.d424161c.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/260.0cefb6d3.chunk.js","mappings":"4NA0BA,MA6BA,EA7BmBA,KACjB,MAAMC,GAAWC,EAAAA,EAAAA,MACXC,GAAWC,EAAAA,EAAAA,MAwBjB,OAvBAC,EAAAA,EAAAA,YAAU,KACOC,MACb,MAAMC,EAAgBA,MACpBC,EAAAA,EAAAA,MACAP,GAASQ,EAAAA,EAAAA,KAAW,IACpBC,aAAaC,QAAQ,eAAgB,IACrCD,aAAaC,QAAQ,gBAAiB,IACtCV,GAASW,EAAAA,EAAAA,OACTT,EAAS,SAAS,EAEdU,EAAQH,aAAaI,QAAQ,cACnCC,EAAAA,EACGC,OAAO,OAAO,iBAAmB,CAAEH,UACnCI,MAAK,KACJV,GAAe,IAEhBW,OAAOC,IACNC,QAAQC,IAAIF,GACZZ,GAAe,GACf,EAEND,EAAQ,GACP,CAACL,EAAUE,KACPmB,EAAAA,EAAAA,KAACC,EAAAA,EAAgB,GAAG,C","sources":["screens/LogoutPage/LogoutPage.tsx"],"sourcesContent":["// This file is part of MinIO Operator\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { useEffect } from \"react\";\nimport { useNavigate } from \"react-router-dom\";\nimport { useAppDispatch } from \"../../store\";\nimport { ErrorResponseHandler } from \"../../common/types\";\nimport { clearSession } from \"../../common/utils\";\nimport { userLogged } from \"../../systemSlice\";\nimport { resetSession } from \"../Console/consoleSlice\";\nimport api from \"../../common/api\";\nimport LoadingComponent from \"../../common/LoadingComponent\";\n\nconst LogoutPage = () => {\n const dispatch = useAppDispatch();\n const navigate = useNavigate();\n useEffect(() => {\n const logout = () => {\n const deleteSession = () => {\n clearSession();\n dispatch(userLogged(false));\n localStorage.setItem(\"userLoggedIn\", \"\");\n localStorage.setItem(\"redirect-path\", \"\");\n dispatch(resetSession());\n navigate(`/login`);\n };\n const state = localStorage.getItem(\"auth-state\");\n api\n .invoke(\"POST\", `/api/v1/logout`, { state })\n .then(() => {\n deleteSession();\n })\n .catch((err: ErrorResponseHandler) => {\n console.log(err);\n deleteSession();\n });\n };\n logout();\n }, [dispatch, navigate]);\n return ;\n};\n\nexport default LogoutPage;\n"],"names":["LogoutPage","dispatch","useAppDispatch","navigate","useNavigate","useEffect","logout","deleteSession","clearSession","userLogged","localStorage","setItem","resetSession","state","getItem","api","invoke","then","catch","err","console","log","_jsx","LoadingComponent"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/301.d424161c.chunk.js","mappings":"0NA0BA,MA6BA,EA7BmBA,KACjB,MAAMC,GAAWC,EAAAA,EAAAA,MACXC,GAAWC,EAAAA,EAAAA,MAwBjB,OAvBAC,EAAAA,EAAAA,YAAU,KACOC,MACb,MAAMC,EAAgBA,MACpBC,EAAAA,EAAAA,MACAP,GAASQ,EAAAA,EAAAA,KAAW,IACpBC,aAAaC,QAAQ,eAAgB,IACrCD,aAAaC,QAAQ,gBAAiB,IACtCV,GAASW,EAAAA,EAAAA,OACTT,EAAS,SAAS,EAEdU,EAAQH,aAAaI,QAAQ,cACnCC,EAAAA,EACGC,OAAO,OAAO,iBAAmB,CAAEH,UACnCI,MAAK,KACJV,GAAe,IAEhBW,OAAOC,IACNC,QAAQC,IAAIF,GACZZ,GAAe,GACf,EAEND,EAAQ,GACP,CAACL,EAAUE,KACPmB,EAAAA,EAAAA,KAACC,EAAAA,EAAgB,GAAG,C","sources":["screens/LogoutPage/LogoutPage.tsx"],"sourcesContent":["// This file is part of MinIO Operator\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { useEffect } from \"react\";\nimport { useNavigate } from \"react-router-dom\";\nimport { useAppDispatch } from \"../../store\";\nimport { ErrorResponseHandler } from \"../../common/types\";\nimport { clearSession } from \"../../common/utils\";\nimport { userLogged } from \"../../systemSlice\";\nimport { resetSession } from \"../Console/consoleSlice\";\nimport api from \"../../common/api\";\nimport LoadingComponent from \"../../common/LoadingComponent\";\n\nconst LogoutPage = () => {\n const dispatch = useAppDispatch();\n const navigate = useNavigate();\n useEffect(() => {\n const logout = () => {\n const deleteSession = () => {\n clearSession();\n dispatch(userLogged(false));\n localStorage.setItem(\"userLoggedIn\", \"\");\n localStorage.setItem(\"redirect-path\", \"\");\n dispatch(resetSession());\n navigate(`/login`);\n };\n const state = localStorage.getItem(\"auth-state\");\n api\n .invoke(\"POST\", `/api/v1/logout`, { state })\n .then(() => {\n deleteSession();\n })\n .catch((err: ErrorResponseHandler) => {\n console.log(err);\n deleteSession();\n });\n };\n logout();\n }, [dispatch, navigate]);\n return ;\n};\n\nexport default LogoutPage;\n"],"names":["LogoutPage","dispatch","useAppDispatch","navigate","useNavigate","useEffect","logout","deleteSession","clearSession","userLogged","localStorage","setItem","resetSession","state","getItem","api","invoke","then","catch","err","console","log","_jsx","LoadingComponent"],"sourceRoot":""} \ No newline at end of file diff --git a/web-app/build/static/js/32.87cff5d2.chunk.js b/web-app/build/static/js/32.87cff5d2.chunk.js deleted file mode 100644 index ef8a0c76341..00000000000 --- a/web-app/build/static/js/32.87cff5d2.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[32],{3814:(e,n,l)=>{l.d(n,{I:()=>i,O:()=>t});const t={label:{color:"#07193E",fontSize:13,alignSelf:"center",whiteSpace:"nowrap","&:not(:first-of-type)":{marginLeft:10}},actionsTray:{display:"flex",justifyContent:"space-between",marginBottom:"1rem",alignItems:"center","& button":{flexGrow:0,marginLeft:8}}},i={modalButtonBar:{marginTop:15,display:"flex",alignItems:"center",justifyContent:"flex-end","& button":{marginRight:10},"& button:last-child":{marginRight:0}},modalFormScrollable:{maxHeight:"calc(100vh - 300px)",overflowY:"auto",paddingTop:10}}},666:(e,n,l)=>{l.d(n,{Z:()=>c});l(2791);var t=l(9945),i=l(9779),a=l(6444),o=l(6181),r=l.n(o),d=l(184);const s=a.ZP.div((e=>{let{theme:n}=e;return{position:"relative",margin:0,userSelect:"none",appearance:"none",maxWidth:"100%",fontFamily:"'Inter', sans-serif",fontSize:13,display:"inline-flex",alignItems:"center",justifyContent:"center",gap:6,border:"1px solid ".concat(r()(n,"borderColor","#E2E2E2")),borderRadius:3,padding:"5px 10px","& .certificateName":{display:"flex",alignItems:"center",gap:5,fontWeight:"bold",color:r()(n,"signalColors.main","#07193E")},"& .deleteTagButton":{backgroundColor:"transparent",border:0,display:"flex",alignItems:"center",justifyContent:"center",padding:0,cursor:"pointer",opacity:.6,"&:hover":{opacity:1},"& svg":{fill:r()(n,"tag.grey.background","#07193E"),width:10,height:10,minWidth:10,minHeight:10}},"& .certificateContainer":{margin:"5px 10px"},"& .certificateExpiry":{color:r()(n,"secondaryText","#5B5C5C"),display:"flex",alignItems:"center",flexWrap:"wrap",marginBottom:5,"& .label":{fontWeight:"bold"}},"& .certificateDomains":{color:r()(n,"secondaryText","#5B5C5C"),"& .label":{fontWeight:"bold"}},"& .certificatesList":{border:"1px solid ".concat(r()(n,"borderColor","#E2E2E2")),borderRadius:4,color:r()(n,"secondaryText","#5B5C5C"),textTransform:"lowercase",overflowY:"scroll",maxHeight:145,marginTop:3,marginBottom:5,padding:0,"& li":{listStyle:"none",padding:"5px 10px",margin:0,display:"flex",alignItems:"center","&:before":{content:"' '"}}},"& .certificatesListItem":{padding:"0px 16px",borderBottom:"1px solid ".concat(r()(n,"borderColor","#E2E2E2")),"& div":{minWidth:0},"& svg":{fontSize:12,marginRight:10,opacity:.5},"& span":{fontSize:12}},"& .certificateExpiring":{color:r()(n,"signalColors.warning","#FFBD62"),"& .label":{fontWeight:"bold"}},"& .certificateExpired":{color:r()(n,"signalColors.danger","#C51B3F"),"& .label":{fontWeight:"bold"}},"& .closeIcon":{transform:"scale(0.8)"}}})),c=e=>{let{certificateInfo:n,onDelete:l=(()=>{})}=e;const a=n.domains||[],o=i.ou.fromISO(n.expiry),r=i.ou.utc();let c=0,u="",v="";if(o){let e=o.diff(r);c=e.as("days"),u=e.minus(i.nL.fromObject({days:1})).shiftTo("days").toHuman({listStyle:"long",maximumFractionDigits:0}),c>=10&&c<30&&(v="certificateExpiring"),c<10&&(v="certificateExpired",c<2&&(u=e.minus(i.nL.fromObject({minutes:1})).shiftTo("hours","minutes").toHuman({listStyle:"long",maximumFractionDigits:0}),e.as("minutes")<=1&&(u="EXPIRED")))}return(0,d.jsxs)(s,{children:[(0,d.jsxs)(t.xuv,{children:[(0,d.jsxs)(t.xuv,{className:"certificateName",children:[(0,d.jsx)(t.Baz,{}),(0,d.jsx)("span",{children:n.name})]}),(0,d.jsxs)(t.xuv,{className:"certificateContainer",children:[(0,d.jsxs)(t.xuv,{className:"certificateExpiry",children:[(0,d.jsx)(t.U7Y,{color:"inherit",fontSize:"small"}),"\xa0",(0,d.jsx)("span",{className:"label",children:"Expiry:\xa0"}),(0,d.jsx)("span",{children:o.toFormat("yyyy/MM/dd")})]}),(0,d.jsxs)(t.xuv,{className:"certificateExpiry",children:[(0,d.jsx)(t.wZd,{}),"\xa0",(0,d.jsx)("span",{className:"label",children:"Expires in:\xa0"}),(0,d.jsx)("span",{className:v,children:u})]}),(0,d.jsx)("hr",{style:{marginBottom:12}}),(0,d.jsx)(t.xuv,{className:"certificateDomains",children:(0,d.jsx)("span",{className:"label",children:"".concat(a.length," Domain (s):")})}),(0,d.jsx)("ul",{className:"certificatesList",children:a.map(((e,n)=>(0,d.jsxs)("li",{className:"certificatesListItem",children:[(0,d.jsx)(t.os0,{}),(0,d.jsx)("span",{children:e})]},"".concat(e,"-").concat(n))))})]})]}),(0,d.jsx)(t.hU,{size:"small",onClick:l,className:"closeIcon",children:(0,d.jsx)(t.eEZ,{})})]})}},7032:(e,n,l)=>{l.r(n),l.d(n,{default:()=>h});var t=l(2791),i=l(9945),a=l(3814),o=l(9434),r=l(1320),d=l(4741),s=l(968),c=l(7995),u=l(1207),v=l(3508),p=l(666),m=l(184);const g=e=>{let{items:n=[],title:l=""}=e;return null!==n&&void 0!==n&&n.length?(0,m.jsxs)(t.Fragment,{children:[(0,m.jsx)("div",{style:{fontSize:"0.83em",fontWeight:"bold"},children:l}),(0,m.jsx)("div",{style:{display:"flex",gap:"2px",flexFlow:"column",marginLeft:"8px"},children:n.map((e=>(0,m.jsxs)("span",{style:{fontSize:"12px"},children:["- ",e]})))})]}):null},y=e=>{let{policies:n={}}=e;const l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).map((n=>{const l=e[n]||{};return{name:n||"",identities:l.identities||[],paths:l.paths||[],allow:l.allow||[],deny:l.deny||[]}}))}(n);return l.length?(0,m.jsxs)(i.rjZ,{xs:12,sx:{marginBottom:5},children:[(0,m.jsx)("h4",{children:"Policies"}),(0,m.jsx)(i.xuv,{withBorders:!0,sx:{maxHeight:"200px",overflow:"auto",padding:0},children:l.map((e=>(0,m.jsxs)(i.xuv,{withBorders:!0,sx:{display:"flex",flexFlow:"column",gap:"2px",borderLeft:0,borderRight:0,borderTop:0},children:[(0,m.jsxs)("div",{children:[(0,m.jsx)("b",{style:{fontSize:"0.83em",fontWeight:"bold"},children:"Policy Name:"})," ",e.name]}),(0,m.jsx)(g,{title:"Allow",items:null===e||void 0===e?void 0:e.allow}),(0,m.jsx)(g,{title:"Deny",items:null===e||void 0===e?void 0:e.deny}),(0,m.jsx)(g,{title:"Paths",items:null===e||void 0===e?void 0:e.paths}),(0,m.jsx)(g,{title:"Identities",items:null===e||void 0===e?void 0:e.identities})]})))})]}):null},h=()=>{var e,n,l,g,h,x,_,f,k,j,b,C,S,K,w,I,z,E,A,W,D,R,q,N,F,G,T,V,M,P,Z,B;const L=(0,r.TL)(),U=(0,o.v9)((e=>e.tenants.tenantInfo)),[H,O]=(0,t.useState)("options"),[Y,J]=(0,t.useState)(""),[Q,X]=(0,t.useState)(!1),[$,ee]=(0,t.useState)("vault"),[ne,le]=(0,t.useState)("1"),[te,ie]=(0,t.useState)(""),[ae,oe]=(0,t.useState)(!1),[re,de]=(0,t.useState)({fsGroup:"1000",fsGroupChangePolicy:"Always",runAsGroup:"1000",runAsNonRoot:!0,runAsUser:"1000"}),[se,ce]=(0,t.useState)([]),[ue,ve]=(0,t.useState)(null),[pe,me]=(0,t.useState)(null),[ge,ye]=(0,t.useState)(null),[he,xe]=(0,t.useState)(null),[_e,fe]=(0,t.useState)(null),[ke,je]=(0,t.useState)(!1),[be,Ce]=(0,t.useState)(!1),[Se,Ke]=(0,t.useState)(null),[we,Ie]=(0,t.useState)(null),[ze,Ee]=(0,t.useState)(null),[Ae,We]=(0,t.useState)([]),[De,Re]=(0,t.useState)(!1),[qe,Ne]=(0,t.useState)(null),[Fe,Ge]=(0,t.useState)(null),[Te,Ve]=(0,t.useState)(null),[Me,Pe]=(0,t.useState)(null),[Ze,Be]=(0,t.useState)(null),[Le,Ue]=(0,t.useState)({}),He=e=>{Ue((0,d.h)(Le,e))},[Oe,Ye]=(0,t.useState)(!1);(0,t.useEffect)((()=>{let e=[];if(Q){var n,l,t,i,a,o,r,d,c,u,v,p,m,g,y,h,x,_,f,k,j,b,C,S,K,w,I,z;if(e=[{fieldKey:"replicas",required:!0,value:ne,customValidation:parseInt(ne)<1,customValidationMessage:"Replicas needs to be 1 or greater"},{fieldKey:"kes_securityContext_runAsUser",required:!0,value:re.runAsUser,customValidation:""===re.runAsUser||parseInt(re.runAsUser)<0,customValidationMessage:"runAsUser must be present and be 0 or more"},{fieldKey:"kes_securityContext_runAsGroup",required:!0,value:re.runAsGroup,customValidation:""===re.runAsGroup||parseInt(re.runAsGroup)<0,customValidationMessage:"runAsGroup must be present and be 0 or more"},{fieldKey:"kes_securityContext_fsGroup",required:!0,value:re.fsGroup,customValidation:""===re.fsGroup||parseInt(re.fsGroup)<0,customValidationMessage:"fsGroup must be present and be 0 or more"}],ke&&(e=[...e,{fieldKey:"serverKey",required:!1,value:(null===Me||void 0===Me?void 0:Me.encoded_key)||""},{fieldKey:"serverCert",required:!1,value:(null===Me||void 0===Me?void 0:Me.encoded_cert)||""},{fieldKey:"clientKey",required:!1,value:(null===ze||void 0===ze?void 0:ze.encoded_key)||""},{fieldKey:"clientCert",required:!1,value:(null===ze||void 0===ze?void 0:ze.encoded_cert)||""}]),"vault"===$)e=[...e,{fieldKey:"vault_endpoint",required:!0,value:null===ue||void 0===ue?void 0:ue.endpoint},{fieldKey:"vault_id",required:!0,value:null===ue||void 0===ue||null===(n=ue.approle)||void 0===n?void 0:n.id},{fieldKey:"vault_secret",required:!0,value:null===ue||void 0===ue||null===(l=ue.approle)||void 0===l?void 0:l.secret},{fieldKey:"vault_ping",required:!1,value:null===ue||void 0===ue||null===(t=ue.status)||void 0===t?void 0:t.ping,customValidation:parseInt(null===ue||void 0===ue||null===(i=ue.status)||void 0===i?void 0:i.ping)<0,customValidationMessage:"Value needs to be 0 or greater"},{fieldKey:"vault_retry",required:!1,value:null===ue||void 0===ue||null===(a=ue.approle)||void 0===a?void 0:a.retry,customValidation:parseInt(null===ue||void 0===ue||null===(o=ue.approle)||void 0===o?void 0:o.retry)<0,customValidationMessage:"Value needs to be 0 or greater"}];if("aws"===$)e=[...e,{fieldKey:"aws_endpoint",required:!0,value:null===pe||void 0===pe||null===(r=pe.secretsmanager)||void 0===r?void 0:r.endpoint},{fieldKey:"aws_region",required:!0,value:null===pe||void 0===pe||null===(d=pe.secretsmanager)||void 0===d?void 0:d.region},{fieldKey:"aws_accessKey",required:!0,value:null===pe||void 0===pe||null===(c=pe.secretsmanager)||void 0===c||null===(u=c.credentials)||void 0===u?void 0:u.accesskey},{fieldKey:"aws_secretKey",required:!0,value:null===pe||void 0===pe||null===(v=pe.secretsmanager)||void 0===v||null===(p=v.credentials)||void 0===p?void 0:p.secretkey}];if("gemalto"===$)e=[...e,{fieldKey:"gemalto_endpoint",required:!0,value:null===ge||void 0===ge||null===(m=ge.keysecure)||void 0===m?void 0:m.endpoint},{fieldKey:"gemalto_token",required:!0,value:null===ge||void 0===ge||null===(g=ge.keysecure)||void 0===g||null===(y=g.credentials)||void 0===y?void 0:y.token},{fieldKey:"gemalto_domain",required:!0,value:null===ge||void 0===ge||null===(h=ge.keysecure)||void 0===h||null===(x=h.credentials)||void 0===x?void 0:x.domain},{fieldKey:"gemalto_retry",required:!1,value:null===ge||void 0===ge||null===(_=ge.keysecure)||void 0===_||null===(f=_.credentials)||void 0===f?void 0:f.retry,customValidation:parseInt(null===ge||void 0===ge||null===(k=ge.keysecure)||void 0===k||null===(j=k.credentials)||void 0===j?void 0:j.retry)<0,customValidationMessage:"Value needs to be 0 or greater"}];if("azure"===$)e=[...e,{fieldKey:"azure_endpoint",required:!0,value:null===he||void 0===he||null===(b=he.keyvault)||void 0===b?void 0:b.endpoint},{fieldKey:"azure_tenant_id",required:!0,value:null===he||void 0===he||null===(C=he.keyvault)||void 0===C||null===(S=C.credentials)||void 0===S?void 0:S.tenant_id},{fieldKey:"azure_client_id",required:!0,value:null===he||void 0===he||null===(K=he.keyvault)||void 0===K||null===(w=K.credentials)||void 0===w?void 0:w.client_id},{fieldKey:"azure_client_secret",required:!0,value:null===he||void 0===he||null===(I=he.keyvault)||void 0===I||null===(z=I.credentials)||void 0===z?void 0:z.client_secret}]}const E=(0,s.R)(e);Re(0===Object.keys(E).length),Ue(E)}),[ke,Q,$,null===Me||void 0===Me?void 0:Me.encoded_key,null===Me||void 0===Me?void 0:Me.encoded_cert,null===ze||void 0===ze?void 0:ze.encoded_key,null===ze||void 0===ze?void 0:ze.encoded_cert,null===Te||void 0===Te?void 0:Te.encoded_key,null===Te||void 0===Te?void 0:Te.encoded_cert,null===Ze||void 0===Ze?void 0:Ze.encoded_key,null===Ze||void 0===Ze?void 0:Ze.encoded_cert,re,ue,pe,ge,he,_e,ne]);const Je=()=>{!ae&&null!==U&&void 0!==U&&U.namespace&&null!==U&&void 0!==U&&U.name&&(oe(!0),u.Z.invoke("GET","/api/v1/namespaces/".concat(null===U||void 0===U?void 0:U.namespace,"/tenants/").concat(null===U||void 0===U?void 0:U.name,"/encryption")).then((e=>{J(e.raw),e.policies&&ce(e.policies),e.vault?(ee("vault"),ve(e.vault)):e.aws?(ee("aws"),me(e.aws)):e.gemalto?(ee("gemalto"),ye(e.gemalto)):e.gcp?(ee("gcp"),fe(e.gcp)):e.azure&&(ee("azure"),xe(e.azure)),X(!0),ie(e.image),le(e.replicas),e.securityContext&&de(e.securityContext),(e.server_tls||e.minio_mtls||e.kms_mtls)&&je(!0),e.server_tls&&Ke(e.server_tls),e.minio_mtls&&Ie(e.minio_mtls),e.kms_mtls&&(Ne(e.kms_mtls.crt),Ge(e.kms_mtls.ca)),oe(!1)})).catch((e=>{console.error(e),oe(!1)})))};(0,t.useEffect)((()=>{Je()}),[U]);const Qe=e=>{We([...Ae,e.name]),e.name===(null===Se||void 0===Se?void 0:Se.name)&&Ke(null),e.name===(null===we||void 0===we?void 0:we.name)&&Ie(null),e.name===(null===qe||void 0===qe?void 0:qe.name)&&Ne(null),e.name===(null===Fe||void 0===Fe?void 0:Fe.name)&&Ge(null)};return(0,m.jsxs)(t.Fragment,{children:[Oe&&(0,m.jsx)(v.Z,{isOpen:Oe,title:Q?"Enable encryption at rest for tenant?":"Disable encryption at rest for tenant?",confirmText:Q?"Enable":"Disable",cancelText:"Cancel",onClose:()=>Ye(!1),onConfirm:()=>{var e,n,l,t,i,a,o,r,d,s,v,p,m,g,y,h,x,_,f,k,j,b,C,S,K,w,I,z,E,A,W,D,R,q,N,F,G,T;if(Q){let V={};switch($){case"gemalto":V={gemalto:{keysecure:{endpoint:(null===ge||void 0===ge||null===(e=ge.keysecure)||void 0===e?void 0:e.endpoint)||"",credentials:{token:(null===ge||void 0===ge||null===(n=ge.keysecure)||void 0===n||null===(l=n.credentials)||void 0===l?void 0:l.token)||"",domain:(null===ge||void 0===ge||null===(t=ge.keysecure)||void 0===t||null===(i=t.credentials)||void 0===i?void 0:i.domain)||"",retry:parseInt(null===ge||void 0===ge||null===(a=ge.keysecure)||void 0===a||null===(o=a.credentials)||void 0===o?void 0:o.retry)}}}};break;case"aws":V={aws:{secretsmanager:{endpoint:(null===pe||void 0===pe||null===(r=pe.secretsmanager)||void 0===r?void 0:r.endpoint)||"",region:(null===pe||void 0===pe||null===(d=pe.secretsmanager)||void 0===d?void 0:d.region)||"",kmskey:(null===pe||void 0===pe||null===(s=pe.secretsmanager)||void 0===s?void 0:s.kmskey)||"",credentials:{accesskey:(null===pe||void 0===pe||null===(v=pe.secretsmanager)||void 0===v||null===(p=v.credentials)||void 0===p?void 0:p.accesskey)||"",secretkey:(null===pe||void 0===pe||null===(m=pe.secretsmanager)||void 0===m||null===(g=m.credentials)||void 0===g?void 0:g.secretkey)||"",token:(null===pe||void 0===pe||null===(y=pe.secretsmanager)||void 0===y||null===(h=y.credentials)||void 0===h?void 0:h.token)||""}}}};break;case"azure":V={azure:{keyvault:{endpoint:(null===he||void 0===he||null===(x=he.keyvault)||void 0===x?void 0:x.endpoint)||"",credentials:{tenant_id:(null===he||void 0===he||null===(_=he.keyvault)||void 0===_||null===(f=_.credentials)||void 0===f?void 0:f.tenant_id)||"",client_id:(null===he||void 0===he||null===(k=he.keyvault)||void 0===k||null===(j=k.credentials)||void 0===j?void 0:j.client_id)||"",client_secret:(null===he||void 0===he||null===(b=he.keyvault)||void 0===b||null===(C=b.credentials)||void 0===C?void 0:C.client_secret)||""}}}};break;case"gcp":V={gcp:{secretmanager:{project_id:(null===_e||void 0===_e||null===(S=_e.secretmanager)||void 0===S?void 0:S.project_id)||"",endpoint:(null===_e||void 0===_e||null===(K=_e.secretmanager)||void 0===K?void 0:K.endpoint)||"",credentials:{client_email:(null===_e||void 0===_e||null===(w=_e.secretmanager)||void 0===w||null===(I=w.credentials)||void 0===I?void 0:I.client_email)||"",client_id:(null===_e||void 0===_e||null===(z=_e.secretmanager)||void 0===z||null===(E=z.credentials)||void 0===E?void 0:E.client_id)||"",private_key_id:(null===_e||void 0===_e||null===(A=_e.secretmanager)||void 0===A||null===(W=A.credentials)||void 0===W?void 0:W.private_key_id)||"",private_key:(null===_e||void 0===_e||null===(D=_e.secretmanager)||void 0===D||null===(R=D.credentials)||void 0===R?void 0:R.private_key)||""}}}};break;case"vault":V={vault:{endpoint:(null===ue||void 0===ue?void 0:ue.endpoint)||"",engine:(null===ue||void 0===ue?void 0:ue.engine)||"",namespace:(null===ue||void 0===ue?void 0:ue.namespace)||"",prefix:(null===ue||void 0===ue?void 0:ue.prefix)||"",approle:{engine:(null===ue||void 0===ue||null===(q=ue.approle)||void 0===q?void 0:q.engine)||"",id:(null===ue||void 0===ue||null===(N=ue.approle)||void 0===N?void 0:N.id)||"",secret:(null===ue||void 0===ue||null===(F=ue.approle)||void 0===F?void 0:F.secret)||"",retry:parseInt(null===ue||void 0===ue||null===(G=ue.approle)||void 0===G?void 0:G.retry)},status:{ping:parseInt(null===ue||void 0===ue||null===(T=ue.status)||void 0===T?void 0:T.ping)}}}}let M={},P={},Z={};null!==ze&&void 0!==ze&&ze.encoded_key&&null!==ze&&void 0!==ze&&ze.encoded_cert&&(P={minio_mtls:{key:null===ze||void 0===ze?void 0:ze.encoded_key,crt:null===ze||void 0===ze?void 0:ze.encoded_cert}}),null!==Me&&void 0!==Me&&Me.encoded_key&&null!==Me&&void 0!==Me&&Me.encoded_cert&&(M={server_tls:{key:null===Me||void 0===Me?void 0:Me.encoded_key,crt:null===Me||void 0===Me?void 0:Me.encoded_cert}});let B=null,O=null;null!==Te&&void 0!==Te&&Te.encoded_key&&null!==Te&&void 0!==Te&&Te.encoded_cert&&(B={key:null===Te||void 0===Te?void 0:Te.encoded_key,crt:null===Te||void 0===Te?void 0:Te.encoded_cert}),null!==Ze&&void 0!==Ze&&Ze.encoded_cert&&(O={ca:null===Ze||void 0===Ze?void 0:Ze.encoded_cert}),(B||O)&&(Z={kms_mtls:{...B,...O}});const J={raw:"raw-edit"===H?Y:"",secretsToBeDeleted:Ae||[],replicas:ne,securityContext:re,image:te,...P,...M,...Z,...V};be||(Ce(!0),u.Z.invoke("PUT","/api/v1/namespaces/".concat(null===U||void 0===U?void 0:U.namespace,"/tenants/").concat(null===U||void 0===U?void 0:U.name,"/encryption"),J).then((()=>{Ye(!1),Ce(!1),Je()})).catch((e=>{Ce(!1),L((0,c.Ih)(e))})))}else be||(Ce(!0),u.Z.invoke("DELETE","/api/v1/namespaces/".concat(null===U||void 0===U?void 0:U.namespace,"/tenants/").concat(null===U||void 0===U?void 0:U.name,"/encryption"),{}).then((()=>{Ye(!1),Ce(!1),Je()})).catch((e=>{Ce(!1),L((0,c.Ih)(e))})))},confirmationContent:(0,m.jsxs)(t.Fragment,{children:[Q?"Data will be encrypted using and external KMS":"Current encrypted information will not be accessible",Q&&(0,m.jsx)(i.J6i,{title:"Warning",message:"The content of the KES config secret will be overwritten.",variant:"warning",sx:{margin:"15px 0"}})]})}),(0,m.jsx)(i.ltY,{containerPadding:!1,withBorders:!1,children:(0,m.jsxs)(i.rjZ,{container:!0,children:[(0,m.jsx)(i.rjZ,{item:!0,xs:!0,children:(0,m.jsx)(i.NZf,{separator:!0,actions:(0,m.jsx)(t.Fragment,{children:(0,m.jsx)(i.rsf,{label:"",indicatorLabels:["Enabled","Disabled"],checked:Q,value:"tenant_encryption",id:"tenant-encryption",name:"tenant-encryption",onChange:()=>{X(!Q)},description:""})}),children:"Encryption"})}),Q&&(0,m.jsxs)(t.Fragment,{children:[(0,m.jsx)(i.rjZ,{item:!0,xs:12,children:(0,m.jsx)(i.mQc,{options:[{tabConfig:{label:"Options",id:"options"},content:(0,m.jsxs)(t.Fragment,{children:[(0,m.jsx)(y,{policies:se}),(0,m.jsx)(i.Eep,{currentValue:$,id:"encryptionType",name:"encryptionType",label:"KMS",onChange:e=>{ee(e.target.value)},selectorOptions:[{label:"Vault",value:"vault"},{label:"AWS",value:"aws"},{label:"Gemalto",value:"gemalto"},{label:"GCP",value:"gcp"},{label:"Azure",value:"azure"}]}),"vault"===$&&(0,m.jsxs)(t.Fragment,{children:[(0,m.jsx)(i.Wzg,{id:"vault_endpoint",name:"vault_endpoint",onChange:e=>ve({...ue,endpoint:e.target.value}),label:"Endpoint",tooltip:"Endpoint is the Hashicorp Vault endpoint",value:(null===ue||void 0===ue?void 0:ue.endpoint)||"",error:Le.vault_ping||"",required:!0}),(0,m.jsx)(i.Wzg,{id:"vault_engine",name:"vault_engine",onChange:e=>ve({...ue,engine:e.target.value}),label:"Engine",tooltip:"Engine is the Hashicorp Vault K/V engine path. If empty, defaults to 'kv'",value:(null===ue||void 0===ue?void 0:ue.engine)||""}),(0,m.jsx)(i.Wzg,{id:"vault_namespace",name:"vault_namespace",onChange:e=>ve({...ue,namespace:e.target.value}),label:"Namespace",tooltip:"Namespace is an optional Hashicorp Vault namespace. An empty namespace means no particular namespace is used.",value:(null===ue||void 0===ue?void 0:ue.namespace)||""}),(0,m.jsx)(i.Wzg,{id:"vault_prefix",name:"vault_prefix",onChange:e=>ve({...ue,prefix:e.target.value}),label:"Prefix",tooltip:"Prefix is an optional prefix / directory within the K/V engine. If empty, keys will be stored at the K/V engine top level",value:(null===ue||void 0===ue?void 0:ue.prefix)||""}),(0,m.jsx)(i.NZf,{children:"App Role"}),(0,m.jsxs)("fieldset",{className:"inputItem",children:[(0,m.jsx)("legend",{children:"App Role"}),(0,m.jsx)(i.Wzg,{id:"vault_approle_engine",name:"vault_approle_engine",onChange:e=>ve({...ue,approle:{...null===ue||void 0===ue?void 0:ue.approle,engine:e.target.value}}),label:"Engine",tooltip:"AppRoleEngine is the AppRole authentication engine path. If empty, defaults to 'approle'",value:(null===ue||void 0===ue||null===(e=ue.approle)||void 0===e?void 0:e.engine)||""}),(0,m.jsx)(i.Wzg,{type:"password",id:"vault_id",name:"vault_id",onChange:e=>ve({...ue,approle:{...null===ue||void 0===ue?void 0:ue.approle,id:e.target.value}}),label:"AppRole ID",tooltip:"AppRoleSecret is the AppRole access secret for authenticating to Hashicorp Vault via the AppRole method",value:(null===ue||void 0===ue||null===(n=ue.approle)||void 0===n?void 0:n.id)||"",required:!0,error:Le.vault_id||""}),(0,m.jsx)(i.Wzg,{type:"password",id:"vault_secret",name:"vault_secret",onChange:e=>ve({...ue,approle:{...null===ue||void 0===ue?void 0:ue.approle,secret:e.target.value}}),label:"AppRole Secret",tooltip:"AppRoleSecret is the AppRole access secret for authenticating to Hashicorp Vault via the AppRole method",value:(null===ue||void 0===ue||null===(l=ue.approle)||void 0===l?void 0:l.secret)||"",required:!0,error:Le.vault_secret||""}),(0,m.jsx)(i.Wzg,{type:"number",min:"0",id:"vault_retry",name:"vault_retry",onChange:e=>ve({...ue,approle:{...null===ue||void 0===ue?void 0:ue.approle,retry:e.target.value}}),label:"Retry (Seconds)",error:Le.vault_retry||"",value:(null===ue||void 0===ue||null===(g=ue.approle)||void 0===g?void 0:g.retry)||""})]}),(0,m.jsxs)("fieldset",{className:"inputItem",children:[(0,m.jsx)("legend",{children:"Status"}),(0,m.jsx)(i.Wzg,{type:"number",min:"0",id:"vault_ping",name:"vault_ping",onChange:e=>ve({...ue,status:{...null===ue||void 0===ue?void 0:ue.status,ping:e.target.value}}),label:"Ping (Seconds)",tooltip:"controls how often to Vault health status is checked. If not set, defaults to 10s",error:Le.vault_ping||"",value:(null===ue||void 0===ue||null===(h=ue.status)||void 0===h?void 0:h.ping)||""})]})]}),"azure"===$&&(0,m.jsxs)(t.Fragment,{children:[(0,m.jsx)(i.Wzg,{id:"azure_endpoint",name:"azure_endpoint",onChange:e=>xe({...he,keyvault:{...null===he||void 0===he?void 0:he.keyvault,endpoint:e.target.value}}),label:"Endpoint",tooltip:"Endpoint is the Azure KeyVault endpoint",error:Le.azure_endpoint||"",value:(null===he||void 0===he||null===(x=he.keyvault)||void 0===x?void 0:x.endpoint)||""}),(0,m.jsxs)("fieldset",{className:"inputItem",children:[(0,m.jsx)("legend",{children:"Credentials"}),(0,m.jsx)(i.Wzg,{id:"azure_tenant_id",name:"azure_tenant_id",onChange:e=>{var n;return xe({...he,keyvault:{...null===he||void 0===he?void 0:he.keyvault,credentials:{...null===he||void 0===he||null===(n=he.keyvault)||void 0===n?void 0:n.credentials,tenant_id:e.target.value}}})},label:"Tenant ID",tooltip:"TenantID is the ID of the Azure KeyVault tenant",value:(null===he||void 0===he||null===(_=he.keyvault)||void 0===_||null===(f=_.credentials)||void 0===f?void 0:f.tenant_id)||"",error:Le.azure_tenant_id||""}),(0,m.jsx)(i.Wzg,{id:"azure_client_id",name:"azure_client_id",onChange:e=>{var n;return xe({...he,keyvault:{...null===he||void 0===he?void 0:he.keyvault,credentials:{...null===he||void 0===he||null===(n=he.keyvault)||void 0===n?void 0:n.credentials,client_id:e.target.value}}})},label:"Client ID",tooltip:"ClientID is the ID of the client accessing Azure KeyVault",value:(null===he||void 0===he||null===(k=he.keyvault)||void 0===k||null===(j=k.credentials)||void 0===j?void 0:j.client_id)||"",error:Le.azure_client_id||""}),(0,m.jsx)(i.Wzg,{id:"azure_client_secret",name:"azure_client_secret",onChange:e=>{var n;return xe({...he,keyvault:{...null===he||void 0===he?void 0:he.keyvault,credentials:{...null===he||void 0===he||null===(n=he.keyvault)||void 0===n?void 0:n.credentials,client_secret:e.target.value}}})},label:"Client Secret",tooltip:"ClientSecret is the client secret accessing the Azure KeyVault",value:(null===he||void 0===he||null===(b=he.keyvault)||void 0===b||null===(C=b.credentials)||void 0===C?void 0:C.client_secret)||"",error:Le.azure_client_secret||""})]})]}),"gcp"===$&&(0,m.jsxs)(t.Fragment,{children:[(0,m.jsx)(i.Wzg,{id:"gcp_project_id",name:"gcp_project_id",onChange:e=>fe({..._e,secretmanager:{...null===_e||void 0===_e?void 0:_e.secretmanager,project_id:e.target.value}}),label:"Project ID",tooltip:"ProjectID is the GCP project ID",value:(null===_e||void 0===_e?void 0:_e.secretmanager.project_id)||""}),(0,m.jsx)(i.Wzg,{id:"gcp_endpoint",name:"gcp_endpoint",onChange:e=>fe({..._e,secretmanager:{...null===_e||void 0===_e?void 0:_e.secretmanager,endpoint:e.target.value}}),label:"Endpoint",tooltip:"Endpoint is the GCP project ID. If empty defaults to: secretmanager.googleapis.com:443",value:(null===_e||void 0===_e?void 0:_e.secretmanager.endpoint)||""}),(0,m.jsxs)("fieldset",{className:"inputItem",children:[(0,m.jsx)("legend",{children:"Credentials"}),(0,m.jsx)(i.Wzg,{id:"gcp_client_email",name:"gcp_client_email",onChange:e=>fe({..._e,secretmanager:{...null===_e||void 0===_e?void 0:_e.secretmanager,credentials:{...null===_e||void 0===_e?void 0:_e.secretmanager.credentials,client_email:e.target.value}}}),label:"Client Email",tooltip:"Is the Client email of the GCP service account used to access the SecretManager",value:(null===_e||void 0===_e||null===(S=_e.secretmanager.credentials)||void 0===S?void 0:S.client_email)||""}),(0,m.jsx)(i.Wzg,{id:"gcp_client_id",name:"gcp_client_id",onChange:e=>fe({..._e,secretmanager:{...null===_e||void 0===_e?void 0:_e.secretmanager,credentials:{...null===_e||void 0===_e?void 0:_e.secretmanager.credentials,client_id:e.target.value}}}),label:"Client ID",tooltip:"Is the Client ID of the GCP service account used to access the SecretManager",value:(null===_e||void 0===_e||null===(K=_e.secretmanager.credentials)||void 0===K?void 0:K.client_id)||""}),(0,m.jsx)(i.Wzg,{id:"gcp_private_key_id",name:"gcp_private_key_id",onChange:e=>fe({..._e,secretmanager:{...null===_e||void 0===_e?void 0:_e.secretmanager,credentials:{...null===_e||void 0===_e?void 0:_e.secretmanager.credentials,private_key_id:e.target.value}}}),label:"Private Key ID",tooltip:"Is the private key ID of the GCP service account used to access the SecretManager",value:(null===_e||void 0===_e||null===(w=_e.secretmanager.credentials)||void 0===w?void 0:w.private_key_id)||""}),(0,m.jsx)(i.Wzg,{id:"gcp_private_key",name:"gcp_private_key",onChange:e=>fe({..._e,secretmanager:{...null===_e||void 0===_e?void 0:_e.secretmanager,credentials:{...null===_e||void 0===_e?void 0:_e.secretmanager.credentials,private_key:e.target.value}}}),label:"Private Key",tooltip:"Is the private key of the GCP service account used to access the SecretManager",value:(null===_e||void 0===_e||null===(I=_e.secretmanager.credentials)||void 0===I?void 0:I.private_key)||""})]})]}),"aws"===$&&(0,m.jsxs)(t.Fragment,{children:[(0,m.jsx)(i.Wzg,{id:"aws_endpoint",name:"aws_endpoint",onChange:e=>me({...pe,secretsmanager:{...null===pe||void 0===pe?void 0:pe.secretsmanager,endpoint:e.target.value}}),label:"Endpoint",tooltip:"Endpoint is the AWS SecretsManager endpoint. AWS SecretsManager endpoints have the following schema: secrestmanager[-fips]..amanzonaws.com",value:(null===pe||void 0===pe||null===(z=pe.secretsmanager)||void 0===z?void 0:z.endpoint)||"",required:!0,error:Le.aws_endpoint||""}),(0,m.jsx)(i.Wzg,{id:"aws_region",name:"aws_region",onChange:e=>me({...pe,secretsmanager:{...null===pe||void 0===pe?void 0:pe.secretsmanager,region:e.target.value}}),label:"Region",tooltip:"Region is the AWS region the SecretsManager is located",value:(null===pe||void 0===pe||null===(E=pe.secretsmanager)||void 0===E?void 0:E.region)||"",error:Le.aws_region||"",required:!0}),(0,m.jsx)(i.Wzg,{id:"aws_kmsKey",name:"aws_kmsKey",onChange:e=>me({...pe,secretsmanager:{...null===pe||void 0===pe?void 0:pe.secretsmanager,kmskey:e.target.value}}),label:"KMS Key",tooltip:"KMSKey is the AWS-KMS key ID (CMK-ID) used to en/decrypt secrets managed by the SecretsManager. If empty, the default AWS KMS key is used",value:(null===pe||void 0===pe||null===(A=pe.secretsmanager)||void 0===A?void 0:A.kmskey)||""}),(0,m.jsxs)("fieldset",{className:"inputItem",children:[(0,m.jsx)("legend",{children:"Credentials"}),(0,m.jsx)(i.Wzg,{id:"aws_accessKey",name:"aws_accessKey",onChange:e=>{var n;return me({...pe,secretsmanager:{...null===pe||void 0===pe?void 0:pe.secretsmanager,credentials:{...null===pe||void 0===pe||null===(n=pe.secretsmanager)||void 0===n?void 0:n.credentials,accesskey:e.target.value}}})},label:"Access Key",tooltip:"AccessKey is the access key for authenticating to AWS",value:(null===pe||void 0===pe||null===(W=pe.secretsmanager)||void 0===W||null===(D=W.credentials)||void 0===D?void 0:D.accesskey)||"",error:Le.aws_accessKey||"",required:!0}),(0,m.jsx)(i.Wzg,{id:"aws_secretKey",name:"aws_secretKey",onChange:e=>{var n;return me({...pe,secretsmanager:{...null===pe||void 0===pe?void 0:pe.secretsmanager,credentials:{...null===pe||void 0===pe||null===(n=pe.secretsmanager)||void 0===n?void 0:n.credentials,secretkey:e.target.value}}})},label:"Secret Key",tooltip:"SecretKey is the secret key for authenticating to AWS",value:(null===pe||void 0===pe||null===(R=pe.secretsmanager)||void 0===R||null===(q=R.credentials)||void 0===q?void 0:q.secretkey)||"",error:Le.aws_secretKey||"",required:!0}),(0,m.jsx)(i.Wzg,{id:"aws_token",name:"aws_token",onChange:e=>{var n;return me({...pe,secretsmanager:{...null===pe||void 0===pe?void 0:pe.secretsmanager,credentials:{...null===pe||void 0===pe||null===(n=pe.secretsmanager)||void 0===n?void 0:n.credentials,token:e.target.value}}})},label:"Token",tooltip:"SessionToken is an optional session token for authenticating to AWS when using STS",value:(null===pe||void 0===pe||null===(N=pe.secretsmanager)||void 0===N||null===(F=N.credentials)||void 0===F?void 0:F.token)||""})]})]}),"gemalto"===$&&(0,m.jsxs)(t.Fragment,{children:[(0,m.jsx)(i.Wzg,{id:"gemalto_endpoint",name:"gemalto_endpoint",onChange:e=>ye({...ge,keysecure:{...null===ge||void 0===ge?void 0:ge.keysecure,endpoint:e.target.value}}),label:"Endpoint",tooltip:"Endpoint is the endpoint to the KeySecure server",value:(null===ge||void 0===ge||null===(G=ge.keysecure)||void 0===G?void 0:G.endpoint)||"",error:Le.gemalto_endpoint||"",required:!0}),(0,m.jsxs)("fieldset",{className:"inputItem",children:[(0,m.jsx)("legend",{children:"Credentials"}),(0,m.jsx)(i.Wzg,{id:"gemalto_token",name:"gemalto_token",onChange:e=>{var n;return ye({...ge,keysecure:{...null===ge||void 0===ge?void 0:ge.keysecure,credentials:{...null===ge||void 0===ge||null===(n=ge.keysecure)||void 0===n?void 0:n.credentials,token:e.target.value}}})},label:"Token",tooltip:"Token is the refresh authentication token to access the KeySecure server",value:(null===ge||void 0===ge||null===(T=ge.keysecure)||void 0===T||null===(V=T.credentials)||void 0===V?void 0:V.token)||"",error:Le.gemalto_token||"",required:!0}),(0,m.jsx)(i.Wzg,{id:"gemalto_domain",name:"gemalto_domain",onChange:e=>{var n;return ye({...ge,keysecure:{...null===ge||void 0===ge?void 0:ge.keysecure,credentials:{...null===ge||void 0===ge||null===(n=ge.keysecure)||void 0===n?void 0:n.credentials,domain:e.target.value}}})},label:"Domain",tooltip:"Domain is the isolated namespace within the KeySecure server. If empty, defaults to the top-level / root domain",value:(null===ge||void 0===ge||null===(M=ge.keysecure)||void 0===M||null===(P=M.credentials)||void 0===P?void 0:P.domain)||"",error:Le.gemalto_domain||"",required:!0}),(0,m.jsx)(i.Wzg,{type:"number",min:"0",id:"gemalto_retry",name:"gemalto_retry",onChange:e=>{var n;return ye({...ge,keysecure:{...null===ge||void 0===ge?void 0:ge.keysecure,credentials:{...null===ge||void 0===ge||null===(n=ge.keysecure)||void 0===n?void 0:n.credentials,retry:e.target.value}}})},label:"Retry (seconds)",value:(null===ge||void 0===ge||null===(Z=ge.keysecure)||void 0===Z||null===(B=Z.credentials)||void 0===B?void 0:B.retry)||"",error:Le.gemalto_retry||""})]})]})]})},{tabConfig:{label:"Raw Edit",id:"raw-edit"},content:(0,m.jsx)(i.pq4,{value:Y,mode:"yaml",onChange:e=>{J(e)},editorHeight:"550px"})}],onTabClick:e=>O(e),currentTabOrPath:H,horizontal:!0})}),(0,m.jsxs)(i.rjZ,{item:!0,xs:12,children:[(0,m.jsx)(i.NZf,{children:"Additional Configuration for KES"}),(0,m.jsx)(i.Wzg,{value:"enableCustomCertsForKES",id:"enableCustomCertsForKES",name:"enableCustomCertsForKES",checked:ke,onChange:()=>je(!ke),label:"Custom Certificates"}),ke&&(0,m.jsxs)(t.Fragment,{children:[(0,m.jsxs)("fieldset",{className:"inputItem",children:[(0,m.jsx)("legend",{children:"Encryption server certificates"}),Se?(0,m.jsx)(p.Z,{certificateInfo:Se,onDelete:()=>Qe(Se)}):(0,m.jsxs)(t.Fragment,{children:[(0,m.jsx)(i.F5R,{onChange:(e,n,l)=>{l&&(Pe({encoded_key:l,id:(null===Me||void 0===Me?void 0:Me.id)||"",key:n||"",cert:(null===Me||void 0===Me?void 0:Me.cert)||"",encoded_cert:(null===Me||void 0===Me?void 0:Me.encoded_cert)||""}),He("serverKey"))},accept:".key,.pem",id:"serverKey",name:"serverKey",label:"Key",value:(null===Me||void 0===Me?void 0:Me.key)||"",returnEncodedData:!0}),(0,m.jsx)(i.F5R,{onChange:(e,n,l)=>{l&&(Pe({encoded_key:(null===Me||void 0===Me?void 0:Me.encoded_key)||"",id:(null===Me||void 0===Me?void 0:Me.id)||"",key:(null===Me||void 0===Me?void 0:Me.key)||"",cert:n||"",encoded_cert:l||""}),He("serverCert"))},accept:".cer,.crt,.cert,.pem",id:"serverCert",name:"serverCert",label:"Cert",value:(null===Me||void 0===Me?void 0:Me.cert)||"",returnEncodedData:!0})]})]}),(0,m.jsxs)("fieldset",{className:"inputItem",children:[(0,m.jsx)("legend",{children:"MinIO mTLS certificates (connection between MinIO and the Encryption server)"}),we?(0,m.jsx)(p.Z,{certificateInfo:we,onDelete:()=>Qe(we)}):(0,m.jsxs)(t.Fragment,{children:[(0,m.jsx)(i.F5R,{onChange:(e,n,l)=>{l&&(Ee({encoded_key:l,id:(null===ze||void 0===ze?void 0:ze.id)||"",key:n||"",cert:(null===ze||void 0===ze?void 0:ze.cert)||"",encoded_cert:(null===ze||void 0===ze?void 0:ze.encoded_cert)||""}),He("clientKey"))},accept:".key,.pem",id:"clientKey",name:"clientKey",label:"Key",value:(null===ze||void 0===ze?void 0:ze.key)||"",returnEncodedData:!0}),(0,m.jsx)(i.F5R,{onChange:(e,n,l)=>{l&&(Ee({encoded_key:(null===ze||void 0===ze?void 0:ze.encoded_key)||"",id:(null===ze||void 0===ze?void 0:ze.id)||"",key:(null===ze||void 0===ze?void 0:ze.key)||"",cert:n||"",encoded_cert:l||""}),He("clientCert"))},accept:".cer,.crt,.cert,.pem",id:"clientCert",name:"clientCert",label:"Cert",value:(null===ze||void 0===ze?void 0:ze.cert)||"",returnEncodedData:!0})]})]}),(0,m.jsxs)("fieldset",{className:"inputItem",children:[(0,m.jsx)("legend",{children:"KMS mTLS certificates (connection between the Encryption server and the KMS)"}),qe?(0,m.jsx)(p.Z,{certificateInfo:qe,onDelete:()=>Qe(qe)}):(0,m.jsxs)(t.Fragment,{children:[(0,m.jsx)(i.F5R,{onChange:(e,n,l)=>{l&&Ve({encoded_key:l||"",id:(null===Te||void 0===Te?void 0:Te.id)||"",key:n||"",cert:(null===Te||void 0===Te?void 0:Te.cert)||"",encoded_cert:(null===Te||void 0===Te?void 0:Te.encoded_cert)||""})},accept:".key,.pem",id:"kms_mtls_key",name:"kms_mtls_key",label:"Key",value:(null===Te||void 0===Te?void 0:Te.key)||"",returnEncodedData:!0}),(0,m.jsx)(i.F5R,{onChange:(e,n,l)=>{l&&Ve({encoded_key:(null===Te||void 0===Te?void 0:Te.encoded_key)||"",id:(null===Te||void 0===Te?void 0:Te.id)||"",key:(null===Te||void 0===Te?void 0:Te.key)||"",cert:n||"",encoded_cert:l||""})},accept:".cer,.crt,.cert,.pem",id:"kms_mtls_cert",name:"kms_mtls_cert",label:"Cert",value:(null===Te||void 0===Te?void 0:Te.cert)||"",returnEncodedData:!0})]}),Fe?(0,m.jsx)(p.Z,{certificateInfo:Fe,onDelete:()=>Qe(Fe)}):(0,m.jsx)(i.F5R,{onChange:(e,n,l)=>{l&&Be({encoded_key:(null===Ze||void 0===Ze?void 0:Ze.encoded_key)||"",id:(null===Ze||void 0===Ze?void 0:Ze.id)||"",key:(null===Ze||void 0===Ze?void 0:Ze.key)||"",cert:n||"",encoded_cert:l||""})},accept:".cer,.crt,.cert,.pem",id:"kms_mtls_ca",name:"kms_mtls_ca",label:"CA",value:(null===Ze||void 0===Ze?void 0:Ze.cert)||"",returnEncodedData:!0})]})]}),(0,m.jsx)(i.Wzg,{type:"text",id:"image",name:"image",onChange:e=>ie(e.target.value),label:"Image",tooltip:"KES container image",placeholder:"minio/kes:2024-03-01T18-06-46Z",value:te}),(0,m.jsx)(i.Wzg,{type:"number",min:"1",id:"replicas",name:"replicas",onChange:e=>le(e.target.value),label:"Replicas",tooltip:"Numer of KES pod replicas",value:ne,required:!0,error:Le.replicas||""}),(0,m.jsx)(i.NZf,{children:"SecurityContext for KES"}),(0,m.jsxs)(i.xuv,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:15,"@media (max-width: 900px)":{display:"flex",flexFlow:"column"}},children:[(0,m.jsx)(i.xuv,{className:"inputItem",children:(0,m.jsx)(i.Wzg,{type:"number",id:"kes_securityContext_runAsUser",name:"kes_securityContext_runAsUser",onChange:e=>{de({...re,runAsUser:e.target.value})},label:"Run As User",value:re.runAsUser,required:!0,error:Le.kes_securityContext_runAsUser||"",min:"0"})}),(0,m.jsx)(i.xuv,{className:"inputItem",children:(0,m.jsx)(i.Wzg,{type:"number",id:"kes_securityContext_runAsGroup",name:"kes_securityContext_runAsGroup",onChange:e=>{de({...re,runAsGroup:e.target.value})},label:"Run As Group",value:re.runAsGroup,required:!0,error:Le.kes_securityContext_runAsGroup||"",min:"0"})})]}),(0,m.jsx)(i.xuv,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:15,"@media (max-width: 900px)":{display:"flex",flexFlow:"column"}},children:(0,m.jsx)(i.xuv,{className:"inputItem",children:(0,m.jsx)(i.Wzg,{type:"number",id:"kes_securityContext_fsGroup",name:"kes_securityContext_fsGroup",onChange:e=>{de({...re,fsGroup:e.target.value})},label:"FsGroup",value:re.fsGroup,required:!0,error:Le.kes_securityContext_fsGroup||"",min:"0",sx:{marginBottom:12}})})}),(0,m.jsx)(i.Wzg,{value:"kesSecurityContextRunAsNonRoot",id:"kes_securityContext_runAsNonRoot",name:"kes_securityContext_runAsNonRoot",checked:re.runAsNonRoot,onChange:e=>{const n=e.target.checked;de({...re,runAsNonRoot:n})},label:"Do not run as Root"})]})]}),(0,m.jsx)(i.rjZ,{item:!0,xs:12,sx:a.I.modalButtonBar,children:(0,m.jsx)(i.zxk,{id:"save-encryption",type:"submit",variant:"callAction",disabled:!De,onClick:()=>Ye(!0),label:"Save"})})]})})]})}}}]); -//# sourceMappingURL=32.87cff5d2.chunk.js.map \ No newline at end of file diff --git a/web-app/build/static/js/32.87cff5d2.chunk.js.map b/web-app/build/static/js/32.87cff5d2.chunk.js.map deleted file mode 100644 index 1dc02de1838..00000000000 --- a/web-app/build/static/js/32.87cff5d2.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/32.87cff5d2.chunk.js","mappings":"yHAkBO,MAAMA,EAAc,CACzBC,MAAO,CACLC,MAAO,UACPC,SAAU,GACVC,UAAW,SACXC,WAAY,SACZ,wBAAyB,CACvBC,WAAY,KAGhBN,YAAa,CACXO,QAAS,OACTC,eAAgB,gBAChBC,aAAc,OACdC,WAAY,SACZ,WAAY,CACVC,SAAU,EACVL,WAAY,KAKLM,EAAuB,CAClCC,eAAgB,CACdC,UAAW,GACXP,QAAS,OACTG,WAAY,SACZF,eAAgB,WAEhB,WAAY,CACVO,YAAa,IAEf,sBAAuB,CACrBA,YAAa,IAGjBC,oBAAqB,CACnBC,UAAW,sBACXC,UAAW,OACXC,WAAY,I,uGC1BhB,MAAMC,EAAuBC,EAAAA,GAAOC,KAAIC,IAAA,IAAC,MAAEC,GAAOD,EAAA,MAAM,CACtDE,SAAU,WACVC,OAAQ,EACRC,WAAY,OACZC,WAAY,OACZC,SAAU,OACVC,WAAY,sBACZ3B,SAAU,GACVI,QAAS,cACTG,WAAY,SACZF,eAAgB,SAChBuB,IAAK,EACLC,OAAO,aAADC,OAAeC,IAAIV,EAAO,cAAe,YAC/CW,aAAc,EACdC,QAAS,WACT,qBAAsB,CACpB7B,QAAS,OACTG,WAAY,SACZqB,IAAK,EACLM,WAAY,OACZnC,MAAOgC,IAAIV,EAAO,oBAAqB,YAEzC,qBAAsB,CACpBc,gBAAiB,cACjBN,OAAQ,EACRzB,QAAS,OACTG,WAAY,SACZF,eAAgB,SAChB4B,QAAS,EACTG,OAAQ,UACRC,QAAS,GACT,UAAW,CACTA,QAAS,GAEX,QAAS,CACPC,KAAMP,IAAIV,EAAM,sBAAwB,WACxCkB,MAAO,GACPC,OAAQ,GACRC,SAAU,GACVC,UAAW,KAGf,0BAA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,MAAOjF,GAAgBI,WACvB4E,UAAQ,EACRgD,MACEtF,GAAiD,gCAAK,GAExDoL,IAAI,YAIVjU,EAAAA,EAAAA,KAACF,EAAAA,IAAG,CACFuC,GAAI,CACF9G,QAAS,OACTG,WAAY,SACZF,eAAgB,aAChBuB,IAAK,GACL,4BAA6B,CAC3BxB,QAAS,OACT6F,SAAU,WAEZvB,UAEFG,EAAAA,EAAAA,KAACF,EAAAA,IAAG,CAACC,UAAS,YAAcF,UAC1BG,EAAAA,EAAAA,KAAC8T,EAAAA,IAAQ,CACPE,KAAK,SACLpI,GAAG,8BACH1L,KAAK,8BACLiT,SAAWQ,IACTvN,GAAmB,IACdD,GACHE,QAASsN,EAAEC,OAAOxI,OAClB,EAEJnQ,MAAM,UACNmQ,MAAOjF,GAAgBE,QACvB8E,UAAQ,EACRgD,MACEtF,GAA8C,6BAAK,GAErDoL,IAAI,IACJ5R,GAAI,CACF5G,aAAc,WAKtBuE,EAAAA,EAAAA,KAAC8T,EAAAA,IAAQ,CACP1I,MAAM,iCACNQ,GAAG,mCACH1L,KAAK,mCACLgT,QAAS/M,GAAgBK,aACzB2M,SAAWQ,IACT,MACMT,EADUS,EAAEC,OACMV,QACxB9M,GAAmB,IACdD,GACHK,aAAc0M,GACd,EAEJjY,MAAO,8BAKf+E,EAAAA,EAAAA,KAACmC,EAAAA,IAAI,CAACyQ,MAAI,EAACxQ,GAAI,GAAIC,GAAIzG,EAAAA,EAAgBC,eAAegE,UACpDG,EAAAA,EAAAA,KAAC0V,EAAAA,IAAM,CACL9J,GAAI,kBACJoI,KAAK,SACLxB,QAAQ,aACRmD,UAAW1N,GACXnH,QAASA,IAAMqI,IAAe,GAC9BlO,MAAO,kBAKA,C","sources":["screens/Console/Common/FormComponents/common/styleLibrary.ts","screens/Console/Common/TLSCertificate/TLSCertificate.tsx","screens/Console/Tenants/TenantDetails/KMSPolicyInfo.tsx","screens/Console/Tenants/TenantDetails/TenantEncryption.tsx"],"sourcesContent":["// This file is part of MinIO Operator\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\n// This object contains variables that will be used across form components.\n\nexport const actionsTray = {\n label: {\n color: \"#07193E\",\n fontSize: 13,\n alignSelf: \"center\" as const,\n whiteSpace: \"nowrap\" as const,\n \"&:not(:first-of-type)\": {\n marginLeft: 10,\n },\n },\n actionsTray: {\n display: \"flex\" as const,\n justifyContent: \"space-between\" as const,\n marginBottom: \"1rem\",\n alignItems: \"center\",\n \"& button\": {\n flexGrow: 0,\n marginLeft: 8,\n },\n },\n};\n\nexport const modalStyleUtils: any = {\n modalButtonBar: {\n marginTop: 15,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"flex-end\",\n\n \"& button\": {\n marginRight: 10,\n },\n \"& button:last-child\": {\n marginRight: 0,\n },\n },\n modalFormScrollable: {\n maxHeight: \"calc(100vh - 300px)\",\n overflowY: \"auto\",\n paddingTop: 10,\n },\n};\n","// This file is part of MinIO Operator\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport {\n AlertCloseIcon,\n Box,\n CertificateIcon,\n IconButton,\n TimeIcon,\n LanguageIcon,\n EventBusyIcon,\n} from \"mds\";\nimport { DateTime, Duration } from \"luxon\";\nimport styled from \"styled-components\";\nimport get from \"lodash/get\";\nimport { ICertificateInfo } from \"../../Tenants/types\";\n\nconst CertificateContainer = styled.div(({ theme }) => ({\n position: \"relative\",\n margin: 0,\n userSelect: \"none\",\n appearance: \"none\",\n maxWidth: \"100%\",\n fontFamily: \"'Inter', sans-serif\",\n fontSize: 13,\n display: \"inline-flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n gap: 6,\n border: `1px solid ${get(theme, \"borderColor\", \"#E2E2E2\")}`,\n borderRadius: 3,\n padding: \"5px 10px\",\n \"& .certificateName\": {\n display: \"flex\",\n alignItems: \"center\",\n gap: 5,\n fontWeight: \"bold\",\n color: get(theme, \"signalColors.main\", \"#07193E\"),\n },\n \"& .deleteTagButton\": {\n backgroundColor: \"transparent\",\n border: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n padding: 0,\n cursor: \"pointer\",\n opacity: 0.6,\n \"&:hover\": {\n opacity: 1,\n },\n \"& svg\": {\n fill: get(theme, `tag.grey.background`, \"#07193E\"),\n width: 10,\n height: 10,\n minWidth: 10,\n minHeight: 10,\n },\n },\n \"& .certificateContainer\": {\n margin: \"5px 10px\",\n },\n \"& .certificateExpiry\": {\n color: get(theme, \"secondaryText\", \"#5B5C5C\"),\n display: \"flex\",\n alignItems: \"center\",\n flexWrap: \"wrap\",\n marginBottom: 5,\n \"& .label\": {\n fontWeight: \"bold\",\n },\n },\n \"& .certificateDomains\": {\n color: get(theme, \"secondaryText\", \"#5B5C5C\"),\n \"& .label\": {\n fontWeight: \"bold\",\n },\n },\n \"& .certificatesList\": {\n border: `1px solid ${get(theme, \"borderColor\", \"#E2E2E2\")}`,\n borderRadius: 4,\n color: get(theme, \"secondaryText\", \"#5B5C5C\"),\n textTransform: \"lowercase\",\n overflowY: \"scroll\",\n maxHeight: 145,\n marginTop: 3,\n marginBottom: 5,\n padding: 0,\n \"& li\": {\n listStyle: \"none\",\n padding: \"5px 10px\",\n margin: 0,\n display: \"flex\",\n alignItems: \"center\",\n \"&:before\": {\n content: \"' '\",\n },\n },\n },\n \"& .certificatesListItem\": {\n padding: \"0px 16px\",\n borderBottom: `1px solid ${get(theme, \"borderColor\", \"#E2E2E2\")}`,\n \"& div\": {\n minWidth: 0,\n },\n \"& svg\": {\n fontSize: 12,\n marginRight: 10,\n opacity: 0.5,\n },\n \"& span\": {\n fontSize: 12,\n },\n },\n \"& .certificateExpiring\": {\n color: get(theme, \"signalColors.warning\", \"#FFBD62\"),\n \"& .label\": {\n fontWeight: \"bold\",\n },\n },\n \"& .certificateExpired\": {\n color: get(theme, \"signalColors.danger\", \"#C51B3F\"),\n \"& .label\": {\n fontWeight: \"bold\",\n },\n },\n \"& .closeIcon\": {\n transform: \"scale(0.8)\",\n },\n}));\n\ninterface ITLSCertificate {\n certificateInfo: ICertificateInfo;\n onDelete: any;\n}\n\nconst TLSCertificate = ({\n certificateInfo,\n onDelete = () => {},\n}: ITLSCertificate) => {\n const certificates = certificateInfo.domains || [];\n\n const expiry = DateTime.fromISO(certificateInfo.expiry);\n const now = DateTime.utc();\n // Expose error on Tenant if certificate is near expiration or expired\n let daysToExpiry: number = 0;\n let daysToExpiryHuman: string = \"\";\n let certificateExpiration: string = \"\";\n if (expiry) {\n let durationToExpiry = expiry.diff(now);\n daysToExpiry = durationToExpiry.as(\"days\");\n daysToExpiryHuman = durationToExpiry\n .minus(Duration.fromObject({ days: 1 }))\n .shiftTo(\"days\")\n .toHuman({ listStyle: \"long\", maximumFractionDigits: 0 });\n if (daysToExpiry >= 10 && daysToExpiry < 30) {\n certificateExpiration = \"certificateExpiring\";\n }\n if (daysToExpiry < 10) {\n certificateExpiration = \"certificateExpired\";\n if (daysToExpiry < 2) {\n daysToExpiryHuman = durationToExpiry\n .minus(Duration.fromObject({ minutes: 1 }))\n .shiftTo(\"hours\", \"minutes\")\n .toHuman({ listStyle: \"long\", maximumFractionDigits: 0 });\n if (durationToExpiry.as(\"minutes\") <= 1) {\n daysToExpiryHuman = \"EXPIRED\";\n }\n }\n }\n }\n\n return (\n \n \n \n \n {certificateInfo.name}\n \n \n \n \n  \n Expiry: \n {expiry.toFormat(\"yyyy/MM/dd\")}\n \n \n \n  \n Expires in: \n {daysToExpiryHuman}\n \n
\n \n {`${certificates.length} Domain (s):`}\n \n
    \n {certificates.map((dom, index) => (\n
  • \n \n {dom}\n
  • \n ))}\n
\n
\n
\n \n \n \n
\n );\n};\n\nexport default TLSCertificate;\n","// This file is part of MinIO Operator\n// Copyright (c) 2023 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment } from \"react\";\nimport { Box, Grid } from \"mds\";\n\nconst getPolicyData = (policies: Record = {}) => {\n const policyNames = Object.keys(policies);\n return policyNames.map((polName: string) => {\n const policyConfig = policies[polName] || {};\n return {\n name: polName || \"\",\n identities: policyConfig.identities || [],\n // v1 specific\n paths: policyConfig.paths || [],\n // v2 specific\n allow: policyConfig.allow || [],\n deny: policyConfig.deny || [],\n };\n });\n};\n\nconst PolicyItem = ({\n items = [],\n title = \"\",\n}: {\n items: string[];\n title: string;\n}) => {\n return items?.length ? (\n \n \n {title}\n \n \n {items.map((iTxt: string) => {\n return - {iTxt};\n })}\n \n \n ) : null;\n};\n\nconst KMSPolicyInfo = ({\n policies = {},\n}: {\n policies: Record;\n}) => {\n const fmtPolicies = getPolicyData(policies);\n return fmtPolicies.length ? (\n \n

Policies

\n \n {fmtPolicies.map((pConf: Record) => {\n return (\n \n
\n \n Policy Name:\n {\" \"}\n {pConf.name}\n
\n \n \n \n \n \n );\n })}\n \n
\n ) : null;\n};\n\nexport default KMSPolicyInfo;\n","// This file is part of MinIO Operator\n// Copyright (c) 2023 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useEffect, useState } from \"react\";\nimport {\n Box,\n Button,\n CodeEditor,\n FileSelector,\n FormLayout,\n Grid,\n InformativeMessage,\n InputBox,\n RadioGroup,\n SectionTitle,\n Switch,\n Tabs,\n} from \"mds\";\nimport { modalStyleUtils } from \"../../Common/FormComponents/common/styleLibrary\";\nimport { useSelector } from \"react-redux\";\nimport { ICertificateInfo, ITenantEncryptionResponse } from \"../types\";\nimport { AppState, useAppDispatch } from \"../../../../store\";\nimport { ErrorResponseHandler } from \"../../../../common/types\";\nimport { KeyPair } from \"../ListTenants/utils\";\nimport { clearValidationError } from \"../utils\";\nimport {\n commonFormValidation,\n IValidation,\n} from \"../../../../utils/validationFunctions\";\nimport { setErrorSnackMessage } from \"../../../../systemSlice\";\nimport { SecurityContext } from \"../../../../api/operatorApi\";\nimport api from \"../../../../common/api\";\nimport ConfirmDialog from \"../../Common/ModalWrapper/ConfirmDialog\";\nimport TLSCertificate from \"../../Common/TLSCertificate/TLSCertificate\";\nimport KMSPolicyInfo from \"./KMSPolicyInfo\";\n\nconst TenantEncryption = () => {\n const dispatch = useAppDispatch();\n\n const tenant = useSelector((state: AppState) => state.tenants.tenantInfo);\n const [editRawConfiguration, setEditRawConfiguration] =\n useState(\"options\");\n const [encryptionRawConfiguration, setEncryptionRawConfiguration] =\n useState(\"\");\n const [encryptionEnabled, setEncryptionEnabled] = useState(false);\n const [encryptionType, setEncryptionType] = useState(\"vault\");\n const [replicas, setReplicas] = useState(\"1\");\n const [image, setImage] = useState(\"\");\n const [refreshEncryptionInfo, setRefreshEncryptionInfo] =\n useState(false);\n const [securityContext, setSecurityContext] = useState({\n fsGroup: \"1000\",\n fsGroupChangePolicy: \"Always\",\n runAsGroup: \"1000\",\n runAsNonRoot: true,\n runAsUser: \"1000\",\n });\n const [policies, setPolicies] = useState([]);\n const [vaultConfiguration, setVaultConfiguration] = useState(null);\n const [awsConfiguration, setAWSConfiguration] = useState(null);\n const [gemaltoConfiguration, setGemaltoConfiguration] = useState(null);\n const [azureConfiguration, setAzureConfiguration] = useState(null);\n const [gcpConfiguration, setGCPConfiguration] = useState(null);\n const [enabledCustomCertificates, setEnabledCustomCertificates] =\n useState(false);\n const [updatingEncryption, setUpdatingEncryption] = useState(false);\n const [kesServerTLSCertificateSecret, setKesServerTLSCertificateSecret] =\n useState(null);\n const [minioMTLSCertificateSecret, setMinioMTLSCertificateSecret] =\n useState(null);\n const [minioMTLSCertificate, setMinioMTLSCertificate] =\n useState(null);\n const [certificatesToBeRemoved, setCertificatesToBeRemoved] = useState<\n string[]\n >([]);\n const [isFormValid, setIsFormValid] = useState(false);\n const [kmsMTLSCertificateSecret, setKmsMTLSCertificateSecret] =\n useState(null);\n const [kmsCACertificateSecret, setKMSCACertificateSecret] =\n useState(null);\n const [kmsMTLSCertificate, setKmsMTLSCertificate] = useState(\n null,\n );\n const [kesServerCertificate, setKESServerCertificate] =\n useState(null);\n const [kmsCACertificate, setKmsCACertificate] = useState(\n null,\n );\n const [validationErrors, setValidationErrors] = useState({});\n const cleanValidation = (fieldName: string) => {\n setValidationErrors(clearValidationError(validationErrors, fieldName));\n };\n const [confirmOpen, setConfirmOpen] = useState(false);\n\n // Validation\n useEffect(() => {\n let encryptionValidation: IValidation[] = [];\n\n if (encryptionEnabled) {\n encryptionValidation = [\n {\n fieldKey: \"replicas\",\n required: true,\n value: replicas,\n customValidation: parseInt(replicas) < 1,\n customValidationMessage: \"Replicas needs to be 1 or greater\",\n },\n {\n fieldKey: \"kes_securityContext_runAsUser\",\n required: true,\n value: securityContext.runAsUser,\n customValidation:\n securityContext.runAsUser === \"\" ||\n parseInt(securityContext.runAsUser) < 0,\n customValidationMessage: `runAsUser must be present and be 0 or more`,\n },\n {\n fieldKey: \"kes_securityContext_runAsGroup\",\n required: true,\n value: securityContext.runAsGroup,\n customValidation:\n securityContext.runAsGroup === \"\" ||\n parseInt(securityContext.runAsGroup) < 0,\n customValidationMessage: `runAsGroup must be present and be 0 or more`,\n },\n {\n fieldKey: \"kes_securityContext_fsGroup\",\n required: true,\n value: securityContext.fsGroup!,\n customValidation:\n securityContext.fsGroup === \"\" ||\n parseInt(securityContext.fsGroup!) < 0,\n customValidationMessage: `fsGroup must be present and be 0 or more`,\n },\n ];\n\n if (enabledCustomCertificates) {\n encryptionValidation = [\n ...encryptionValidation,\n {\n fieldKey: \"serverKey\",\n required: false,\n value: kesServerCertificate?.encoded_key || \"\",\n },\n {\n fieldKey: \"serverCert\",\n required: false,\n value: kesServerCertificate?.encoded_cert || \"\",\n },\n {\n fieldKey: \"clientKey\",\n required: false,\n value: minioMTLSCertificate?.encoded_key || \"\",\n },\n {\n fieldKey: \"clientCert\",\n required: false,\n value: minioMTLSCertificate?.encoded_cert || \"\",\n },\n ];\n }\n\n if (encryptionType === \"vault\") {\n encryptionValidation = [\n ...encryptionValidation,\n {\n fieldKey: \"vault_endpoint\",\n required: true,\n value: vaultConfiguration?.endpoint,\n },\n {\n fieldKey: \"vault_id\",\n required: true,\n value: vaultConfiguration?.approle?.id,\n },\n {\n fieldKey: \"vault_secret\",\n required: true,\n value: vaultConfiguration?.approle?.secret,\n },\n {\n fieldKey: \"vault_ping\",\n required: false,\n value: vaultConfiguration?.status?.ping,\n customValidation: parseInt(vaultConfiguration?.status?.ping) < 0,\n customValidationMessage: \"Value needs to be 0 or greater\",\n },\n {\n fieldKey: \"vault_retry\",\n required: false,\n value: vaultConfiguration?.approle?.retry,\n customValidation: parseInt(vaultConfiguration?.approle?.retry) < 0,\n customValidationMessage: \"Value needs to be 0 or greater\",\n },\n ];\n }\n\n if (encryptionType === \"aws\") {\n encryptionValidation = [\n ...encryptionValidation,\n {\n fieldKey: \"aws_endpoint\",\n required: true,\n value: awsConfiguration?.secretsmanager?.endpoint,\n },\n {\n fieldKey: \"aws_region\",\n required: true,\n value: awsConfiguration?.secretsmanager?.region,\n },\n {\n fieldKey: \"aws_accessKey\",\n required: true,\n value: awsConfiguration?.secretsmanager?.credentials?.accesskey,\n },\n {\n fieldKey: \"aws_secretKey\",\n required: true,\n value: awsConfiguration?.secretsmanager?.credentials?.secretkey,\n },\n ];\n }\n\n if (encryptionType === \"gemalto\") {\n encryptionValidation = [\n ...encryptionValidation,\n {\n fieldKey: \"gemalto_endpoint\",\n required: true,\n value: gemaltoConfiguration?.keysecure?.endpoint,\n },\n {\n fieldKey: \"gemalto_token\",\n required: true,\n value: gemaltoConfiguration?.keysecure?.credentials?.token,\n },\n {\n fieldKey: \"gemalto_domain\",\n required: true,\n value: gemaltoConfiguration?.keysecure?.credentials?.domain,\n },\n {\n fieldKey: \"gemalto_retry\",\n required: false,\n value: gemaltoConfiguration?.keysecure?.credentials?.retry,\n customValidation:\n parseInt(gemaltoConfiguration?.keysecure?.credentials?.retry) < 0,\n customValidationMessage: \"Value needs to be 0 or greater\",\n },\n ];\n }\n\n if (encryptionType === \"azure\") {\n encryptionValidation = [\n ...encryptionValidation,\n {\n fieldKey: \"azure_endpoint\",\n required: true,\n value: azureConfiguration?.keyvault?.endpoint,\n },\n {\n fieldKey: \"azure_tenant_id\",\n required: true,\n value: azureConfiguration?.keyvault?.credentials?.tenant_id,\n },\n {\n fieldKey: \"azure_client_id\",\n required: true,\n value: azureConfiguration?.keyvault?.credentials?.client_id,\n },\n {\n fieldKey: \"azure_client_secret\",\n required: true,\n value: azureConfiguration?.keyvault?.credentials?.client_secret,\n },\n ];\n }\n }\n\n const commonVal = commonFormValidation(encryptionValidation);\n\n setIsFormValid(Object.keys(commonVal).length === 0);\n\n setValidationErrors(commonVal);\n }, [\n enabledCustomCertificates,\n encryptionEnabled,\n encryptionType,\n kesServerCertificate?.encoded_key,\n kesServerCertificate?.encoded_cert,\n minioMTLSCertificate?.encoded_key,\n minioMTLSCertificate?.encoded_cert,\n kmsMTLSCertificate?.encoded_key,\n kmsMTLSCertificate?.encoded_cert,\n kmsCACertificate?.encoded_key,\n kmsCACertificate?.encoded_cert,\n securityContext,\n vaultConfiguration,\n awsConfiguration,\n gemaltoConfiguration,\n azureConfiguration,\n gcpConfiguration,\n replicas,\n ]);\n\n const fetchEncryptionInfo = () => {\n if (!refreshEncryptionInfo && tenant?.namespace && tenant?.name) {\n setRefreshEncryptionInfo(true);\n api\n .invoke(\n \"GET\",\n `/api/v1/namespaces/${tenant?.namespace}/tenants/${tenant?.name}/encryption`,\n )\n .then((resp: ITenantEncryptionResponse) => {\n setEncryptionRawConfiguration(resp.raw);\n if (resp.policies) {\n setPolicies(resp.policies);\n }\n if (resp.vault) {\n setEncryptionType(\"vault\");\n setVaultConfiguration(resp.vault);\n } else if (resp.aws) {\n setEncryptionType(\"aws\");\n setAWSConfiguration(resp.aws);\n } else if (resp.gemalto) {\n setEncryptionType(\"gemalto\");\n setGemaltoConfiguration(resp.gemalto);\n } else if (resp.gcp) {\n setEncryptionType(\"gcp\");\n setGCPConfiguration(resp.gcp);\n } else if (resp.azure) {\n setEncryptionType(\"azure\");\n setAzureConfiguration(resp.azure);\n }\n\n setEncryptionEnabled(true);\n setImage(resp.image);\n setReplicas(resp.replicas);\n if (resp.securityContext) {\n setSecurityContext(resp.securityContext);\n }\n if (resp.server_tls || resp.minio_mtls || resp.kms_mtls) {\n setEnabledCustomCertificates(true);\n }\n if (resp.server_tls) {\n setKesServerTLSCertificateSecret(resp.server_tls);\n }\n if (resp.minio_mtls) {\n setMinioMTLSCertificateSecret(resp.minio_mtls);\n }\n if (resp.kms_mtls) {\n setKmsMTLSCertificateSecret(resp.kms_mtls.crt);\n setKMSCACertificateSecret(resp.kms_mtls.ca);\n }\n setRefreshEncryptionInfo(false);\n })\n .catch((err: ErrorResponseHandler) => {\n console.error(err);\n setRefreshEncryptionInfo(false);\n });\n }\n };\n\n useEffect(() => {\n fetchEncryptionInfo();\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [tenant]);\n\n const removeCertificate = (certificateInfo: ICertificateInfo) => {\n setCertificatesToBeRemoved([\n ...certificatesToBeRemoved,\n certificateInfo.name,\n ]);\n if (certificateInfo.name === kesServerTLSCertificateSecret?.name) {\n setKesServerTLSCertificateSecret(null);\n }\n if (certificateInfo.name === minioMTLSCertificateSecret?.name) {\n setMinioMTLSCertificateSecret(null);\n }\n if (certificateInfo.name === kmsMTLSCertificateSecret?.name) {\n setKmsMTLSCertificateSecret(null);\n }\n if (certificateInfo.name === kmsCACertificateSecret?.name) {\n setKMSCACertificateSecret(null);\n }\n };\n\n const updateEncryptionConfiguration = () => {\n if (encryptionEnabled) {\n let insertEncrypt = {};\n switch (encryptionType) {\n case \"gemalto\":\n insertEncrypt = {\n gemalto: {\n keysecure: {\n endpoint: gemaltoConfiguration?.keysecure?.endpoint || \"\",\n credentials: {\n token:\n gemaltoConfiguration?.keysecure?.credentials?.token || \"\",\n domain:\n gemaltoConfiguration?.keysecure?.credentials?.domain || \"\",\n retry: parseInt(\n gemaltoConfiguration?.keysecure?.credentials?.retry,\n ),\n },\n },\n },\n };\n break;\n case \"aws\":\n insertEncrypt = {\n aws: {\n secretsmanager: {\n endpoint: awsConfiguration?.secretsmanager?.endpoint || \"\",\n region: awsConfiguration?.secretsmanager?.region || \"\",\n kmskey: awsConfiguration?.secretsmanager?.kmskey || \"\",\n credentials: {\n accesskey:\n awsConfiguration?.secretsmanager?.credentials?.accesskey ||\n \"\",\n secretkey:\n awsConfiguration?.secretsmanager?.credentials?.secretkey ||\n \"\",\n token:\n awsConfiguration?.secretsmanager?.credentials?.token || \"\",\n },\n },\n },\n };\n break;\n case \"azure\":\n insertEncrypt = {\n azure: {\n keyvault: {\n endpoint: azureConfiguration?.keyvault?.endpoint || \"\",\n credentials: {\n tenant_id:\n azureConfiguration?.keyvault?.credentials?.tenant_id || \"\",\n client_id:\n azureConfiguration?.keyvault?.credentials?.client_id || \"\",\n client_secret:\n azureConfiguration?.keyvault?.credentials?.client_secret ||\n \"\",\n },\n },\n },\n };\n break;\n case \"gcp\":\n insertEncrypt = {\n gcp: {\n secretmanager: {\n project_id: gcpConfiguration?.secretmanager?.project_id || \"\",\n endpoint: gcpConfiguration?.secretmanager?.endpoint || \"\",\n credentials: {\n client_email:\n gcpConfiguration?.secretmanager?.credentials\n ?.client_email || \"\",\n client_id:\n gcpConfiguration?.secretmanager?.credentials?.client_id ||\n \"\",\n private_key_id:\n gcpConfiguration?.secretmanager?.credentials\n ?.private_key_id || \"\",\n private_key:\n gcpConfiguration?.secretmanager?.credentials?.private_key ||\n \"\",\n },\n },\n },\n };\n break;\n case \"vault\":\n insertEncrypt = {\n vault: {\n endpoint: vaultConfiguration?.endpoint || \"\",\n engine: vaultConfiguration?.engine || \"\",\n namespace: vaultConfiguration?.namespace || \"\",\n prefix: vaultConfiguration?.prefix || \"\",\n approle: {\n engine: vaultConfiguration?.approle?.engine || \"\",\n id: vaultConfiguration?.approle?.id || \"\",\n secret: vaultConfiguration?.approle?.secret || \"\",\n retry: parseInt(vaultConfiguration?.approle?.retry),\n },\n status: {\n ping: parseInt(vaultConfiguration?.status?.ping),\n },\n },\n };\n break;\n }\n\n let encryptionServerKeyPair: any = {};\n let encryptionClientKeyPair: any = {};\n let encryptionKMSCertificates: any = {};\n\n // MinIO -> KES (mTLS certificates)\n if (\n minioMTLSCertificate?.encoded_key &&\n minioMTLSCertificate?.encoded_cert\n ) {\n encryptionClientKeyPair = {\n minio_mtls: {\n key: minioMTLSCertificate?.encoded_key,\n crt: minioMTLSCertificate?.encoded_cert,\n },\n };\n }\n\n // KES server certificates\n if (\n kesServerCertificate?.encoded_key &&\n kesServerCertificate?.encoded_cert\n ) {\n encryptionServerKeyPair = {\n server_tls: {\n key: kesServerCertificate?.encoded_key,\n crt: kesServerCertificate?.encoded_cert,\n },\n };\n }\n\n // KES -> KMS (mTLS certificates)\n let kmsMTLSKeyPair = null;\n let kmsCAInsert = null;\n if (kmsMTLSCertificate?.encoded_key && kmsMTLSCertificate?.encoded_cert) {\n kmsMTLSKeyPair = {\n key: kmsMTLSCertificate?.encoded_key,\n crt: kmsMTLSCertificate?.encoded_cert,\n };\n }\n if (kmsCACertificate?.encoded_cert) {\n kmsCAInsert = {\n ca: kmsCACertificate?.encoded_cert,\n };\n }\n if (kmsMTLSKeyPair || kmsCAInsert) {\n encryptionKMSCertificates = {\n kms_mtls: {\n ...kmsMTLSKeyPair,\n ...kmsCAInsert,\n },\n };\n }\n\n const dataSend = {\n raw:\n editRawConfiguration === \"raw-edit\" ? encryptionRawConfiguration : \"\",\n secretsToBeDeleted: certificatesToBeRemoved || [],\n replicas: replicas,\n securityContext: securityContext,\n image: image,\n ...encryptionClientKeyPair,\n ...encryptionServerKeyPair,\n ...encryptionKMSCertificates,\n ...insertEncrypt,\n };\n if (!updatingEncryption) {\n setUpdatingEncryption(true);\n api\n .invoke(\n \"PUT\",\n `/api/v1/namespaces/${tenant?.namespace}/tenants/${tenant?.name}/encryption`,\n dataSend,\n )\n .then(() => {\n setConfirmOpen(false);\n setUpdatingEncryption(false);\n fetchEncryptionInfo();\n })\n .catch((err: ErrorResponseHandler) => {\n setUpdatingEncryption(false);\n dispatch(setErrorSnackMessage(err));\n });\n }\n } else {\n if (!updatingEncryption) {\n setUpdatingEncryption(true);\n api\n .invoke(\n \"DELETE\",\n `/api/v1/namespaces/${tenant?.namespace}/tenants/${tenant?.name}/encryption`,\n {},\n )\n .then(() => {\n setConfirmOpen(false);\n setUpdatingEncryption(false);\n fetchEncryptionInfo();\n })\n .catch((err: ErrorResponseHandler) => {\n setUpdatingEncryption(false);\n dispatch(setErrorSnackMessage(err));\n });\n }\n }\n };\n\n return (\n \n {confirmOpen && (\n setConfirmOpen(false)}\n onConfirm={updateEncryptionConfiguration}\n confirmationContent={\n \n {encryptionEnabled\n ? \"Data will be encrypted using and external KMS\"\n : \"Current encrypted information will not be accessible\"}\n {encryptionEnabled && (\n \n )}\n \n }\n />\n )}\n \n \n \n \n {\n setEncryptionEnabled(!encryptionEnabled);\n }}\n description=\"\"\n />\n \n }\n >\n Encryption\n \n \n {encryptionEnabled && (\n \n \n \n \n {\n setEncryptionType(e.target.value);\n }}\n selectorOptions={[\n { label: \"Vault\", value: \"vault\" },\n { label: \"AWS\", value: \"aws\" },\n { label: \"Gemalto\", value: \"gemalto\" },\n { label: \"GCP\", value: \"gcp\" },\n { label: \"Azure\", value: \"azure\" },\n ]}\n />\n\n {encryptionType === \"vault\" && (\n \n ,\n ) =>\n setVaultConfiguration({\n ...vaultConfiguration,\n endpoint: e.target.value,\n })\n }\n label=\"Endpoint\"\n tooltip=\"Endpoint is the Hashicorp Vault endpoint\"\n value={vaultConfiguration?.endpoint || \"\"}\n error={validationErrors[\"vault_ping\"] || \"\"}\n required\n />\n ,\n ) =>\n setVaultConfiguration({\n ...vaultConfiguration,\n engine: e.target.value,\n })\n }\n label=\"Engine\"\n tooltip=\"Engine is the Hashicorp Vault K/V engine path. If empty, defaults to 'kv'\"\n value={vaultConfiguration?.engine || \"\"}\n />\n ,\n ) =>\n setVaultConfiguration({\n ...vaultConfiguration,\n namespace: e.target.value,\n })\n }\n label=\"Namespace\"\n tooltip=\"Namespace is an optional Hashicorp Vault namespace. An empty namespace means no particular namespace is used.\"\n value={vaultConfiguration?.namespace || \"\"}\n />\n ,\n ) =>\n setVaultConfiguration({\n ...vaultConfiguration,\n prefix: e.target.value,\n })\n }\n label=\"Prefix\"\n tooltip=\"Prefix is an optional prefix / directory within the K/V engine. If empty, keys will be stored at the K/V engine top level\"\n value={vaultConfiguration?.prefix || \"\"}\n />\n App Role\n
\n App Role\n ,\n ) =>\n setVaultConfiguration({\n ...vaultConfiguration,\n approle: {\n ...vaultConfiguration?.approle,\n engine: e.target.value,\n },\n })\n }\n label=\"Engine\"\n tooltip=\"AppRoleEngine is the AppRole authentication engine path. If empty, defaults to 'approle'\"\n value={\n vaultConfiguration?.approle?.engine || \"\"\n }\n />\n ,\n ) =>\n setVaultConfiguration({\n ...vaultConfiguration,\n approle: {\n ...vaultConfiguration?.approle,\n id: e.target.value,\n },\n })\n }\n label=\"AppRole ID\"\n tooltip=\"AppRoleSecret is the AppRole access secret for authenticating to Hashicorp Vault via the AppRole method\"\n value={vaultConfiguration?.approle?.id || \"\"}\n required\n error={validationErrors[\"vault_id\"] || \"\"}\n />\n ,\n ) =>\n setVaultConfiguration({\n ...vaultConfiguration,\n approle: {\n ...vaultConfiguration?.approle,\n secret: e.target.value,\n },\n })\n }\n label=\"AppRole Secret\"\n tooltip=\"AppRoleSecret is the AppRole access secret for authenticating to Hashicorp Vault via the AppRole method\"\n value={\n vaultConfiguration?.approle?.secret || \"\"\n }\n required\n error={validationErrors[\"vault_secret\"] || \"\"}\n />\n ,\n ) =>\n setVaultConfiguration({\n ...vaultConfiguration,\n approle: {\n ...vaultConfiguration?.approle,\n retry: e.target.value,\n },\n })\n }\n label=\"Retry (Seconds)\"\n error={validationErrors[\"vault_retry\"] || \"\"}\n value={\n vaultConfiguration?.approle?.retry || \"\"\n }\n />\n
\n
\n Status\n ,\n ) =>\n setVaultConfiguration({\n ...vaultConfiguration,\n status: {\n ...vaultConfiguration?.status,\n ping: e.target.value,\n },\n })\n }\n label=\"Ping (Seconds)\"\n tooltip=\"controls how often to Vault health status is checked. If not set, defaults to 10s\"\n error={validationErrors[\"vault_ping\"] || \"\"}\n value={vaultConfiguration?.status?.ping || \"\"}\n />\n
\n
\n )}\n {encryptionType === \"azure\" && (\n \n ,\n ) =>\n setAzureConfiguration({\n ...azureConfiguration,\n keyvault: {\n ...azureConfiguration?.keyvault,\n endpoint: e.target.value,\n },\n })\n }\n label=\"Endpoint\"\n tooltip=\"Endpoint is the Azure KeyVault endpoint\"\n error={validationErrors[\"azure_endpoint\"] || \"\"}\n value={\n azureConfiguration?.keyvault?.endpoint || \"\"\n }\n />\n
\n Credentials\n ,\n ) =>\n setAzureConfiguration({\n ...azureConfiguration,\n keyvault: {\n ...azureConfiguration?.keyvault,\n credentials: {\n ...azureConfiguration?.keyvault\n ?.credentials,\n tenant_id: e.target.value,\n },\n },\n })\n }\n label=\"Tenant ID\"\n tooltip=\"TenantID is the ID of the Azure KeyVault tenant\"\n value={\n azureConfiguration?.keyvault?.credentials\n ?.tenant_id || \"\"\n }\n error={\n validationErrors[\"azure_tenant_id\"] || \"\"\n }\n />\n ,\n ) =>\n setAzureConfiguration({\n ...azureConfiguration,\n keyvault: {\n ...azureConfiguration?.keyvault,\n credentials: {\n ...azureConfiguration?.keyvault\n ?.credentials,\n client_id: e.target.value,\n },\n },\n })\n }\n label=\"Client ID\"\n tooltip=\"ClientID is the ID of the client accessing Azure KeyVault\"\n value={\n azureConfiguration?.keyvault?.credentials\n ?.client_id || \"\"\n }\n error={\n validationErrors[\"azure_client_id\"] || \"\"\n }\n />\n ,\n ) =>\n setAzureConfiguration({\n ...azureConfiguration,\n keyvault: {\n ...azureConfiguration?.keyvault,\n credentials: {\n ...azureConfiguration?.keyvault\n ?.credentials,\n client_secret: e.target.value,\n },\n },\n })\n }\n label=\"Client Secret\"\n tooltip=\"ClientSecret is the client secret accessing the Azure KeyVault\"\n value={\n azureConfiguration?.keyvault?.credentials\n ?.client_secret || \"\"\n }\n error={\n validationErrors[\"azure_client_secret\"] ||\n \"\"\n }\n />\n
\n
\n )}\n {encryptionType === \"gcp\" && (\n \n ,\n ) =>\n setGCPConfiguration({\n ...gcpConfiguration,\n secretmanager: {\n ...gcpConfiguration?.secretmanager,\n project_id: e.target.value,\n },\n })\n }\n label=\"Project ID\"\n tooltip=\"ProjectID is the GCP project ID\"\n value={\n gcpConfiguration?.secretmanager.project_id ||\n \"\"\n }\n />\n ,\n ) =>\n setGCPConfiguration({\n ...gcpConfiguration,\n secretmanager: {\n ...gcpConfiguration?.secretmanager,\n endpoint: e.target.value,\n },\n })\n }\n label=\"Endpoint\"\n tooltip=\"Endpoint is the GCP project ID. If empty defaults to: secretmanager.googleapis.com:443\"\n value={\n gcpConfiguration?.secretmanager.endpoint || \"\"\n }\n />\n
\n Credentials\n ,\n ) =>\n setGCPConfiguration({\n ...gcpConfiguration,\n secretmanager: {\n ...gcpConfiguration?.secretmanager,\n credentials: {\n ...gcpConfiguration?.secretmanager\n .credentials,\n client_email: e.target.value,\n },\n },\n })\n }\n label=\"Client Email\"\n tooltip=\"Is the Client email of the GCP service account used to access the SecretManager\"\n value={\n gcpConfiguration?.secretmanager.credentials\n ?.client_email || \"\"\n }\n />\n ,\n ) =>\n setGCPConfiguration({\n ...gcpConfiguration,\n secretmanager: {\n ...gcpConfiguration?.secretmanager,\n credentials: {\n ...gcpConfiguration?.secretmanager\n .credentials,\n client_id: e.target.value,\n },\n },\n })\n }\n label=\"Client ID\"\n tooltip=\"Is the Client ID of the GCP service account used to access the SecretManager\"\n value={\n gcpConfiguration?.secretmanager.credentials\n ?.client_id || \"\"\n }\n />\n ,\n ) =>\n setGCPConfiguration({\n ...gcpConfiguration,\n secretmanager: {\n ...gcpConfiguration?.secretmanager,\n credentials: {\n ...gcpConfiguration?.secretmanager\n .credentials,\n private_key_id: e.target.value,\n },\n },\n })\n }\n label=\"Private Key ID\"\n tooltip=\"Is the private key ID of the GCP service account used to access the SecretManager\"\n value={\n gcpConfiguration?.secretmanager.credentials\n ?.private_key_id || \"\"\n }\n />\n ,\n ) =>\n setGCPConfiguration({\n ...gcpConfiguration,\n secretmanager: {\n ...gcpConfiguration?.secretmanager,\n credentials: {\n ...gcpConfiguration?.secretmanager\n .credentials,\n private_key: e.target.value,\n },\n },\n })\n }\n label=\"Private Key\"\n tooltip=\"Is the private key of the GCP service account used to access the SecretManager\"\n value={\n gcpConfiguration?.secretmanager.credentials\n ?.private_key || \"\"\n }\n />\n
\n
\n )}\n {encryptionType === \"aws\" && (\n \n ,\n ) =>\n setAWSConfiguration({\n ...awsConfiguration,\n secretsmanager: {\n ...awsConfiguration?.secretsmanager,\n endpoint: e.target.value,\n },\n })\n }\n label=\"Endpoint\"\n tooltip=\"Endpoint is the AWS SecretsManager endpoint. AWS SecretsManager endpoints have the following schema: secrestmanager[-fips]..amanzonaws.com\"\n value={\n awsConfiguration?.secretsmanager?.endpoint ||\n \"\"\n }\n required\n error={validationErrors[\"aws_endpoint\"] || \"\"}\n />\n ,\n ) =>\n setAWSConfiguration({\n ...awsConfiguration,\n secretsmanager: {\n ...awsConfiguration?.secretsmanager,\n region: e.target.value,\n },\n })\n }\n label=\"Region\"\n tooltip=\"Region is the AWS region the SecretsManager is located\"\n value={\n awsConfiguration?.secretsmanager?.region || \"\"\n }\n error={validationErrors[\"aws_region\"] || \"\"}\n required\n />\n ,\n ) =>\n setAWSConfiguration({\n ...awsConfiguration,\n secretsmanager: {\n ...awsConfiguration?.secretsmanager,\n kmskey: e.target.value,\n },\n })\n }\n label=\"KMS Key\"\n tooltip=\"KMSKey is the AWS-KMS key ID (CMK-ID) used to en/decrypt secrets managed by the SecretsManager. If empty, the default AWS KMS key is used\"\n value={\n awsConfiguration?.secretsmanager?.kmskey || \"\"\n }\n />\n
\n Credentials\n ,\n ) =>\n setAWSConfiguration({\n ...awsConfiguration,\n secretsmanager: {\n ...awsConfiguration?.secretsmanager,\n credentials: {\n ...awsConfiguration?.secretsmanager\n ?.credentials,\n accesskey: e.target.value,\n },\n },\n })\n }\n label=\"Access Key\"\n tooltip=\"AccessKey is the access key for authenticating to AWS\"\n value={\n awsConfiguration?.secretsmanager\n ?.credentials?.accesskey || \"\"\n }\n error={\n validationErrors[\"aws_accessKey\"] || \"\"\n }\n required\n />\n ,\n ) =>\n setAWSConfiguration({\n ...awsConfiguration,\n secretsmanager: {\n ...awsConfiguration?.secretsmanager,\n credentials: {\n ...awsConfiguration?.secretsmanager\n ?.credentials,\n secretkey: e.target.value,\n },\n },\n })\n }\n label=\"Secret Key\"\n tooltip=\"SecretKey is the secret key for authenticating to AWS\"\n value={\n awsConfiguration?.secretsmanager\n ?.credentials?.secretkey || \"\"\n }\n error={\n validationErrors[\"aws_secretKey\"] || \"\"\n }\n required\n />\n ,\n ) =>\n setAWSConfiguration({\n ...awsConfiguration,\n secretsmanager: {\n ...awsConfiguration?.secretsmanager,\n credentials: {\n ...awsConfiguration?.secretsmanager\n ?.credentials,\n token: e.target.value,\n },\n },\n })\n }\n label=\"Token\"\n tooltip=\"SessionToken is an optional session token for authenticating to AWS when using STS\"\n value={\n awsConfiguration?.secretsmanager\n ?.credentials?.token || \"\"\n }\n />\n
\n
\n )}\n {encryptionType === \"gemalto\" && (\n \n ,\n ) =>\n setGemaltoConfiguration({\n ...gemaltoConfiguration,\n keysecure: {\n ...gemaltoConfiguration?.keysecure,\n endpoint: e.target.value,\n },\n })\n }\n label=\"Endpoint\"\n tooltip=\"Endpoint is the endpoint to the KeySecure server\"\n value={\n gemaltoConfiguration?.keysecure?.endpoint ||\n \"\"\n }\n error={\n validationErrors[\"gemalto_endpoint\"] || \"\"\n }\n required\n />\n
\n Credentials\n ,\n ) =>\n setGemaltoConfiguration({\n ...gemaltoConfiguration,\n keysecure: {\n ...gemaltoConfiguration?.keysecure,\n credentials: {\n ...gemaltoConfiguration?.keysecure\n ?.credentials,\n token: e.target.value,\n },\n },\n })\n }\n label=\"Token\"\n tooltip=\"Token is the refresh authentication token to access the KeySecure server\"\n value={\n gemaltoConfiguration?.keysecure?.credentials\n ?.token || \"\"\n }\n error={\n validationErrors[\"gemalto_token\"] || \"\"\n }\n required\n />\n ,\n ) =>\n setGemaltoConfiguration({\n ...gemaltoConfiguration,\n keysecure: {\n ...gemaltoConfiguration?.keysecure,\n credentials: {\n ...gemaltoConfiguration?.keysecure\n ?.credentials,\n domain: e.target.value,\n },\n },\n })\n }\n label=\"Domain\"\n tooltip=\"Domain is the isolated namespace within the KeySecure server. If empty, defaults to the top-level / root domain\"\n value={\n gemaltoConfiguration?.keysecure?.credentials\n ?.domain || \"\"\n }\n error={\n validationErrors[\"gemalto_domain\"] || \"\"\n }\n required\n />\n ,\n ) =>\n setGemaltoConfiguration({\n ...gemaltoConfiguration,\n keysecure: {\n ...gemaltoConfiguration?.keysecure,\n credentials: {\n ...gemaltoConfiguration?.keysecure\n ?.credentials,\n retry: e.target.value,\n },\n },\n })\n }\n label=\"Retry (seconds)\"\n value={\n gemaltoConfiguration?.keysecure?.credentials\n ?.retry || \"\"\n }\n error={\n validationErrors[\"gemalto_retry\"] || \"\"\n }\n />\n
\n
\n )}\n
\n ),\n },\n {\n tabConfig: { label: \"Raw Edit\", id: \"raw-edit\" },\n content: (\n {\n setEncryptionRawConfiguration(value);\n }}\n editorHeight={\"550px\"}\n />\n ),\n },\n ]}\n onTabClick={(value) => setEditRawConfiguration(value)}\n currentTabOrPath={editRawConfiguration}\n horizontal\n />\n
\n \n Additional Configuration for KES\n \n setEnabledCustomCertificates(!enabledCustomCertificates)\n }\n label={\"Custom Certificates\"}\n />\n {enabledCustomCertificates && (\n \n
\n Encryption server certificates\n {kesServerTLSCertificateSecret ? (\n \n removeCertificate(kesServerTLSCertificateSecret)\n }\n />\n ) : (\n \n {\n if (encodedValue) {\n setKESServerCertificate({\n encoded_key: encodedValue,\n id: kesServerCertificate?.id || \"\",\n key: fileName || \"\",\n cert: kesServerCertificate?.cert || \"\",\n encoded_cert:\n kesServerCertificate?.encoded_cert || \"\",\n });\n cleanValidation(\"serverKey\");\n }\n }}\n accept=\".key,.pem\"\n id=\"serverKey\"\n name=\"serverKey\"\n label=\"Key\"\n value={kesServerCertificate?.key || \"\"}\n returnEncodedData\n />\n {\n if (encodedValue) {\n setKESServerCertificate({\n encoded_key:\n kesServerCertificate?.encoded_key || \"\",\n id: kesServerCertificate?.id || \"\",\n key: kesServerCertificate?.key || \"\",\n cert: fileName || \"\",\n encoded_cert: encodedValue || \"\",\n });\n cleanValidation(\"serverCert\");\n }\n }}\n accept=\".cer,.crt,.cert,.pem\"\n id=\"serverCert\"\n name=\"serverCert\"\n label=\"Cert\"\n value={kesServerCertificate?.cert || \"\"}\n returnEncodedData\n />\n \n )}\n
\n
\n \n MinIO mTLS certificates (connection between MinIO and\n the Encryption server)\n \n {minioMTLSCertificateSecret ? (\n \n removeCertificate(minioMTLSCertificateSecret)\n }\n />\n ) : (\n \n {\n if (encodedValue) {\n setMinioMTLSCertificate({\n encoded_key: encodedValue,\n id: minioMTLSCertificate?.id || \"\",\n key: fileName || \"\",\n cert: minioMTLSCertificate?.cert || \"\",\n encoded_cert:\n minioMTLSCertificate?.encoded_cert || \"\",\n });\n cleanValidation(\"clientKey\");\n }\n }}\n accept=\".key,.pem\"\n id=\"clientKey\"\n name=\"clientKey\"\n label=\"Key\"\n value={minioMTLSCertificate?.key || \"\"}\n returnEncodedData\n />\n {\n if (encodedValue) {\n setMinioMTLSCertificate({\n encoded_key:\n minioMTLSCertificate?.encoded_key || \"\",\n id: minioMTLSCertificate?.id || \"\",\n key: minioMTLSCertificate?.key || \"\",\n cert: fileName || \"\",\n encoded_cert: encodedValue || \"\",\n });\n cleanValidation(\"clientCert\");\n }\n }}\n accept=\".cer,.crt,.cert,.pem\"\n id=\"clientCert\"\n name=\"clientCert\"\n label=\"Cert\"\n value={minioMTLSCertificate?.cert || \"\"}\n returnEncodedData\n />\n \n )}\n
\n
\n \n KMS mTLS certificates (connection between the Encryption\n server and the KMS)\n \n {kmsMTLSCertificateSecret ? (\n \n removeCertificate(kmsMTLSCertificateSecret)\n }\n />\n ) : (\n \n {\n if (encodedValue) {\n setKmsMTLSCertificate({\n encoded_key: encodedValue || \"\",\n id: kmsMTLSCertificate?.id || \"\",\n key: fileName || \"\",\n cert: kmsMTLSCertificate?.cert || \"\",\n encoded_cert:\n kmsMTLSCertificate?.encoded_cert || \"\",\n });\n }\n }}\n accept=\".key,.pem\"\n id=\"kms_mtls_key\"\n name=\"kms_mtls_key\"\n label=\"Key\"\n value={kmsMTLSCertificate?.key || \"\"}\n returnEncodedData\n />\n {\n if (encodedValue) {\n setKmsMTLSCertificate({\n encoded_key:\n kmsMTLSCertificate?.encoded_key || \"\",\n id: kmsMTLSCertificate?.id || \"\",\n key: kmsMTLSCertificate?.key || \"\",\n cert: fileName || \"\",\n encoded_cert: encodedValue || \"\",\n });\n }\n }}\n accept=\".cer,.crt,.cert,.pem\"\n id=\"kms_mtls_cert\"\n name=\"kms_mtls_cert\"\n label=\"Cert\"\n value={kmsMTLSCertificate?.cert || \"\"}\n returnEncodedData\n />\n \n )}\n {kmsCACertificateSecret ? (\n \n removeCertificate(kmsCACertificateSecret)\n }\n />\n ) : (\n {\n if (encodedValue) {\n setKmsCACertificate({\n encoded_key:\n kmsCACertificate?.encoded_key || \"\",\n id: kmsCACertificate?.id || \"\",\n key: kmsCACertificate?.key || \"\",\n cert: fileName || \"\",\n encoded_cert: encodedValue || \"\",\n });\n }\n }}\n accept=\".cer,.crt,.cert,.pem\"\n id=\"kms_mtls_ca\"\n name=\"kms_mtls_ca\"\n label=\"CA\"\n value={kmsCACertificate?.cert || \"\"}\n returnEncodedData\n />\n )}\n
\n
\n )}\n ) =>\n setImage(e.target.value)\n }\n label=\"Image\"\n tooltip=\"KES container image\"\n placeholder=\"minio/kes:2024-03-01T18-06-46Z\"\n value={image}\n />\n ) =>\n setReplicas(e.target.value)\n }\n label=\"Replicas\"\n tooltip=\"Numer of KES pod replicas\"\n value={replicas}\n required\n error={validationErrors[\"replicas\"] || \"\"}\n />\n SecurityContext for KES\n \n \n ) => {\n setSecurityContext({\n ...securityContext,\n runAsUser: e.target.value,\n });\n }}\n label=\"Run As User\"\n value={securityContext.runAsUser}\n required\n error={\n validationErrors[\"kes_securityContext_runAsUser\"] || \"\"\n }\n min=\"0\"\n />\n \n \n ) => {\n setSecurityContext({\n ...securityContext,\n runAsGroup: e.target.value,\n });\n }}\n label=\"Run As Group\"\n value={securityContext.runAsGroup}\n required\n error={\n validationErrors[\"kes_securityContext_runAsGroup\"] || \"\"\n }\n min=\"0\"\n />\n \n \n \n \n ) => {\n setSecurityContext({\n ...securityContext,\n fsGroup: e.target.value,\n });\n }}\n label=\"FsGroup\"\n value={securityContext.fsGroup!}\n required\n error={\n validationErrors[\"kes_securityContext_fsGroup\"] || \"\"\n }\n min=\"0\"\n sx={{\n marginBottom: 12,\n }}\n />\n \n \n {\n const targetD = e.target;\n const checked = targetD.checked;\n setSecurityContext({\n ...securityContext,\n runAsNonRoot: checked,\n });\n }}\n label={\"Do not run as Root\"}\n />\n
\n \n )}\n \n setConfirmOpen(true)}\n label={\"Save\"}\n />\n \n \n
\n
\n );\n};\n\nexport default TenantEncryption;\n"],"names":["actionsTray","label","color","fontSize","alignSelf","whiteSpace","marginLeft","display","justifyContent","marginBottom","alignItems","flexGrow","modalStyleUtils","modalButtonBar","marginTop","marginRight","modalFormScrollable","maxHeight","overflowY","paddingTop","CertificateContainer","styled","div","_ref","theme","position","margin","userSelect","appearance","maxWidth","fontFamily","gap","border","concat","get","borderRadius","padding","fontWeight","backgroundColor","cursor","opacity","fill","width","height","minWidth","minHeight","flexWrap","textTransform","listStyle","content","borderBottom","transform","_ref2","certificateInfo","onDelete","certificates","domains","expiry","DateTime","fromISO","now","utc","daysToExpiry","daysToExpiryHuman","certificateExpiration","durationToExpiry","diff","as","minus","Duration","fromObject","days","shiftTo","toHuman","maximumFractionDigits","minutes","_jsxs","children","Box","className","_jsx","CertificateIcon","name","EventBusyIcon","toFormat","TimeIcon","style","length","map","dom","index","LanguageIcon","IconButton","size","onClick","AlertCloseIcon","PolicyItem","items","title","Fragment","flexFlow","iTxt","policies","fmtPolicies","arguments","undefined","Object","keys","polName","policyConfig","identities","paths","allow","deny","getPolicyData","Grid","xs","sx","withBorders","overflow","pConf","borderLeft","borderRight","borderTop","TenantEncryption","_vaultConfiguration$a9","_vaultConfiguration$a10","_vaultConfiguration$a11","_vaultConfiguration$a12","_vaultConfiguration$s4","_azureConfiguration$k15","_azureConfiguration$k17","_azureConfiguration$k18","_azureConfiguration$k20","_azureConfiguration$k21","_azureConfiguration$k23","_azureConfiguration$k24","_gcpConfiguration$sec11","_gcpConfiguration$sec12","_gcpConfiguration$sec13","_gcpConfiguration$sec14","_awsConfiguration$sec16","_awsConfiguration$sec17","_awsConfiguration$sec18","_awsConfiguration$sec20","_awsConfiguration$sec21","_awsConfiguration$sec23","_awsConfiguration$sec24","_awsConfiguration$sec26","_awsConfiguration$sec27","_gemaltoConfiguration17","_gemaltoConfiguration19","_gemaltoConfiguration20","_gemaltoConfiguration22","_gemaltoConfiguration23","_gemaltoConfiguration25","_gemaltoConfiguration26","dispatch","useAppDispatch","tenant","useSelector","state","tenants","tenantInfo","editRawConfiguration","setEditRawConfiguration","useState","encryptionRawConfiguration","setEncryptionRawConfiguration","encryptionEnabled","setEncryptionEnabled","encryptionType","setEncryptionType","replicas","setReplicas","image","setImage","refreshEncryptionInfo","setRefreshEncryptionInfo","securityContext","setSecurityContext","fsGroup","fsGroupChangePolicy","runAsGroup","runAsNonRoot","runAsUser","setPolicies","vaultConfiguration","setVaultConfiguration","awsConfiguration","setAWSConfiguration","gemaltoConfiguration","setGemaltoConfiguration","azureConfiguration","setAzureConfiguration","gcpConfiguration","setGCPConfiguration","enabledCustomCertificates","setEnabledCustomCertificates","updatingEncryption","setUpdatingEncryption","kesServerTLSCertificateSecret","setKesServerTLSCertificateSecret","minioMTLSCertificateSecret","setMinioMTLSCertificateSecret","minioMTLSCertificate","setMinioMTLSCertificate","certificatesToBeRemoved","setCertificatesToBeRemoved","isFormValid","setIsFormValid","kmsMTLSCertificateSecret","setKmsMTLSCertificateSecret","kmsCACertificateSecret","setKMSCACertificateSecret","kmsMTLSCertificate","setKmsMTLSCertificate","kesServerCertificate","setKESServerCertificate","kmsCACertificate","setKmsCACertificate","validationErrors","setValidationErrors","cleanValidation","fieldName","clearValidationError","confirmOpen","setConfirmOpen","useEffect","encryptionValidation","_vaultConfiguration$a","_vaultConfiguration$a2","_vaultConfiguration$s","_vaultConfiguration$s2","_vaultConfiguration$a3","_vaultConfiguration$a4","_awsConfiguration$sec","_awsConfiguration$sec2","_awsConfiguration$sec3","_awsConfiguration$sec4","_awsConfiguration$sec5","_awsConfiguration$sec6","_gemaltoConfiguration","_gemaltoConfiguration2","_gemaltoConfiguration3","_gemaltoConfiguration4","_gemaltoConfiguration5","_gemaltoConfiguration6","_gemaltoConfiguration7","_gemaltoConfiguration8","_gemaltoConfiguration9","_azureConfiguration$k","_azureConfiguration$k2","_azureConfiguration$k3","_azureConfiguration$k4","_azureConfiguration$k5","_azureConfiguration$k6","_azureConfiguration$k7","fieldKey","required","value","customValidation","parseInt","customValidationMessage","encoded_key","encoded_cert","endpoint","approle","id","secret","status","ping","retry","secretsmanager","region","credentials","accesskey","secretkey","keysecure","token","domain","keyvault","tenant_id","client_id","client_secret","commonVal","commonFormValidation","fetchEncryptionInfo","namespace","api","invoke","then","resp","raw","vault","aws","gemalto","gcp","azure","server_tls","minio_mtls","kms_mtls","crt","ca","catch","err","console","error","removeCertificate","React","ConfirmDialog","isOpen","confirmText","cancelText","onClose","onConfirm","updateEncryptionConfiguration","_gemaltoConfiguration10","_gemaltoConfiguration11","_gemaltoConfiguration12","_gemaltoConfiguration13","_gemaltoConfiguration14","_gemaltoConfiguration15","_gemaltoConfiguration16","_awsConfiguration$sec7","_awsConfiguration$sec8","_awsConfiguration$sec9","_awsConfiguration$sec10","_awsConfiguration$sec11","_awsConfiguration$sec12","_awsConfiguration$sec13","_awsConfiguration$sec14","_awsConfiguration$sec15","_azureConfiguration$k8","_azureConfiguration$k9","_azureConfiguration$k10","_azureConfiguration$k11","_azureConfiguration$k12","_azureConfiguration$k13","_azureConfiguration$k14","_gcpConfiguration$sec","_gcpConfiguration$sec2","_gcpConfiguration$sec3","_gcpConfiguration$sec4","_gcpConfiguration$sec5","_gcpConfiguration$sec6","_gcpConfiguration$sec7","_gcpConfiguration$sec8","_gcpConfiguration$sec9","_gcpConfiguration$sec10","_vaultConfiguration$a5","_vaultConfiguration$a6","_vaultConfiguration$a7","_vaultConfiguration$a8","_vaultConfiguration$s3","insertEncrypt","kmskey","secretmanager","project_id","client_email","private_key_id","private_key","engine","prefix","encryptionServerKeyPair","encryptionClientKeyPair","encryptionKMSCertificates","key","kmsMTLSKeyPair","kmsCAInsert","dataSend","secretsToBeDeleted","setErrorSnackMessage","confirmationContent","InformativeMessage","message","variant","FormLayout","containerPadding","container","item","SectionTitle","separator","actions","Switch","indicatorLabels","checked","onChange","description","Tabs","options","tabConfig","KMSPolicyInfo","RadioGroup","currentValue","e","target","selectorOptions","InputBox","tooltip","type","min","_azureConfiguration$k16","_azureConfiguration$k19","_azureConfiguration$k22","_awsConfiguration$sec19","_awsConfiguration$sec22","_awsConfiguration$sec25","_gemaltoConfiguration18","_gemaltoConfiguration21","_gemaltoConfiguration24","CodeEditor","mode","editorHeight","onTabClick","currentTabOrPath","horizontal","TLSCertificate","FileSelector","event","fileName","encodedValue","cert","accept","returnEncodedData","placeholder","Button","disabled"],"sourceRoot":""} \ No newline at end of file diff --git a/web-app/build/static/js/331.483c2ef9.chunk.js b/web-app/build/static/js/331.483c2ef9.chunk.js deleted file mode 100644 index 69c34b3f495..00000000000 --- a/web-app/build/static/js/331.483c2ef9.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[331],{3814:(e,t,n)=>{n.d(t,{I:()=>o,O:()=>a});const a={label:{color:"#07193E",fontSize:13,alignSelf:"center",whiteSpace:"nowrap","&:not(:first-of-type)":{marginLeft:10}},actionsTray:{display:"flex",justifyContent:"space-between",marginBottom:"1rem",alignItems:"center","& button":{flexGrow:0,marginLeft:8}}},o={modalButtonBar:{marginTop:15,display:"flex",alignItems:"center",justifyContent:"flex-end","& button":{marginRight:10},"& button:last-child":{marginRight:0}},modalFormScrollable:{maxHeight:"calc(100vh - 300px)",overflowY:"auto",paddingTop:10}}},9505:(e,t,n)=>{n.d(t,{Z:()=>s});var a=n(2791),o=n(1207);const s=(e,t)=>{const[n,s]=(0,a.useState)(!1);return[n,(n,a,l,r)=>{s(!0),o.Z.invoke(n,a,l,r).then((t=>{s(!1),e(t)})).catch((e=>{s(!1),t(e)}))}]}},9114:(e,t,n)=>{n.d(t,{Z:()=>s});n(2791);var a=n(9945),o=n(184);const s=e=>{let{placeholder:t="",onChange:n,overrideClass:s,value:l,id:r="search-resource",label:i="",sx:c}=e;return(0,o.jsx)(a.Wzg,{placeholder:t,className:s||"",id:r,label:i,onChange:e=>{n(e.target.value)},value:l,startIcon:(0,o.jsx)(a.W1M,{}),sx:c})}},7331:(e,t,n)=>{n.r(t),n.d(t,{default:()=>b});var a=n(2791),o=n(9434),s=n(7689),l=n(9945),r=n(3814),i=n(5248),c=n(1320),d=n(7995),m=n(1207),p=n(9505),u=n(3508),h=n(184);const g=e=>{let{deleteOpen:t,selectedPod:n,closeDeleteModalAndRefresh:o}=e;const s=(0,c.TL)(),[r,i]=(0,a.useState)(""),[m,g]=(0,p.Z)((()=>o(!0)),(e=>s((0,d.Ih)(e))));return(0,h.jsx)(u.Z,{title:"Delete Pod",confirmText:"Delete",isOpen:t,titleIcon:(0,h.jsx)(l.NvT,{}),isLoading:m,onConfirm:()=>{r===n.name?g("DELETE","/api/v1/namespaces/".concat(n.namespace,"/tenants/").concat(n.tenant,"/pods/").concat(n.name)):(0,d.Ih)({errorMessage:"Tenant name is incorrect",detailedError:""})},onClose:()=>o(!1),confirmButtonProps:{disabled:r!==n.name||m},confirmationContent:(0,h.jsxs)(a.Fragment,{children:["To continue please type ",(0,h.jsx)("b",{children:n.name})," in the box.",(0,h.jsx)(l.xuv,{sx:{marginTop:15},children:(0,h.jsx)(l.Wzg,{id:"retype-pod",name:"retype-pod",onChange:e=>{i(e.target.value)},label:"",value:r})})]})})};var x=n(7454),f=n(9114);const b=()=>{const e=(0,c.TL)(),t=(0,s.s0)(),{tenantName:n,tenantNamespace:p}=(0,s.UO)(),u=(0,o.v9)((e=>e.tenants.loadingTenant)),[b,j]=(0,a.useState)([]),[y,v]=(0,a.useState)(!0),[C,S]=(0,a.useState)(!1),[w,T]=(0,a.useState)(null),[E,I]=(0,a.useState)(""),[Z,k]=(0,a.useState)(""),[P,L]=(0,a.useState)(!1),[N,z]=(0,a.useState)(!1),[A,B]=(0,a.useState)(!1),[D,R]=(0,a.useState)(!1),[F,K]=(0,a.useState)("");(0,a.useEffect)((()=>{if(N){let e=document.createElement("a");e.setAttribute("href","data:application/gzip;base64,".concat(Z)),e.setAttribute("download",F),e.style.display="none",document.body.appendChild(e),e.click(),document.body.removeChild(e),z(!1),B(!0)}}),[N,F,Z]);const O=b.filter((e=>e.name.toLowerCase().includes(E.toLowerCase()))),M=[{type:"view",onClick:e=>{t("/namespaces/".concat(p||"","/tenants/").concat(n||"","/pods/").concat(e.name))}},{type:"delete",onClick:e=>{e.tenant=n,e.namespace=p,T(e),S(!0)}}];(0,a.useEffect)((()=>{u&&v(!0)}),[u]),(0,a.useEffect)((()=>{y&&m.Z.invoke("GET","/api/v1/namespaces/".concat(p||"","/tenants/").concat(n||"","/pods")).then((e=>{for(let t=0;t{e((0,d.Ih)({errorMessage:"Error loading pods",detailedError:t.detailedError}))}))}),[y,n,p,e]),(0,a.useEffect)((()=>{P?(k(""),m.Z.invoke("GET","/api/v1/namespaces/".concat(p,"/tenants/").concat(n,"/log-report")).then((async e=>{k(decodeURIComponent(e.blob)),K(e.filename||"tenant-log-report.zip"),L(!1),z(!0),0===e.filename.length||0===e.blob.length?R(!0):R(!1)})).catch((t=>{e((0,d.Ih)(t)),L(!1),R(!0)}))):L(!1)}),[n,p,P,e]);return(0,h.jsxs)(a.Fragment,{children:[C&&(0,h.jsx)(g,{deleteOpen:C,selectedPod:w,closeDeleteModalAndRefresh:e=>{S(!1),v(!0)}}),(0,h.jsx)(l.NZf,{separator:!0,sx:{marginBottom:15},actions:(0,h.jsx)(x.Z,{tooltip:"A report of all tenant logs will be generated as a .zip file and downloaded for analysis. This report can be uploaded to SUBNET to enable our team to best assist you in troubleshooting.",children:(0,h.jsx)(l.zxk,{id:"log_report",onClick:()=>{L(!0)},disabled:0===b.length,children:"Download Log Report"})}),children:"Pods"}),A&&!D&&(0,h.jsx)(l.J6i,{title:"Success",message:"Tenant report downloaded to "+F,variant:"success"}),D&&(0,h.jsx)(l.J6i,{title:"Error",message:"There was a problem generating the report",variant:"error"}),(0,h.jsxs)(l.rjZ,{container:!0,sx:{marginBottom:15},children:[(0,h.jsx)(l.rjZ,{item:!0,xs:4,sx:{display:"flex",alignItems:"center"}}),(0,h.jsx)(l.rjZ,{item:!0,xs:4,sx:{display:"flex",justifyContent:"flex-end",alignItems:"center"}})]}),(0,h.jsx)(l.rjZ,{item:!0,xs:12,sx:r.O.actionsTray,children:(0,h.jsx)(f.Z,{value:E,onChange:e=>{I(e)},placeholder:"Search Pods",id:"search-resource"})}),(0,h.jsx)(l.rjZ,{item:!0,xs:12,children:(0,h.jsx)(l.wQF,{columns:[{label:"Name",elementKey:"name",width:200},{label:"Status",elementKey:"status"},{label:"Age",elementKey:"time"},{label:"Pod IP",elementKey:"podIP"},{label:"Restarts",elementKey:"restarts",renderFunction:e=>null!==e?e:0},{label:"Node",elementKey:"node"}],isLoading:y,records:O,itemActions:M,entityName:"Pods",idField:"name",customPaperHeight:"calc(100vh - 400px)"})})]})}}}]); -//# sourceMappingURL=331.483c2ef9.chunk.js.map \ No newline at end of file diff --git a/web-app/build/static/js/332.577d2d47.chunk.js b/web-app/build/static/js/332.577d2d47.chunk.js deleted file mode 100644 index 5536a5eb8c4..00000000000 --- a/web-app/build/static/js/332.577d2d47.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[332],{3814:(e,t,n)=>{n.d(t,{I:()=>s,O:()=>i});const i={label:{color:"#07193E",fontSize:13,alignSelf:"center",whiteSpace:"nowrap","&:not(:first-of-type)":{marginLeft:10}},actionsTray:{display:"flex",justifyContent:"space-between",marginBottom:"1rem",alignItems:"center","& button":{flexGrow:0,marginLeft:8}}},s={modalButtonBar:{marginTop:15,display:"flex",alignItems:"center",justifyContent:"flex-end","& button":{marginRight:10},"& button:last-child":{marginRight:0}},modalFormScrollable:{maxHeight:"calc(100vh - 300px)",overflowY:"auto",paddingTop:10}}},666:(e,t,n)=>{n.d(t,{Z:()=>d});n(2791);var i=n(9945),s=n(9779),a=n(6444),r=n(6181),o=n.n(r),c=n(184);const l=a.ZP.div((e=>{let{theme:t}=e;return{position:"relative",margin:0,userSelect:"none",appearance:"none",maxWidth:"100%",fontFamily:"'Inter', sans-serif",fontSize:13,display:"inline-flex",alignItems:"center",justifyContent:"center",gap:6,border:"1px solid ".concat(o()(t,"borderColor","#E2E2E2")),borderRadius:3,padding:"5px 10px","& .certificateName":{display:"flex",alignItems:"center",gap:5,fontWeight:"bold",color:o()(t,"signalColors.main","#07193E")},"& .deleteTagButton":{backgroundColor:"transparent",border:0,display:"flex",alignItems:"center",justifyContent:"center",padding:0,cursor:"pointer",opacity:.6,"&:hover":{opacity:1},"& svg":{fill:o()(t,"tag.grey.background","#07193E"),width:10,height:10,minWidth:10,minHeight:10}},"& .certificateContainer":{margin:"5px 10px"},"& .certificateExpiry":{color:o()(t,"secondaryText","#5B5C5C"),display:"flex",alignItems:"center",flexWrap:"wrap",marginBottom:5,"& .label":{fontWeight:"bold"}},"& .certificateDomains":{color:o()(t,"secondaryText","#5B5C5C"),"& .label":{fontWeight:"bold"}},"& .certificatesList":{border:"1px solid ".concat(o()(t,"borderColor","#E2E2E2")),borderRadius:4,color:o()(t,"secondaryText","#5B5C5C"),textTransform:"lowercase",overflowY:"scroll",maxHeight:145,marginTop:3,marginBottom:5,padding:0,"& li":{listStyle:"none",padding:"5px 10px",margin:0,display:"flex",alignItems:"center","&:before":{content:"' '"}}},"& .certificatesListItem":{padding:"0px 16px",borderBottom:"1px solid ".concat(o()(t,"borderColor","#E2E2E2")),"& div":{minWidth:0},"& svg":{fontSize:12,marginRight:10,opacity:.5},"& span":{fontSize:12}},"& .certificateExpiring":{color:o()(t,"signalColors.warning","#FFBD62"),"& .label":{fontWeight:"bold"}},"& .certificateExpired":{color:o()(t,"signalColors.danger","#C51B3F"),"& .label":{fontWeight:"bold"}},"& .closeIcon":{transform:"scale(0.8)"}}})),d=e=>{let{certificateInfo:t,onDelete:n=(()=>{})}=e;const a=t.domains||[],r=s.ou.fromISO(t.expiry),o=s.ou.utc();let d=0,m="",x="";if(r){let e=r.diff(o);d=e.as("days"),m=e.minus(s.nL.fromObject({days:1})).shiftTo("days").toHuman({listStyle:"long",maximumFractionDigits:0}),d>=10&&d<30&&(x="certificateExpiring"),d<10&&(x="certificateExpired",d<2&&(m=e.minus(s.nL.fromObject({minutes:1})).shiftTo("hours","minutes").toHuman({listStyle:"long",maximumFractionDigits:0}),e.as("minutes")<=1&&(m="EXPIRED")))}return(0,c.jsxs)(l,{children:[(0,c.jsxs)(i.xuv,{children:[(0,c.jsxs)(i.xuv,{className:"certificateName",children:[(0,c.jsx)(i.Baz,{}),(0,c.jsx)("span",{children:t.name})]}),(0,c.jsxs)(i.xuv,{className:"certificateContainer",children:[(0,c.jsxs)(i.xuv,{className:"certificateExpiry",children:[(0,c.jsx)(i.U7Y,{color:"inherit",fontSize:"small"}),"\xa0",(0,c.jsx)("span",{className:"label",children:"Expiry:\xa0"}),(0,c.jsx)("span",{children:r.toFormat("yyyy/MM/dd")})]}),(0,c.jsxs)(i.xuv,{className:"certificateExpiry",children:[(0,c.jsx)(i.wZd,{}),"\xa0",(0,c.jsx)("span",{className:"label",children:"Expires in:\xa0"}),(0,c.jsx)("span",{className:x,children:m})]}),(0,c.jsx)("hr",{style:{marginBottom:12}}),(0,c.jsx)(i.xuv,{className:"certificateDomains",children:(0,c.jsx)("span",{className:"label",children:"".concat(a.length," Domain (s):")})}),(0,c.jsx)("ul",{className:"certificatesList",children:a.map(((e,t)=>(0,c.jsxs)("li",{className:"certificatesListItem",children:[(0,c.jsx)(i.os0,{}),(0,c.jsx)("span",{children:e})]},"".concat(e,"-").concat(t))))})]})]}),(0,c.jsx)(i.hU,{size:"small",onClick:n,className:"closeIcon",children:(0,c.jsx)(i.eEZ,{})})]})}},8070:(e,t,n)=>{n.d(t,{Z:()=>c});n(2791);var i=n(9434),s=n(9945),a=n(7689),r=n(184);const o=e=>{let{icon:t,description:n}=e;return(0,r.jsxs)(s.xuv,{sx:{display:"flex","& .min-icon":{marginRight:"10px",height:"23px",width:"23px",marginBottom:"10px"}},children:[t," ",(0,r.jsx)(s.xuv,{className:"muted",sx:{fontSize:"14px",fontStyle:"italic"},children:n})]})},c=()=>{const e=(0,a.UO)(),t=e.tenantName||"",n=e.tenantNamespace||"",c=(0,i.v9)((e=>""!==n?n:""!==e.createTenant.fields.nameTenant.namespace?e.createTenant.fields.nameTenant.namespace:"")),l=(0,i.v9)((e=>""!==t?t:""!==e.createTenant.fields.nameTenant.tenantName?e.createTenant.fields.nameTenant.tenantName:""));return(0,r.jsx)(s.xuv,{sx:{flex:1,border:"1px solid #eaeaea",borderRadius:"2px",display:"flex",flexFlow:"column",padding:"20px",["@media (max-width: ".concat(s.Egj.sm,"px)")]:{marginTop:0}},children:(0,r.jsxs)(s.xuv,{sx:{display:"flex",flexFlow:"column"},children:[(0,r.jsx)(o,{icon:(0,r.jsx)(s.Baz,{}),description:"TLS Certificates Warning"}),(0,r.jsxs)(s.xuv,{sx:{fontSize:"14px",marginBottom:"15px"},children:["Automatic certificate generation is not enabled.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"If you wish to continue only with ",(0,r.jsx)("b",{children:"custom certificates"})," make sure they are valid for the following internode hostnames, i.e.:",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),(0,r.jsxs)(s.xuv,{sx:{fontSize:"14px",fontStyle:"italic"},className:"muted",children:["minio.",c,(0,r.jsx)("br",{}),"minio.",c,".svc",(0,r.jsx)("br",{}),"minio.",c,".svc.",(0,r.jsx)("br",{}),"*.",l,"-hl.",c,".svc.",(0,r.jsx)("br",{}),"*.",c,".svc."]}),(0,r.jsx)("br",{}),"Replace ",(0,r.jsx)("em",{children:""}),","," ",(0,r.jsx)("em",{children:""})," and",(0,r.jsx)("em",{children:""})," with the actual values for your MinIO tenant.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"You can learn more at our"," ",(0,r.jsx)("a",{href:"https://min.io/docs/minio/kubernetes/upstream/operations/network-encryption.html?ref=op#id5",target:"_blank",rel:"noopener",children:"documentation"}),"."]})]})})}},2332:(e,t,n)=>{n.r(t),n.d(t,{default:()=>f});var i=n(2791),s=n(9434),a=n(9945),r=n(3814),o=n(1320),c=n(7995),l=n(1207),d=n(3508),m=n(666),x=n(184);const u=e=>{let{runAsGroup:t,runAsUser:n,fsGroup:r,fsGroupChangePolicy:o,runAsNonRoot:c,setRunAsUser:l,setRunAsGroup:d,setFSGroup:m,setRunAsNonRoot:u,setFSGroupChangePolicy:h}=e;const p=(0,s.I0)();return(0,x.jsx)(i.Fragment,{children:(0,x.jsxs)("fieldset",{className:"inputItem",children:[(0,x.jsx)("legend",{children:"Security Context"}),(0,x.jsxs)(a.xuv,{sx:{"& .multiContainerStackNarrow":{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"8px","@media (max-width: 750px)":{flexFlow:"column",flexDirection:"column"}},"& .configSectionItem":{marginRight:15,marginBottom:10}},children:[(0,x.jsx)(a.rjZ,{item:!0,xs:12,children:(0,x.jsxs)(a.xuv,{className:"multiContainerStackNarrow",children:[(0,x.jsx)(a.xuv,{className:"configSectionItem",children:(0,x.jsx)(a.Wzg,{type:"number",id:"securityContext_runAsUser",name:"securityContext_runAsUser",onChange:e=>{p(l(e.target.value))},label:"Run As User",value:n,required:!0,min:"0"})}),(0,x.jsx)(a.xuv,{className:"configSectionItem",children:(0,x.jsx)(a.Wzg,{type:"number",id:"securityContext_runAsGroup",name:"securityContext_runAsGroup",onChange:e=>{p(d(e.target.value))},label:"Run As Group",value:t,required:!0,min:"0"})})]})}),(0,x.jsx)(a.rjZ,{item:!0,xs:12,children:(0,x.jsxs)(a.xuv,{className:"multiContainerStackNarrow ",children:[(0,x.jsx)(a.xuv,{className:"configSectionItem",children:(0,x.jsx)(a.Wzg,{type:"number",id:"securityContext_fsGroup",name:"securityContext_fsGroup",onChange:e=>{p(m(e.target.value))},label:"FsGroup",value:r,required:!0,min:"0"})}),(0,x.jsx)(a.xuv,{className:"configSectionItem",children:(0,x.jsx)(a.PhF,{label:"FsGroupChangePolicy",id:"securityContext_fsGroupChangePolicy",name:"securityContext_fsGroupChangePolicy",onChange:e=>{p(h(e))},value:o,options:[{label:"Always",value:"Always"},{label:"OnRootMismatch",value:"OnRootMismatch"}]})})]})}),(0,x.jsx)(a.rjZ,{item:!0,xs:12,children:(0,x.jsx)(a.rsf,{value:"SecurityContextRunAsNonRoot",id:"securityContext_runAsNonRoot",name:"securityContext_runAsNonRoot",checked:c,onChange:()=>{p(u(!c))},label:"Do not run as Root"})})]})]})})};var h=n(1078),p=n(8070);const f=()=>{const e=(0,o.TL)(),t=(0,s.v9)((e=>e.tenants.tenantInfo)),n=(0,s.v9)((e=>e.tenants.loadingTenant)),[f,j]=(0,i.useState)(!1),[g,C]=(0,i.useState)(!1),[y,v]=(0,i.useState)(!1),[b,S]=(0,i.useState)(!1),[k,A]=(0,i.useState)(!1),[N,w]=(0,i.useState)([]),[I,R]=(0,i.useState)([{id:Date.now().toString(),key:"",cert:"",encoded_key:"",encoded_cert:""}]),[T,Z]=(0,i.useState)([{id:Date.now().toString(),key:"",cert:"",encoded_key:"",encoded_cert:""}]),[E,F]=(0,i.useState)([{id:Date.now().toString(),key:"",cert:"",encoded_key:"",encoded_cert:""}]),[_,G]=(0,i.useState)([]),[B,D]=(0,i.useState)([]),[z,L]=(0,i.useState)([]),P=(0,s.v9)((e=>e.editTenantSecurityContext.runAsGroup)),U=(0,s.v9)((e=>e.editTenantSecurityContext.runAsUser)),O=(0,s.v9)((e=>e.editTenantSecurityContext.fsGroup)),W=(0,s.v9)((e=>e.editTenantSecurityContext.runAsNonRoot)),M=(0,s.v9)((e=>e.editTenantSecurityContext.fsGroupChangePolicy)),H=(0,i.useCallback)((()=>{l.Z.invoke("GET","/api/v1/namespaces/".concat(null===t||void 0===t?void 0:t.namespace,"/tenants/").concat(null===t||void 0===t?void 0:t.name,"/security")).then((t=>{S(t.autoCert),v(t.autoCert),(t.customCertificates.minio||t.customCertificates.client||t.customCertificates.minioCAs)&&(A(!0),v(!0)),G(t.customCertificates.minio||[]),D(t.customCertificates.client||[]),L(t.customCertificates.minioCAs||[]),e((0,h.Be)(t.securityContext.runAsGroup)),e((0,h.wT)(t.securityContext.runAsUser)),e((0,h.FP)(t.securityContext.fsGroup)),e((0,h.vM)(t.securityContext.runAsNonRoot)),e((0,h.rR)(t.securityContext.fsGroupChangePolicy))})).catch((t=>{e((0,c.Ih)(t))}))}),[t,e]);(0,i.useEffect)((()=>{t&&H()}),[t,H]);const K=e=>{w([...N,e.name]);const t=_.filter((t=>t.name!==e.name)),n=B.filter((t=>t.name!==e.name)),i=z.filter((t=>t.name!==e.name));G(t),D(n),L(i)},Y=(e,t,n,i,s)=>{let a=I,r=()=>{};switch(e){case"minio":a=I,r=R;break;case"client":a=T,r=Z;break;case"minioCAs":a=E,r=F}r(a.map((e=>e.id===t?{...e,[n]:i,["encoded_".concat(n)]:s}:e)))},q=(e,t)=>{let n=I,i=()=>{};switch(e){case"minio":n=I,i=R;break;case"client":n=T,i=Z;break;case"minioCAs":n=E,i=F}if(n.length>1){i(n.filter((e=>e.id!==t)))}},X=e=>{let t=I,n=()=>{};switch(e){case"minio":t=I,n=R;break;case"client":t=T,n=Z;break;case"minioCAs":t=E,n=F}n([...t,{id:Date.now().toString(),key:"",cert:"",encoded_key:"",encoded_cert:""}])};return(0,x.jsxs)(i.Fragment,{children:[(0,x.jsx)(d.Z,{title:"Save and Restart",confirmText:"Restart",cancelText:"Cancel",titleIcon:(0,x.jsx)(a.EjK,{}),isLoading:f,onClose:()=>C(!1),isOpen:g,onConfirm:()=>{j(!0);let n={autoCert:b,customCertificates:{},securityContext:{runAsGroup:P,runAsUser:U,runAsNonRoot:W,fsGroup:O,fsGroupChangePolicy:M}};n.customCertificates=k?{secretsToBeDeleted:N,minioServerCertificates:I.map((e=>({crt:e.encoded_cert,key:e.encoded_key}))).filter((e=>e.crt&&e.key)),minioClientCertificates:T.map((e=>({crt:e.encoded_cert,key:e.encoded_key}))).filter((e=>e.crt&&e.key)),minioCAsCertificates:E.map((e=>e.encoded_cert)).filter((e=>e))}:{secretsToBeDeleted:[..._.map((e=>e.name)),...B.map((e=>e.name)),...z.map((e=>e.name))],minioServerCertificates:[],minioClientCertificates:[],minioCAsCertificates:[]},l.Z.invoke("POST","/api/v1/namespaces/".concat(null===t||void 0===t?void 0:t.namespace,"/tenants/").concat(null===t||void 0===t?void 0:t.name,"/security"),n).then((()=>{j(!1),C(!1),R([{cert:"",encoded_cert:"",encoded_key:"",id:Date.now().toString(),key:""}]),Z([{cert:"",encoded_cert:"",encoded_key:"",id:Date.now().toString(),key:""}]),F([{cert:"",encoded_cert:"",encoded_key:"",id:Date.now().toString(),key:""}]),H()})).catch((t=>{e((0,c.Ih)(t)),j(!1)}))},confirmationContent:(0,x.jsx)(i.Fragment,{children:"Are you sure you want to save the changes and restart the service?"})}),n?(0,x.jsx)(a.xuv,{sx:{textAlign:"center"},children:(0,x.jsx)(a.aNw,{})}):(0,x.jsxs)(i.Fragment,{children:[(0,x.jsx)(a.xuv,{children:(0,x.jsx)(a.NZf,{separator:!0,sx:{marginBottom:15},children:"Security"})}),(0,x.jsxs)(a.ltY,{withBorders:!1,containerPadding:!1,sx:{"& .minioCertificateRows":{display:"flex",alignItems:"center",justifyContent:"flex-start",padding:5,"& .inputItem":{marginBottom:0},"&:last-child":{borderBottom:0},"@media (max-width: 900px)":{flex:1}},"& .overlayAction":{marginLeft:10},"& .rowActions":{display:"flex",justifyContent:"flex-end","@media (max-width: 900px)":{flex:1}}},children:[(0,x.jsx)(a.rsf,{value:"enableTLS",id:"enableTLS",name:"enableTLS",checked:y,onChange:e=>{const t=e.target.checked;v(t)},label:"TLS",description:"Securing all the traffic using TLS. This is required for Encryption Configuration"}),y&&(0,x.jsxs)(i.Fragment,{children:[(0,x.jsx)(a.rsf,{value:"enableAutoCert",id:"enableAutoCert",name:"enableAutoCert",checked:b,onChange:e=>{const t=e.target.checked;S(t)},label:"AutoCert",description:"The internode certificates will be generated and managed by MinIO Operator"}),(0,x.jsx)(a.rsf,{value:"enableCustomCerts",id:"enableCustomCerts",name:"enableCustomCerts",checked:k,onChange:e=>{const t=e.target.checked;A(t)},label:"Custom Certificates",description:"Certificates used to terminated TLS at MinIO"}),k&&(0,x.jsxs)(i.Fragment,{children:[!b&&(0,x.jsx)(a.rjZ,{item:!0,xs:12,children:(0,x.jsx)(p.Z,{})}),(0,x.jsx)(a.rjZ,{item:!0,xs:12,className:"inputItem",children:(0,x.jsx)("h5",{children:"MinIO Server Certificates"})}),(0,x.jsx)(a.rjZ,{item:!0,xs:12,children:_.map((e=>(0,x.jsx)(m.Z,{certificateInfo:e,onDelete:()=>K(e)})))}),(0,x.jsx)(a.rjZ,{item:!0,xs:12,children:I.map(((e,t)=>(0,x.jsxs)(a.rjZ,{item:!0,xs:12,className:"minioCertificateRows",children:[(0,x.jsx)(a.F5R,{onChange:(t,n,i)=>{i&&Y("minio",e.id,"cert",n,i)},accept:".cer,.crt,.cert,.pem",id:"tlsCert",name:"tlsCert",label:"Cert",value:e.cert,returnEncodedData:!0}),(0,x.jsx)(a.F5R,{onChange:(t,n,i)=>{i&&Y("minio",e.id,"key",n,i)},accept:".key,.pem",id:"tlsKey",name:"tlsKey",label:"Key",value:e.key,returnEncodedData:!0}),(0,x.jsxs)(a.rjZ,{item:!0,xs:2,className:"rowActions",children:[(0,x.jsx)("div",{className:"overlayAction",children:(0,x.jsx)(a.hU,{size:"small",onClick:()=>X("minio"),disabled:t!==I.length-1,children:(0,x.jsx)(a.dtP,{})})}),(0,x.jsx)("div",{className:"overlayAction",children:(0,x.jsx)(a.hU,{size:"small",onClick:()=>q("minio",e.id),disabled:I.length<=1,children:(0,x.jsx)(a.HFL,{})})})]})]},e.id)))}),(0,x.jsx)(a.rjZ,{item:!0,xs:12,className:"inputItem",children:(0,x.jsx)("h5",{children:"MinIO Client Certificates"})}),(0,x.jsx)(a.rjZ,{item:!0,xs:12,children:B.map((e=>(0,x.jsx)(m.Z,{certificateInfo:e,onDelete:()=>K(e)})))}),(0,x.jsx)(a.rjZ,{item:!0,xs:12,className:"inputItem",children:T.map(((e,t)=>(0,x.jsxs)(a.rjZ,{item:!0,xs:12,className:"minioCertificateRows",children:[(0,x.jsx)(a.F5R,{onChange:(t,n,i)=>{i&&Y("client",e.id,"cert",n,i)},accept:".cer,.crt,.cert,.pem",id:"tlsCert",name:"tlsCert",label:"Cert",value:e.cert,returnEncodedData:!0}),(0,x.jsx)(a.F5R,{onChange:(t,n,i)=>{i&&Y("client",e.id,"key",n,i)},accept:".key,.pem",id:"tlsKey",name:"tlsKey",label:"Key",value:e.key,returnEncodedData:!0}),(0,x.jsxs)(a.rjZ,{item:!0,xs:2,className:"rowActions",children:[(0,x.jsx)("div",{className:"overlayAction",children:(0,x.jsx)(a.hU,{size:"small",onClick:()=>X("client"),disabled:t!==T.length-1,children:(0,x.jsx)(a.dtP,{})})}),(0,x.jsx)("div",{className:"overlayAction",children:(0,x.jsx)(a.hU,{size:"small",onClick:()=>q("client",e.id),disabled:T.length<=1,children:(0,x.jsx)(a.HFL,{})})})]})]},e.id)))}),(0,x.jsx)(a.rjZ,{item:!0,xs:12,children:(0,x.jsx)("h5",{children:"MinIO CA Certificates"})}),(0,x.jsx)(a.rjZ,{item:!0,xs:12,children:z.map((e=>(0,x.jsx)(m.Z,{certificateInfo:e,onDelete:()=>K(e)})))}),(0,x.jsx)(a.rjZ,{item:!0,xs:12,children:E.map(((e,t)=>(0,x.jsxs)(a.rjZ,{item:!0,xs:12,className:"minioCertificateRows",children:[(0,x.jsx)(a.rjZ,{item:!0,xs:10,children:(0,x.jsx)(a.F5R,{onChange:(t,n,i)=>{i&&Y("minioCAs",e.id,"cert",n,i)},accept:".cer,.crt,.cert,.pem",id:"tlsCert",name:"tlsCert",label:"Cert",value:e.cert,returnEncodedData:!0})}),(0,x.jsx)(a.rjZ,{item:!0,xs:2,children:(0,x.jsxs)("div",{className:"rowActions",children:[(0,x.jsx)("div",{className:"overlayAction",children:(0,x.jsx)(a.hU,{size:"small",onClick:()=>X("minioCAs"),disabled:t!==E.length-1,children:(0,x.jsx)(a.dtP,{})})}),(0,x.jsx)("div",{className:"overlayAction",children:(0,x.jsx)(a.hU,{size:"small",onClick:()=>q("minioCAs",e.id),disabled:E.length<=1,children:(0,x.jsx)(a.HFL,{})})})]})})]},e.id)))})]})]}),(0,x.jsx)(a.rjZ,{item:!0,xs:12,className:"inputItem",children:(0,x.jsx)(a.NZf,{separator:!0,children:"Security Context"})}),(0,x.jsx)(a.rjZ,{item:!0,xs:12,className:"inputItem",children:(0,x.jsx)(u,{runAsGroup:P,runAsUser:U,fsGroup:O,runAsNonRoot:W,fsGroupChangePolicy:M,setFSGroup:t=>e((0,h.FP)(t)),setRunAsUser:t=>e((0,h.wT)(t)),setRunAsGroup:t=>e((0,h.Be)(t)),setRunAsNonRoot:t=>e((0,h.vM)(t)),setFSGroupChangePolicy:t=>e((0,h.rR)(t))})}),(0,x.jsx)(a.rjZ,{item:!0,xs:12,sx:r.I.modalButtonBar,children:(0,x.jsx)(a.zxk,{id:"save-security",type:"submit",variant:"callAction",disabled:g||f,onClick:()=>C(!0),label:"Save"})})]})]})]})}}}]); -//# sourceMappingURL=332.577d2d47.chunk.js.map \ No newline at end of file diff --git a/web-app/build/static/js/350.8e4c2698.chunk.js b/web-app/build/static/js/350.8e4c2698.chunk.js deleted file mode 100644 index 5b7678daab8..00000000000 --- a/web-app/build/static/js/350.8e4c2698.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[350],{9505:(e,t,n)=>{n.d(t,{Z:()=>l});var a=n(2791),s=n(1207);const l=(e,t)=>{const[n,l]=(0,a.useState)(!1);return[n,(n,a,r,o)=>{l(!0),s.Z.invoke(n,a,r,o).then((t=>{l(!1),e(t)})).catch((e=>{l(!1),t(e)}))}]}},8350:(e,t,n)=>{n.r(t),n.d(t,{default:()=>d});var a=n(2791),s=n(9945),l=n(7995),r=n(1320),o=n(9505),i=n(3508),c=n(184);const d=e=>{let{deleteOpen:t,selectedTenant:n,closeDeleteModalAndRefresh:d}=e;const m=(0,r.TL)(),[p,u]=(0,a.useState)(""),[h,x]=(0,a.useState)(!1),[j,v]=(0,o.Z)((()=>d(!0)),(e=>m((0,l.Ih)(e))));return(0,c.jsx)(i.Z,{title:"Delete Tenant",confirmText:"Delete",isOpen:t,titleIcon:(0,c.jsx)(s.NvT,{}),isLoading:j,onConfirm:()=>{p===n.name?v("DELETE","/api/v1/namespaces/".concat(n.namespace,"/tenants/").concat(n.name),{delete_pvcs:h}):(0,l.Ih)({errorMessage:"Tenant name is incorrect",detailedError:""})},onClose:()=>d(!1),confirmButtonProps:{disabled:p!==n.name||j},confirmationContent:(0,c.jsxs)(s.ltY,{withBorders:!1,containerPadding:!1,children:[h&&(0,c.jsx)(s.rjZ,{item:!0,xs:12,className:"inputItem",children:(0,c.jsx)(s.J6i,{variant:"error",title:"WARNING",message:"Delete Volumes: Data will be permanently deleted. Please proceed with caution."})}),"To continue please type ",(0,c.jsx)("b",{children:n.name})," in the box.",(0,c.jsxs)(s.rjZ,{item:!0,xs:12,children:[(0,c.jsx)(s.Wzg,{id:"retype-tenant",name:"retype-tenant",onChange:e=>{u(e.target.value)},label:"",value:p}),(0,c.jsx)(s.rsf,{checked:h,id:"delete-volumes",label:"Delete Volumes",name:"delete-volumes",onChange:()=>{x(!h)}})]})]})})}}}]); -//# sourceMappingURL=350.8e4c2698.chunk.js.map \ No newline at end of file diff --git a/web-app/build/static/js/353.f19ed86f.chunk.js b/web-app/build/static/js/353.f19ed86f.chunk.js deleted file mode 100644 index b5807e27514..00000000000 --- a/web-app/build/static/js/353.f19ed86f.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[353],{3814:(e,n,t)=>{t.d(n,{I:()=>a,O:()=>i});const i={label:{color:"#07193E",fontSize:13,alignSelf:"center",whiteSpace:"nowrap","&:not(:first-of-type)":{marginLeft:10}},actionsTray:{display:"flex",justifyContent:"space-between",marginBottom:"1rem",alignItems:"center","& button":{flexGrow:0,marginLeft:8}}},a={modalButtonBar:{marginTop:15,display:"flex",alignItems:"center",justifyContent:"flex-end","& button":{marginRight:10},"& button:last-child":{marginRight:0}},modalFormScrollable:{maxHeight:"calc(100vh - 300px)",overflowY:"auto",paddingTop:10}}},6028:(e,n,t)=>{t.d(n,{Z:()=>c});var i=t(2791),a=t(9434),l=t(9945),s=t(1320),o=t(7995),r=t(8057),d=t(184);const c=e=>{let{onClose:n,modalOpen:t,title:c,children:u,wideLimit:v=!0,titleIcon:m=null,iconColor:x="default",sx:g}=e;const h=(0,s.TL)(),[p,j]=(0,i.useState)(!1),f=(0,a.v9)((e=>e.system.modalSnackBar));(0,i.useEffect)((()=>{h((0,o.MK)(""))}),[h]),(0,i.useEffect)((()=>{if(f){if(""===f.message)return void j(!1);"error"!==f.type&&j(!0)}}),[f]);let b="";return f&&(b=f.detailedErrorMsg,(""===f.detailedErrorMsg||f.detailedErrorMsg.length<5)&&(b=f.message)),(0,d.jsxs)(l.cFD,{onClose:n,open:t,title:c,titleIcon:m,widthLimit:v,sx:g,iconColor:x,children:[(0,d.jsx)(r.Z,{isModal:!0}),(0,d.jsx)(l.A9Q,{onClose:()=>{j(!1),h((0,o.MK)(""))},open:p,message:b,mode:"inline",variant:"error"===f.type?"error":"default",autoHideDuration:"error"===f.type?10:5,condensed:!0}),u]})}},4815:(e,n,t)=>{t.d(n,{Z:()=>m});t(2791);var i=t(9945),a=t(2600),l=t(5390),s=t(1048),o=t(5248),r=t(184);const d=e=>{let{totalValue:n,sizeItems:t,bgColor:i="#ededed"}=e;return(0,r.jsx)("div",{style:{width:"100%",height:12,backgroundColor:i,borderRadius:30,display:"flex",transitionDuration:"0.3s",overflow:"hidden"},children:t.map(((e,t)=>{const i=100*e.value/n;return(0,r.jsx)("div",{style:{width:"".concat(i,"%"),height:"100%",backgroundColor:e.color,transitionDuration:"0.3s"}},"itemSize-".concat(t.toString()))}))})};var c=t(6444),u=t(6181),v=t.n(u);const m=e=>{let{totalCapacity:n,usedSpaceVariants:t,statusClass:u,render:m="pie"}=e;const x=["#8dacd3","#bca1ea","#92e8d2","#efc9ac","#97f274","#f7d291","#71ACCB","#f28282","#e28cc1","#2781B0"],g=(0,c.Fg)(),h="".concat(v()(g,"borderColor","#ededed"),"70"),p=t.reduce(((e,n)=>e+n.value),0),j=n-p;let f=[];const b=t.find((e=>"STANDARD"===e.variant))||{value:0,variant:"empty"};if(t.length>10){f=[{value:p-b.value,color:"#2781B0",label:"Total Tiers Space"}]}else f=t.filter((e=>"STANDARD"!==e.variant)).map(((e,n)=>({value:e.value,color:x[n],label:"Tier - ".concat(e.variant)})));let y=v()(g,"signalColors.main","#07193E");const k=100*b.value/n;k>=90?y=v()(g,"signalColors.danger","#C83B51"):k>=75&&(y=v()(g,"signalColors.warning","#FFAB0F"));const w=[{value:b.value,color:y,label:"Used Space by Tenant"},...f,{value:j,color:"bar"===m?h:"transparent",label:"Empty Space"}];if("bar"===m){const e=w.map((e=>({value:e.value,color:e.color,itemName:e.label})));return(0,r.jsx)("div",{style:{width:"100%",marginBottom:15},children:(0,r.jsx)(d,{totalValue:n,sizeItems:e,bgColor:h})})}return(0,r.jsxs)("div",{style:{position:"relative",width:110,height:110},children:[(0,r.jsx)("div",{style:{position:"absolute",right:-5,top:15,zIndex:400},className:u,children:(0,r.jsx)(i.J$M,{style:{border:"#fff 2px solid",borderRadius:"100%",width:20,height:20}})}),(0,r.jsx)("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",fontWeight:"bold",fontSize:11},children:isNaN(p)?"N/A":(0,o.l5)(p)}),(0,r.jsx)("div",{children:(0,r.jsxs)(a.u,{width:110,height:110,children:[(0,r.jsx)(l.b,{data:[{value:100}],cx:"50%",cy:"50%",dataKey:"value",outerRadius:50,innerRadius:40,fill:h,isAnimationActive:!1,stroke:"none"}),(0,r.jsx)(l.b,{data:w,cx:"50%",cy:"50%",dataKey:"value",outerRadius:50,innerRadius:40,children:w.map(((e,n)=>(0,r.jsx)(s.b,{fill:e.color,stroke:"none"},"cellCapacity-".concat(n))))})]})})]})}},1353:(e,n,t)=>{t.r(n),t.d(n,{default:()=>I});var i=t(2791),a=t(9434),l=t(9945),s=t(6181),o=t.n(s),r=t(6444),d=t(3814),c=t(7995),u=t(1320),v=t(6028),m=t(1207),x=t(184);const g=e=>{let{open:n,closeModalAndRefresh:t,namespace:a,idTenant:s}=e;const o=(0,u.TL)(),[r,g]=(0,i.useState)(!1),[h,p]=(0,i.useState)(""),[j,f]=(0,i.useState)(!1),[b,y]=(0,i.useState)(""),[k,w]=(0,i.useState)(""),[S,C]=(0,i.useState)(""),[A,I]=(0,i.useState)(!0),E=(0,i.useCallback)((e=>{const n=new RegExp("^$|^((.*?)/(.*?):(.+))$");if("minioImage"===e)I(n.test(h))}),[h]);(0,i.useEffect)((()=>{E("minioImage")}),[h,E]);return(0,x.jsx)(v.Z,{title:"Update MinIO Version",modalOpen:n,onClose:()=>{t(!1)},children:(0,x.jsx)(l.ltY,{withBorders:!1,containerPadding:!1,children:(0,x.jsxs)(l.xuv,{children:[(0,x.jsx)(l.xuv,{sx:{fontSize:14},children:"Please enter the MinIO image from dockerhub to use. If blank, then latest build will be used."}),(0,x.jsx)("br",{}),(0,x.jsx)(l.Wzg,{value:h,label:"MinIO's Image",id:"minioImage",name:"minioImage",placeholder:"E.g. minio/minio:RELEASE.2022-02-26T02-54-46Z",onChange:e=>{p(e.target.value)}}),(0,x.jsx)(l.rsf,{value:"imageRegistry",id:"setImageRegistry",name:"setImageRegistry",checked:j,onChange:e=>{f(!j)},label:"Set Custom Image Registry",indicatorLabels:["Yes","No"]}),j&&(0,x.jsxs)(i.Fragment,{children:[(0,x.jsx)(l.Wzg,{value:b,label:"Endpoint",id:"imageRegistry",name:"imageRegistry",placeholder:"E.g. https://index.docker.io/v1/",onChange:e=>{y(e.target.value)}}),(0,x.jsx)(l.Wzg,{value:k,label:"Username",id:"imageRegistryUsername",name:"imageRegistryUsername",placeholder:"Enter image registry username",onChange:e=>{w(e.target.value)}}),(0,x.jsx)(l.Wzg,{value:S,label:"Password",id:"imageRegistryPassword",name:"imageRegistryPassword",placeholder:"Enter image registry password",onChange:e=>{C(e.target.value)}})]}),(0,x.jsxs)(l.xuv,{sx:d.I.modalButtonBar,children:[(0,x.jsx)(l.zxk,{id:"clear",variant:"regular",onClick:()=>{p(""),f(!1),y(""),w(""),C("")},label:"Clear"}),(0,x.jsx)(l.zxk,{id:"save-tenant",type:"submit",variant:"callAction",disabled:!A||j&&(""===b.trim()||""===k.trim()||""===S.trim())||r,onClick:()=>{g(!0);let e={image:h};if(j){const n={image_registry:{registry:b,username:k,password:S}};e={...e,...n}}m.Z.invoke("PUT","/api/v1/namespaces/".concat(a,"/tenants/").concat(s),e).then((()=>{g(!1),o((0,c.y1)("Image updated successfully")),t(!0)})).catch((e=>{o((0,c.zb)(e)),g(!1)}))},label:"Save"})]})]})})})};var h=t(7689),p=t(2295),j=t(5248),f=t(4815);const b=r.ZP.div((e=>{let{theme:n}=e;return{width:"100%","& .tenantStatus":{marginTop:2,color:o()(n,"signalColors.disabled","#E6EBEB"),"& .min-icon":{width:16,height:16,marginRight:4},"&.red":{color:o()(n,"signalColors.danger","#C51B3F")},"&.yellow":{color:o()(n,"signalColors.warning","#FFBD62")},"&.green":{color:o()(n,"signalColors.good","#4CCB92")}}}})),y=e=>{var n,t,a,s,o,r;let{tenant:d,healthStatus:c,loading:u,error:v}=e,m={value:"n/a",unit:""},g={value:"n/a",unit:""},h={value:"n/a",unit:""},p={value:"n/a",unit:""},y={value:"n/a",unit:""};if(null!==(n=d.status)&&void 0!==n&&null!==(t=n.usage)&&void 0!==t&&t.raw){const e=(0,j.ae)("".concat(d.status.usage.raw),!0).split(" ");m.value=e[0],m.unit=e[1]}if(null!==(a=d.status)&&void 0!==a&&null!==(s=a.usage)&&void 0!==s&&s.capacity){const e=(0,j.ae)("".concat(d.status.usage.capacity),!0).split(" ");g.value=e[0],g.unit=e[1]}if(null!==(o=d.status)&&void 0!==o&&null!==(r=o.usage)&&void 0!==r&&r.capacity_usage){const e=(0,j.l5)(d.status.usage.capacity_usage,!0).split(" ");h.value=e[0],h.unit=e[1]}let k=[];if(d.tiers&&0!==d.tiers.length){k=d.tiers.map((e=>({value:e.size,variant:e.name})));let e=d.tiers.filter((e=>"internal"===e.type)).reduce(((e,n)=>e+n.size),0),n=d.tiers.filter((e=>"internal"!==e.type)).reduce(((e,n)=>e+n.size),0);const t=(0,j.l5)(n,!0).split(" ");y.value=t[0],y.unit=t[1];const i=(0,j.l5)(e,!0).split(" ");p.value=i[0],p.unit=i[1]}else{var w,S;k=[{value:(null===(w=d.status)||void 0===w||null===(S=w.usage)||void 0===S?void 0:S.capacity_usage)||0,variant:"STANDARD"}]}return(0,x.jsxs)(i.Fragment,{children:[u&&(0,x.jsx)("div",{style:{padding:5},children:(0,x.jsx)(l.rjZ,{item:!0,xs:12,style:{textAlign:"center"},children:(0,x.jsx)(l.aNw,{style:{width:40,height:40}})})}),(()=>{var e,n;return u?null:""!==v?(0,x.jsx)(l.J6i,{title:"Error",message:v,variant:"error"}):(0,x.jsxs)(b,{children:[(0,x.jsx)(f.Z,{totalCapacity:(null===(e=d.status)||void 0===e||null===(n=e.usage)||void 0===n?void 0:n.raw)||0,usedSpaceVariants:k,statusClass:"",render:"bar"}),(0,x.jsxs)(l.xuv,{sx:{display:"flex",alignItems:"stretch",margin:"0 0 15px 0",flexDirection:"row",gap:20,["@media (max-width: ".concat(l.Egj.sm,"px)")]:{flexDirection:"column",gap:5},["@media (max-width: ".concat(l.Egj.md,"px)")]:{gap:15}},children:[(!d.tiers||0===d.tiers.length)&&(0,x.jsx)(i.Fragment,{children:(0,x.jsx)(l.kKA,{label:"Internal:",direction:"row",value:"".concat(h.value," ").concat(h.unit)})}),d.tiers&&d.tiers.length>0&&(0,x.jsxs)(i.Fragment,{children:[(0,x.jsx)(l.kKA,{label:"Internal:",direction:"row",value:"".concat(p.value," ").concat(p.unit)}),(0,x.jsx)(l.kKA,{label:"Tiered:",direction:"row",value:"".concat(y.value," ").concat(y.unit)})]}),c&&(0,x.jsx)(l.kKA,{direction:"row",label:"Health:",value:(0,x.jsx)("div",{className:"tenantStatus ".concat(c),children:(0,x.jsx)(l.J$M,{})})})]})]})})()]})},k=e=>{let{open:n,closeModalAndRefresh:t,namespace:a,idTenant:s,domains:o}=e;const r=(0,u.TL)(),[g,h]=(0,i.useState)(!1),[p,j]=(0,i.useState)(""),[f,b]=(0,i.useState)([""]),[y,k]=(0,i.useState)(!0),[w,S]=(0,i.useState)([!0]);(0,i.useEffect)((()=>{if(o){const e=o.console||"";if(j(e),""!==e){const n=new RegExp(/^(https?):\/\/([a-zA-Z0-9\-.]+)(:[0-9]+)?(\/[a-zA-Z0-9\-./]*)?$/);k(n.test(e))}else k(!0);if(o.minio&&o.minio.length>0){b(o.minio);const e=new RegExp(/^(https?):\/\/([a-zA-Z0-9\-.]+)(:[0-9]+)?$/),n=o.minio.map((n=>""===n.trim()||e.test(n)));S(n)}}}),[o]);const C=()=>{const e=[...f],n=[...w];e.push(""),n.push(!0),b(e),S(n)};return(0,x.jsx)(v.Z,{title:"Edit Tenant Domains - ".concat(s),modalOpen:n,onClose:()=>{t(!1)},children:(0,x.jsxs)(l.xuv,{sx:d.I.modalFormScrollable,children:[(0,x.jsxs)(l.ltY,{withBorders:!1,containerPadding:!1,children:[(0,x.jsx)(l.Wzg,{id:"console_domain",name:"console_domain",onChange:e=>{j(e.target.value),k(e.target.validity.valid)},label:"Console Domain",value:p,placeholder:"Eg. http://subdomain.domain:port/subpath1/subpath2",pattern:"^(https?):\\/\\/([a-zA-Z0-9\\-.]+)(:[0-9]+)?(\\/[a-zA-Z0-9\\-.\\/]*)?$",error:y?"":"Domain format is incorrect (http|https://subdomain.domain:port/subpath1/subpath2)"}),(0,x.jsx)("h4",{children:"MinIO Domains"}),(0,x.jsx)("div",{children:f.map(((e,n)=>(0,x.jsxs)(l.xuv,{sx:{display:"flex",gap:10},children:[(0,x.jsx)(l.Wzg,{id:"minio-domain-".concat(n.toString()),name:"minio-domain-".concat(n.toString()),onChange:e=>{((e,n)=>{const t=[...f];t[n]=e,b(t)})(e.target.value,n),((e,n)=>{const t=[...w];t[n]=e,S(t)})(e.target.validity.valid,n)},label:"MinIO Domain ".concat(n+1),value:e,placeholder:"Eg. http://subdomain.domain",pattern:"^(https?):\\/\\/([a-zA-Z0-9\\-.]+)(:[0-9]+)?$",error:w[n]?"":"MinIO domain format is incorrect (http|https://subdomain.domain)"}),(0,x.jsxs)(l.xuv,{sx:{display:"flex",alignItems:"center",gap:10,marginBottom:12},children:[(0,x.jsx)(l.hU,{size:"small",onClick:C,disabled:n!==f.length-1,children:(0,x.jsx)(l.dtP,{})}),(0,x.jsx)(l.hU,{size:"small",onClick:()=>(e=>{const n=f.filter(((n,t)=>t!==e)),t=w.filter(((n,t)=>t!==e));b(n),S(t)})(n),disabled:f.length<=1,children:(0,x.jsx)(l.HFL,{})})]})]},"minio-domain-key-".concat(n.toString()))))})]}),(0,x.jsxs)(l.xuv,{sx:d.I.modalButtonBar,children:[(0,x.jsx)(l.zxk,{id:"clear-edit-domain",type:"button",variant:"regular",onClick:()=>{j(""),k(!0),b([""]),S([!0])},label:"Clear"}),(0,x.jsx)(l.zxk,{id:"save-domain",type:"submit",variant:"callAction",disabled:g||!y||w.filter((e=>!e)).length>0,onClick:()=>{h(!0);let e={domains:{console:p,minio:f.filter((e=>""!==e.trim()))}};m.Z.invoke("PUT","/api/v1/namespaces/".concat(a,"/tenants/").concat(s,"/domains"),e).then((()=>{h(!1),r((0,c.y1)("Domains updated successfully")),t(!0)})).catch((e=>{h(!1),r((0,c.zb)(e))}))},label:"Save"})]})]})})},w=r.ZP.div((e=>{let{theme:n}=e;return{"& .linkedSection":{color:o()(n,"linkColor","#2781B0"),fontFamily:"'Inter', sans-serif"},"& .autoGeneratedLink":{fontStyle:"italic"}}})),S=e=>{var n;let{tenant:t}=e;return t?(0,x.jsx)(y,{tenant:t,label:"Storage",error:"",loading:!1,healthStatus:null===t||void 0===t||null===(n=t.status)||void 0===n?void 0:n.health_status}):null},C=function(e){return e?(0,x.jsx)(l.Yp9,{}):(0,x.jsx)(l.cmQ,{style:{color:"grey"}})},A={display:"flex",justifyContent:"space-between",marginTop:"10px","@media (max-width: 600px)":{flexFlow:"column"}},I=()=>{var e,n,t,s,r,d,c,v,m,j,f,b,y,I,E,R,Z,z,T,D,B,F,K,M;const _=(0,u.TL)(),{tenantName:N,tenantNamespace:O}=(0,h.UO)(),L=(0,a.v9)((e=>e.tenants.tenantInfo)),P=(0,a.v9)((e=>o()(e.tenants.tenantInfo,"encryptionEnabled",!1))),U=(0,a.v9)((e=>o()(e.tenants.tenantInfo,"minioTLS",!1))),W=(0,a.v9)((e=>o()(e.tenants.tenantInfo,"idpAdEnabled",!1))),$=(0,a.v9)((e=>o()(e.tenants.tenantInfo,"idpOidcEnabled",!1))),[Y,V]=(0,i.useState)(0),[G,H]=(0,i.useState)(0),[J,Q]=(0,i.useState)(0),[q,X]=(0,i.useState)(!1),[ee,ne]=(0,i.useState)(!1);(0,i.useEffect)((()=>{var e,n,t;L&&(V((null===L||void 0===L||null===(e=L.pools)||void 0===e?void 0:e.length)||0),Q((null===(n=L.pools)||void 0===n?void 0:n.reduce(((e,n)=>e+n.volumes_per_server*n.servers),0))||0),H((null===(t=L.pools)||void 0===t?void 0:t.reduce(((e,n)=>e+n.servers),0))||0))}),[L]);return(0,x.jsxs)(i.Fragment,{children:[q&&(0,x.jsx)(g,{open:q,closeModalAndRefresh:e=>{X(!1),e&&_((0,p.v)())},idTenant:N||"",namespace:O||""}),ee&&(0,x.jsx)(k,{open:ee,idTenant:N||"",namespace:O||"",domains:(null===L||void 0===L?void 0:L.domains)||null,closeModalAndRefresh:e=>{ne(!1),e&&_((0,p.v)())}}),(0,x.jsx)(l.NZf,{separator:!1,children:"Details"}),(0,x.jsx)(S,{tenant:L}),(0,x.jsx)(w,{children:(0,x.jsxs)(l.rjZ,{container:!0,children:[(0,x.jsxs)(l.rjZ,{item:!0,xs:12,sm:12,md:8,children:[(0,x.jsx)(l.rjZ,{item:!0,xs:12,children:(0,x.jsx)(l.kKA,{label:"State:",value:null===L||void 0===L?void 0:L.currentState})}),(0,x.jsx)(l.rjZ,{item:!0,xs:12,children:(0,x.jsx)(l.kKA,{label:"MinIO:",value:(0,x.jsx)(l.vmT,{sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"normal",wordBreak:"break-all"},onClick:()=>{X(!0)},children:L?L.image:""})})}),(0,x.jsx)(l.rjZ,{item:!0,xs:12,children:(0,x.jsxs)("h3",{children:["Domains",(0,x.jsx)(l.zxk,{id:"edit-domains",icon:(0,x.jsx)(l.dY8,{}),onClick:()=>{ne(!0)}})]})}),(0,x.jsx)(l.rjZ,{item:!0,xs:12,children:(0,x.jsx)(l.kKA,{label:"Console:",value:(0,x.jsxs)(i.Fragment,{children:[null!==L&&void 0!==L&&null!==(e=L.domains)&&void 0!==e&&e.console&&""!==(null===L||void 0===L||null===(n=L.domains)||void 0===n?void 0:n.console)||null!==L&&void 0!==L&&null!==(t=L.endpoints)&&void 0!==t&&t.console?"":"-",(null===L||void 0===L||null===(s=L.endpoints)||void 0===s?void 0:s.console)&&(0,x.jsxs)(i.Fragment,{children:[(0,x.jsx)("a",{href:null===L||void 0===L||null===(r=L.endpoints)||void 0===r?void 0:r.console,target:"_blank",rel:"noopener",className:"linkedSection autoGeneratedLink",children:(null===L||void 0===L||null===(d=L.endpoints)||void 0===d?void 0:d.console)||"-"}),(0,x.jsx)("br",{})]}),(null===L||void 0===L||null===(c=L.domains)||void 0===c?void 0:c.console)&&""!==(null===L||void 0===L||null===(v=L.domains)||void 0===v?void 0:v.console)&&(0,x.jsx)("a",{href:(null===L||void 0===L||null===(m=L.domains)||void 0===m?void 0:m.console)||"",target:"_blank",rel:"noopener",className:"linkedSection",children:(null===L||void 0===L||null===(j=L.domains)||void 0===j?void 0:j.console)||""})]})})}),(0,x.jsx)(l.rjZ,{item:!0,xs:12,children:(0,x.jsx)(l.kKA,{label:"MinIO Endpoint".concat(null!==L&&void 0!==L&&null!==(f=L.endpoints)&&void 0!==f&&f.minio&&1===(null===L||void 0===L||null===(b=L.endpoints)||void 0===b?void 0:b.minio.length)?"":"s",":"),value:(0,x.jsxs)(i.Fragment,{children:[null!==L&&void 0!==L&&null!==(y=L.domains)&&void 0!==y&&y.minio||null!==L&&void 0!==L&&null!==(I=L.endpoints)&&void 0!==I&&I.minio?"":"-",(null===L||void 0===L||null===(E=L.endpoints)||void 0===E?void 0:E.minio)&&(0,x.jsxs)(i.Fragment,{children:[(0,x.jsx)("a",{href:null===L||void 0===L||null===(R=L.endpoints)||void 0===R?void 0:R.minio,target:"_blank",rel:"noopener",className:"linkedSection autoGeneratedLink",children:(null===L||void 0===L||null===(Z=L.endpoints)||void 0===Z?void 0:Z.minio)||"-"}),(0,x.jsx)("br",{})]}),(null===L||void 0===L||null===(z=L.domains)||void 0===z?void 0:z.minio)&&L.domains.minio.map((e=>(0,x.jsxs)(i.Fragment,{children:[(0,x.jsx)("a",{href:e,target:"_blank",rel:"noopener",className:"linkedSection",children:e}),(0,x.jsx)("br",{})]},e)))]})})})]}),(0,x.jsxs)(l.rjZ,{item:!0,xs:12,sm:12,md:4,children:[(0,x.jsx)(l.rjZ,{item:!0,xs:12,children:(0,x.jsx)(l.kKA,{label:"Instances:",value:G})}),(0,x.jsx)(l.rjZ,{item:!0,xs:12,children:(0,x.jsx)(l.kKA,{label:"Clusters:",value:Y,sx:{marginRight:47}})}),(0,x.jsx)(l.rjZ,{item:!0,xs:12,children:(0,x.jsx)(l.kKA,{label:"Total Drives:",value:J,sx:{marginRight:43}})}),(0,x.jsx)(l.rjZ,{item:!0,xs:12,children:(0,x.jsx)(l.kKA,{label:"Write Quorum:",value:null!==L&&void 0!==L&&null!==(T=L.status)&&void 0!==T&&T.write_quorum?null===L||void 0===L||null===(D=L.status)||void 0===D?void 0:D.write_quorum:0})}),(0,x.jsx)(l.rjZ,{item:!0,xs:12,children:(0,x.jsx)(l.kKA,{label:"Drives Online:",value:null!==L&&void 0!==L&&null!==(B=L.status)&&void 0!==B&&B.drives_online?null===L||void 0===L||null===(F=L.status)||void 0===F?void 0:F.drives_online:0,sx:{marginRight:8}})}),(0,x.jsx)(l.rjZ,{item:!0,xs:12,children:(0,x.jsx)(l.kKA,{label:"Drives Offline:",value:null!==L&&void 0!==L&&null!==(K=L.status)&&void 0!==K&&K.drives_offline?null===L||void 0===L||null===(M=L.status)||void 0===M?void 0:M.drives_offline:0,sx:{marginRight:7}})})]})]})}),(0,x.jsx)(l.NZf,{separator:!0,children:"Features"}),(0,x.jsxs)(l.xuv,{sx:A,children:[(0,x.jsx)(l.kKA,{direction:"row",label:"MinIO TLS:",value:C(U,"tenant-tls")}),(0,x.jsx)(l.kKA,{direction:"row",label:"AD/LDAP:",value:C(W,"tenant-sts")}),(0,x.jsx)(l.kKA,{direction:"row",label:"Encryption:",value:C(P,"tenant-enc")})]}),(0,x.jsx)(l.xuv,{sx:{...A},children:(0,x.jsx)(l.kKA,{direction:"row",label:"OpenID:",value:C($,"tenant-oidc")})})]})}}}]); -//# sourceMappingURL=353.f19ed86f.chunk.js.map \ No newline at end of file diff --git a/web-app/build/static/js/361.970b063b.chunk.js b/web-app/build/static/js/361.970b063b.chunk.js new file mode 100644 index 00000000000..99f67abf433 --- /dev/null +++ b/web-app/build/static/js/361.970b063b.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[361],{9361:(e,r,t)=>{t.r(r),t.d(r,{default:()=>m});var o=t(5043),a=t(9923),i=t(4574),n=t(3097),s=t.n(n),l=t(3216),c=t(649),d=t(4710),p=t(4558),g=t(579);const h=i.Ay.div((e=>{let{theme:r}=e;return{"& .errorDescription":{fontStyle:"italic",transition:"all .2s ease-in-out",padding:"0 15px",marginTop:5,overflow:"auto"},"& .errorLabel":{color:s()(r,"fontColor","#000"),fontSize:18,fontWeight:"bold",marginLeft:5},"& .simpleError":{marginTop:5,padding:"2px 5px",fontSize:16,color:s()(r,"fontColor","#000")},"& .messageIcon":{color:s()(r,"signalColors.danger","#C72C48"),display:"flex","& svg":{width:32,height:32}},"& .errorTitle":{display:"flex",alignItems:"center",borderBottom:15}}})),m=()=>{const e=(0,l.Zp)(),[r,t]=(0,o.useState)(""),[i,n]=(0,o.useState)(""),[s,m]=(0,o.useState)(!0);return(0,o.useEffect)((()=>{if(s){const r=window.location.search,o=new URLSearchParams(r),a=o.get("code"),i=o.get("state"),s=o.get("error"),l=o.get("errorDescription");s||l?(t(s||""),n(l||""),m(!1)):c.A.invoke("POST","/api/v1/login/oauth2/auth",{code:a,state:i}).then((()=>{let r="/";localStorage.getItem("redirect-path")&&""!==localStorage.getItem("redirect-path")&&(r="".concat(localStorage.getItem("redirect-path")),localStorage.setItem("redirect-path","")),i&&localStorage.setItem("auth-state",i),m(!1),e(r)})).catch((e=>{t(e.errorMessage),n(e.detailedError),m(!1)}))}}),[s,e]),""!==r||""!==i?(0,g.jsx)(o.Fragment,{children:(0,g.jsx)(a.ndn,{logoProps:{applicationName:"operator",subVariant:(0,p.v)()},form:(0,g.jsxs)(h,{children:[(0,g.jsxs)("div",{className:"errorTitle",children:[(0,g.jsx)("span",{className:"messageIcon",children:(0,g.jsx)(a.cJw,{})}),(0,g.jsx)("span",{className:"errorLabel",children:"Error from IDP"})]}),(0,g.jsx)("div",{className:"simpleError",children:r}),(0,g.jsx)(a.azJ,{className:"errorDescription",children:i}),(0,g.jsx)(a.$nd,{id:"back-to-login",onClick:()=>{window.location.href="".concat(d.p,"login")},type:"submit",variant:"callAction",fullWidth:!0,children:"Back to Login"})]}),promoHeader:(0,g.jsx)(o.Fragment,{children:"Multi-Cloud Object\xa0Store"}),promoInfo:(0,g.jsxs)(o.Fragment,{children:["MinIO's high-performance, Kubernetes-native object store is licensed under GNU AGPL v3 and is available on every cloud - public, private and edge. For more information on the terms of the license or to learn more about commercial licensing options visit the"," ",(0,g.jsx)("a",{href:"https://min.io/pricing",children:"pricing page"}),"."]}),backgroundAnimation:!1})}):null}}}]); +//# sourceMappingURL=361.970b063b.chunk.js.map \ No newline at end of file diff --git a/web-app/build/static/js/914.fc49dd65.chunk.js.map b/web-app/build/static/js/361.970b063b.chunk.js.map similarity index 98% rename from web-app/build/static/js/914.fc49dd65.chunk.js.map rename to web-app/build/static/js/361.970b063b.chunk.js.map index aa4d028b6f2..26f0f439818 100644 --- a/web-app/build/static/js/914.fc49dd65.chunk.js.map +++ b/web-app/build/static/js/361.970b063b.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/914.fc49dd65.chunk.js","mappings":"qOAyBA,MAAMA,EAAoBC,EAAAA,GAAOC,KAAIC,IAAA,IAAC,MAAEC,GAAOD,EAAA,MAAM,CACnD,sBAAuB,CACrBE,UAAW,SACXC,WAAY,sBACZC,QAAS,SACTC,UAAW,EACXC,SAAU,QAEZ,gBAAiB,CACfC,MAAOC,IAAIP,EAAO,YAAa,QAC/BQ,SAAU,GACVC,WAAY,OACZC,WAAY,GAEd,iBAAkB,CAChBN,UAAW,EACXD,QAAS,UACTK,SAAU,GACVF,MAAOC,IAAIP,EAAO,YAAa,SAEjC,iBAAkB,CAChBM,MAAOC,IAAIP,EAAO,sBAAuB,WACzCW,QAAS,OACT,QAAS,CACPC,MAAO,GACPC,OAAQ,KAGZ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AA,EAAAA,KAAA,QAAMU,UAAW,cAAcR,UAC7BF,EAAAA,EAAAA,KAACW,EAAAA,IAAQ,OAEXX,EAAAA,EAAAA,KAAA,QAAMU,UAAW,aAAaR,SAAC,uBAEjCF,EAAAA,EAAAA,KAAA,OAAKU,UAAW,cAAcR,SAAE7B,KAChC2B,EAAAA,EAAAA,KAACY,EAAAA,IAAG,CAACF,UAAW,mBAAmBR,SAAE1B,KACrCwB,EAAAA,EAAAA,KAACa,EAAAA,IAAM,CACLC,GAAI,gBACJC,QAASA,KACPjC,OAAOC,SAASiC,KAAI,GAAArB,OAAMsB,EAAAA,EAAO,QAAO,EAE1CC,KAAK,SACLC,QAAQ,aACRC,WAAS,EAAAlB,SACV,qBAKLmB,aAAarB,EAAAA,EAAAA,KAACC,EAAAA,SAAQ,CAAAC,SAAC,gCACvBoB,WACEb,EAAAA,EAAAA,MAACR,EAAAA,SAAQ,CAAAC,SAAA,CAAC,oQAIgD,KACxDF,EAAAA,EAAAA,KAAA,KAAGgB,KAAM,yBAAyBd,SAAC,iBAAgB,OAGvDqB,qBAAqB,MAGvB,IAAI,C","sources":["screens/LoginPage/LoginCallback.tsx"],"sourcesContent":["// This file is part of MinIO Operator\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useEffect, useState } from \"react\";\nimport { Box, Button, LoginWrapper, WarnIcon } from \"mds\";\nimport styled from \"styled-components\";\nimport get from \"lodash/get\";\nimport { useNavigate } from \"react-router-dom\";\nimport api from \"../../common/api\";\nimport { baseUrl } from \"../../history\";\nimport { getLogoVar } from \"../../config\";\n\nconst CallBackContainer = styled.div(({ theme }) => ({\n \"& .errorDescription\": {\n fontStyle: \"italic\",\n transition: \"all .2s ease-in-out\",\n padding: \"0 15px\",\n marginTop: 5,\n overflow: \"auto\",\n },\n \"& .errorLabel\": {\n color: get(theme, \"fontColor\", \"#000\"),\n fontSize: 18,\n fontWeight: \"bold\",\n marginLeft: 5,\n },\n \"& .simpleError\": {\n marginTop: 5,\n padding: \"2px 5px\",\n fontSize: 16,\n color: get(theme, \"fontColor\", \"#000\"),\n },\n \"& .messageIcon\": {\n color: get(theme, \"signalColors.danger\", \"#C72C48\"),\n display: \"flex\",\n \"& svg\": {\n width: 32,\n height: 32,\n },\n },\n \"& .errorTitle\": {\n display: \"flex\",\n alignItems: \"center\",\n borderBottom: 15,\n },\n}));\n\nconst LoginCallback = () => {\n const navigate = useNavigate();\n\n const [error, setError] = useState(\"\");\n const [errorDescription, setErrorDescription] = useState(\"\");\n const [loading, setLoading] = useState(true);\n\n useEffect(() => {\n if (loading) {\n const queryString = window.location.search;\n const urlParams = new URLSearchParams(queryString);\n const code = urlParams.get(\"code\");\n const state = urlParams.get(\"state\");\n const error = urlParams.get(\"error\");\n const errorDescription = urlParams.get(\"errorDescription\");\n if (error || errorDescription) {\n setError(error || \"\");\n setErrorDescription(errorDescription || \"\");\n setLoading(false);\n } else {\n api\n .invoke(\"POST\", \"/api/v1/login/oauth2/auth\", { code, state })\n .then(() => {\n // We push to history the new URL.\n let targetPath = \"/\";\n if (\n localStorage.getItem(\"redirect-path\") &&\n localStorage.getItem(\"redirect-path\") !== \"\"\n ) {\n targetPath = `${localStorage.getItem(\"redirect-path\")}`;\n localStorage.setItem(\"redirect-path\", \"\");\n }\n if (state) {\n localStorage.setItem(\"auth-state\", state);\n }\n setLoading(false);\n navigate(targetPath);\n })\n .catch((error) => {\n setError(error.errorMessage);\n setErrorDescription(error.detailedError);\n setLoading(false);\n });\n }\n }\n }, [loading, navigate]);\n return error !== \"\" || errorDescription !== \"\" ? (\n \n \n
\n \n \n \n Error from IDP\n
\n
{error}
\n {errorDescription}\n {\n window.location.href = `${baseUrl}login`;\n }}\n type=\"submit\"\n variant=\"callAction\"\n fullWidth\n >\n Back to Login\n \n \n }\n promoHeader={Multi-Cloud Object Store}\n promoInfo={\n \n MinIO's high-performance, Kubernetes-native object store is licensed\n under GNU AGPL v3 and is available on every cloud - public, private\n and edge. For more information on the terms of the license or to\n learn more about commercial licensing options visit the{\" \"}\n pricing page.\n \n }\n backgroundAnimation={false}\n />\n
\n ) : null;\n};\n\nexport default LoginCallback;\n"],"names":["CallBackContainer","styled","div","_ref","theme","fontStyle","transition","padding","marginTop","overflow","color","get","fontSize","fontWeight","marginLeft","display","width","height","alignItems","borderBottom","LoginCallback","navigate","useNavigate","error","setError","useState","errorDescription","setErrorDescription","loading","setLoading","useEffect","queryString","window","location","search","urlParams","URLSearchParams","code","state","api","invoke","then","targetPath","localStorage","getItem","concat","setItem","catch","errorMessage","detailedError","_jsx","Fragment","children","LoginWrapper","logoProps","applicationName","subVariant","getLogoVar","form","_jsxs","className","WarnIcon","Box","Button","id","onClick","href","baseUrl","type","variant","fullWidth","promoHeader","promoInfo","backgroundAnimation"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/361.970b063b.chunk.js","mappings":"oOAyBA,MAAMA,EAAoBC,EAAAA,GAAOC,KAAIC,IAAA,IAAC,MAAEC,GAAOD,EAAA,MAAM,CACnD,sBAAuB,CACrBE,UAAW,SACXC,WAAY,sBACZC,QAAS,SACTC,UAAW,EACXC,SAAU,QAEZ,gBAAiB,CACfC,MAAOC,IAAIP,EAAO,YAAa,QAC/BQ,SAAU,GACVC,WAAY,OACZC,WAAY,GAEd,iBAAkB,CAChBN,UAAW,EACXD,QAAS,UACTK,SAAU,GACVF,MAAOC,IAAIP,EAAO,YAAa,SAEjC,iBAAkB,CAChBM,MAAOC,IAAIP,EAAO,sBAAuB,WACzCW,QAAS,OACT,QAAS,CACPC,MAAO,GAC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AAA,EAC3BF,EAAAA,EAAAA,KAAA,QAAMU,UAAW,cAAcR,UAC7BF,EAAAA,EAAAA,KAACW,EAAAA,IAAQ,OAEXX,EAAAA,EAAAA,KAAA,QAAMU,UAAW,aAAaR,SAAC,uBAEjCF,EAAAA,EAAAA,KAAA,OAAKU,UAAW,cAAcR,SAAE7B,KAChC2B,EAAAA,EAAAA,KAACY,EAAAA,IAAG,CAACF,UAAW,mBAAmBR,SAAE1B,KACrCwB,EAAAA,EAAAA,KAACa,EAAAA,IAAM,CACLC,GAAI,gBACJC,QAASA,KACPjC,OAAOC,SAASiC,KAAI,GAAArB,OAAMsB,EAAAA,EAAO,QAAO,EAE1CC,KAAK,SACLC,QAAQ,aACRC,WAAS,EAAAlB,SACV,qBAKLmB,aAAarB,EAAAA,EAAAA,KAACC,EAAAA,SAAQ,CAAAC,SAAC,gCACvBoB,WACEb,EAAAA,EAAAA,MAACR,EAAAA,SAAQ,CAAAC,SAAA,CAAC,oQAIgD,KACxDF,EAAAA,EAAAA,KAAA,KAAGgB,KAAM,yBAAyBd,SAAC,iBAAgB,OAGvDqB,qBAAqB,MAGvB,IAAI,C","sources":["screens/LoginPage/LoginCallback.tsx"],"sourcesContent":["// This file is part of MinIO Operator\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useEffect, useState } from \"react\";\nimport { Box, Button, LoginWrapper, WarnIcon } from \"mds\";\nimport styled from \"styled-components\";\nimport get from \"lodash/get\";\nimport { useNavigate } from \"react-router-dom\";\nimport api from \"../../common/api\";\nimport { baseUrl } from \"../../history\";\nimport { getLogoVar } from \"../../config\";\n\nconst CallBackContainer = styled.div(({ theme }) => ({\n \"& .errorDescription\": {\n fontStyle: \"italic\",\n transition: \"all .2s ease-in-out\",\n padding: \"0 15px\",\n marginTop: 5,\n overflow: \"auto\",\n },\n \"& .errorLabel\": {\n color: get(theme, \"fontColor\", \"#000\"),\n fontSize: 18,\n fontWeight: \"bold\",\n marginLeft: 5,\n },\n \"& .simpleError\": {\n marginTop: 5,\n padding: \"2px 5px\",\n fontSize: 16,\n color: get(theme, \"fontColor\", \"#000\"),\n },\n \"& .messageIcon\": {\n color: get(theme, \"signalColors.danger\", \"#C72C48\"),\n display: \"flex\",\n \"& svg\": {\n width: 32,\n height: 32,\n },\n },\n \"& .errorTitle\": {\n display: \"flex\",\n alignItems: \"center\",\n borderBottom: 15,\n },\n}));\n\nconst LoginCallback = () => {\n const navigate = useNavigate();\n\n const [error, setError] = useState(\"\");\n const [errorDescription, setErrorDescription] = useState(\"\");\n const [loading, setLoading] = useState(true);\n\n useEffect(() => {\n if (loading) {\n const queryString = window.location.search;\n const urlParams = new URLSearchParams(queryString);\n const code = urlParams.get(\"code\");\n const state = urlParams.get(\"state\");\n const error = urlParams.get(\"error\");\n const errorDescription = urlParams.get(\"errorDescription\");\n if (error || errorDescription) {\n setError(error || \"\");\n setErrorDescription(errorDescription || \"\");\n setLoading(false);\n } else {\n api\n .invoke(\"POST\", \"/api/v1/login/oauth2/auth\", { code, state })\n .then(() => {\n // We push to history the new URL.\n let targetPath = \"/\";\n if (\n localStorage.getItem(\"redirect-path\") &&\n localStorage.getItem(\"redirect-path\") !== \"\"\n ) {\n targetPath = `${localStorage.getItem(\"redirect-path\")}`;\n localStorage.setItem(\"redirect-path\", \"\");\n }\n if (state) {\n localStorage.setItem(\"auth-state\", state);\n }\n setLoading(false);\n navigate(targetPath);\n })\n .catch((error) => {\n setError(error.errorMessage);\n setErrorDescription(error.detailedError);\n setLoading(false);\n });\n }\n }\n }, [loading, navigate]);\n return error !== \"\" || errorDescription !== \"\" ? (\n \n \n
\n \n \n \n Error from IDP\n
\n
{error}
\n {errorDescription}\n {\n window.location.href = `${baseUrl}login`;\n }}\n type=\"submit\"\n variant=\"callAction\"\n fullWidth\n >\n Back to Login\n \n \n }\n promoHeader={Multi-Cloud Object Store}\n promoInfo={\n \n MinIO's high-performance, Kubernetes-native object store is licensed\n under GNU AGPL v3 and is available on every cloud - public, private\n and edge. For more information on the terms of the license or to\n learn more about commercial licensing options visit the{\" \"}\n pricing page.\n \n }\n backgroundAnimation={false}\n />\n
\n ) : null;\n};\n\nexport default LoginCallback;\n"],"names":["CallBackContainer","styled","div","_ref","theme","fontStyle","transition","padding","marginTop","overflow","color","get","fontSize","fontWeight","marginLeft","display","width","height","alignItems","borderBottom","LoginCallback","navigate","useNavigate","error","setError","useState","errorDescription","setErrorDescription","loading","setLoading","useEffect","queryString","window","location","search","urlParams","URLSearchParams","code","state","api","invoke","then","targetPath","localStorage","getItem","concat","setItem","catch","errorMessage","detailedError","_jsx","Fragment","children","LoginWrapper","logoProps","applicationName","subVariant","getLogoVar","form","_jsxs","className","WarnIcon","Box","Button","id","onClick","href","baseUrl","type","variant","fullWidth","promoHeader","promoInfo","backgroundAnimation"],"sourceRoot":""} \ No newline at end of file diff --git a/web-app/build/static/js/381.6e506d98.chunk.js b/web-app/build/static/js/381.6e506d98.chunk.js new file mode 100644 index 00000000000..900120c7ca8 --- /dev/null +++ b/web-app/build/static/js/381.6e506d98.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[381],{2237:(e,t,i)=>{i.d(t,{A:()=>s});var n=i(5043),a=i(579);const s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(i){return(0,a.jsx)(n.Suspense,{fallback:t,children:(0,a.jsx)(e,{...i})})}}},4141:(e,t,i)=>{i.d(t,{A:()=>d});var n=i(5043),a=i(9456),s=i(9923),l=i(2961),o=i(4159),r=i(9555),c=i(579);const d=e=>{let{onClose:t,modalOpen:i,title:d,children:x,wideLimit:p=!0,titleIcon:m=null,iconColor:h="default",sx:f}=e;const u=(0,l.jL)(),[b,g]=(0,n.useState)(!1),y=(0,a.d4)((e=>e.system.modalSnackBar));(0,n.useEffect)((()=>{u((0,o.h0)(""))}),[u]),(0,n.useEffect)((()=>{if(y){if(""===y.message)return void g(!1);"error"!==y.type&&g(!0)}}),[y]);let j="";return y&&(j=y.detailedErrorMsg,(""===y.detailedErrorMsg||y.detailedErrorMsg.length<5)&&(j=y.message)),(0,c.jsxs)(s.ngX,{onClose:t,open:i,title:d,titleIcon:m,widthLimit:p,sx:f,iconColor:h,children:[(0,c.jsx)(r.A,{isModal:!0}),(0,c.jsx)(s.qb_,{onClose:()=>{g(!1),u((0,o.h0)(""))},open:b,message:j,mode:"inline",variant:"error"===y.type?"error":"default",autoHideDuration:"error"===y.type?10:5,condensed:!0}),x]})}},7381:(e,t,i)=>{i.r(t),i.d(t,{default:()=>C});var n=i(5043),a=i(9923),s=i(3216),l=i(9161),o=i(3047),r=i(3024),c=i(4574),d=i(3097),x=i.n(d),p=i(579);const m=c.Ay.div((e=>{let{theme:t}=e;return{display:"grid",margin:"0 1.5rem 0 1.5rem",gridTemplateColumns:"1fr 1fr 1fr 1fr",["@media (max-width: ".concat(a.nmC.sm,"px)")]:{gridTemplateColumns:"1fr 1fr 1fr"},"&.paid-plans-only":{display:"grid",gridTemplateColumns:"1fr 1fr 1fr"},"& .features-col":{flex:1,minWidth:"260px","@media (max-width: 600px)":{display:"none"}},"& .xs-only":{display:"none"},"& .button-box":{display:"flex",alignItems:"center",justifyContent:"center",padding:"5px 0px 25px 0px",borderLeft:"1px solid ".concat(x()(t,"borderColor","#EAEAEA"))},"& .plan-header":{height:"99px",borderBottom:"1px solid ".concat(x()(t,"borderColor","#EAEAEA"))},"& .feature-title":{height:"25px",paddingLeft:"26px",fontSize:"14px",background:x()(t,"signalColors.disabled","#E5E5E5"),color:x()(t,"signalColors.main","#07193E"),"@media (max-width: 600px)":{"& .feature-title-info .xs-only":{display:"block"}}},"& .feature-name":{minHeight:"60px",padding:"5px",borderBottom:"1px solid ".concat(x()(t,"borderColor","#EAEAEA")),display:"flex",alignItems:"center",paddingLeft:"26px",fontSize:"14px"},"& .feature-item":{display:"flex",flexFlow:"column",alignItems:"center",justifyContent:"center",minHeight:"60px",padding:"0 15px 0 15px",borderBottom:"1px solid ".concat(x()(t,"borderColor","#EAEAEA")),borderLeft:"1px solid ".concat(x()(t,"borderColor","#EAEAEA")),fontSize:"14px","& .link-text":{color:"#2781B0",cursor:"pointer",textDecoration:"underline"},"&.icon-yes":{width:"15px",height:"15px"}},"& .feature-item-info":{flex:1,display:"flex",flexFlow:"column",alignItems:"center",justifyContent:"space-around",textAlign:"center","@media (max-width: 600px)":{justifyContent:"space-evenly",width:"100%","& .xs-only":{display:"block"},"& .plan-feature":{textAlign:"center",paddingRight:"10px"}}},"& .plan-col":{minWidth:"260px",flex:1},"& .active-plan-col":{background:"".concat(x()(t,"boxBackground","#FDFDFD")," 0% 0% no-repeat padding-box"),boxShadow:" 0px 3px 20px #00000038","& .plan-header":{backgroundColor:x()(t,"signalColors.info","#2781B0")},"& .feature-title":{background:x()(t,"signalColors.disabled","#E5E5E5"),color:x()(t,"fontColor","#000")}}}})),h=c.Ay.div((e=>{let{theme:t}=e;return{display:"flex",alignItems:"flex-start",justifyContent:"center",flexFlow:"column",borderLeft:"1px solid ".concat(x()(t,"borderColor","#EAEAEA")),borderBottom:"0px !important","& .plan-header":{display:"flex",alignItems:"center",justifyContent:"center",flexFlow:"column"},"& .title-block":{display:"flex",alignItems:"center",flexFlow:"column",width:"100%","& .title-main":{display:"flex",alignItems:"center",justifyContent:"center",flex:1},"& .iconContainer":{"& .min-icon":{minWidth:140,width:"100%",maxHeight:55,height:"100%"}}},"& .open-source":{fontSize:"14px",display:"flex",marginBottom:"5px",alignItems:"center","& .min-icon":{marginRight:"8px",height:"12px",width:"12px"}},"& .cur-plan-text":{fontSize:"12px",textTransform:"uppercase"},"@media (max-width: 600px)":{cursor:"pointer","& .title-block":{"& .title":{fontSize:"14px",fontWeight:600}}},"&.active, &.active.xs-active":{color:"#ffffff",position:"relative","& .min-icon":{fill:"#ffffff"},"&:before":{content:"' '",position:"absolute",width:"100%",height:"18px",backgroundColor:x()(t,"signalColors.info","#2781B0"),display:"block",top:-16},"& .iconContainer":{"& .min-icon":{marginTop:"-12px"}}},"&.active":{backgroundColor:x()(t,"signalColors.info","#2781B0"),color:"#ffffff"},"&.xs-active":{background:"#eaeaea"}}})),f=c.Ay.div((e=>{let{theme:t}=e;return{border:"1px solid ".concat(x()(t,"borderColor","#EAEAEA")),borderTop:"0px",marginBottom:"45px","&::-webkit-scrollbar":{width:"5px",height:"5px"},"&::-webkit-scrollbar-track":{background:"#F0F0F0",borderRadius:0,boxShadow:"inset 0px 0px 0px 0px #F0F0F0"},"&::-webkit-scrollbar-thumb":{background:"#777474",borderRadius:0},"&::-webkit-scrollbar-thumb:hover":{background:"#5A6375"}}})),u=e=>{let{isActive:t,isXsViewActive:i,title:n,onClick:a,children:s}=e;const l=n.toLowerCase();return(0,p.jsx)(h,{className:(0,r.A)({"plan-header":!0,active:t,"xs-active":i}),onClick:()=>{a&&a(l)},children:s})},b=e=>(0,p.jsx)(a.azJ,{className:"feature-title",children:(0,p.jsx)(a.azJ,{className:"feature-title-info",children:(0,p.jsxs)("div",{className:"xs-only",children:[e.featureLabel," "]})})}),g=e=>(0,p.jsx)(a.azJ,{className:"feature-item",style:e.style,children:(0,p.jsxs)(a.azJ,{className:"feature-item-info",children:[(0,p.jsx)("div",{className:"xs-only",children:(0,o.CA)(e.featureLabel||"")}),(0,p.jsxs)(a.azJ,{className:"plan-feature",children:[(0,p.jsx)("div",{children:(0,o.CA)(e.label||"")}),(0,o.CA)(e.detail),(0,p.jsxs)("div",{className:"xs-only",children:[e.xsLabel," "]})]})]})}),y=e=>{var t;let{licenseInfo:i}=e;const[s,l]=(0,n.useState)(window.innerWidth>=a.nmC.sm);(0,n.useEffect)((()=>{const e=()=>{let e=!1;window.innerWidth>=a.nmC.sm&&(e=!0),l(e)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]);let r=i?null===i||void 0===i||null===(t=i.plan)||void 0===t?void 0:t.toLowerCase():"community";const c=r===o.Bx.COMMUNITY,d=r===o.Bx.STANDARD,x=r===o.Bx.ENTERPRISE,h=o.M7.includes(r),[y,j]=(0,n.useState)("");let A=y===o.Bx.COMMUNITY,v=y===o.Bx.STANDARD,w=y===o.Bx.ENTERPRISE;const N=(e,t,i,n)=>{let s="community"!==r?"https://subnet.min.io":e;return(0,p.jsx)(a.$nd,{id:"license-action-".concat(e),variant:i,style:{marginTop:"12px",width:"80%"},disabled:r!==o.Bx.COMMUNITY&&r!==n,onClick:e=>{e.preventDefault(),window.open("".concat(s,"?ref=op"),"_blank")},label:t})},C=e=>{j(e)};(0,n.useEffect)((()=>{j(s?r||"community":"")}),[s,r]);const k=o.c_;return(0,p.jsx)(n.Fragment,{children:(0,p.jsxs)(f,{children:[(0,p.jsx)(a.azJ,{className:"title-blue-bar",sx:{height:"8px",borderBottom:"8px solid rgb(6 48 83)"}}),(0,p.jsxs)(m,{className:h?"paid-plans-only":"",children:[(0,p.jsx)(a.azJ,{className:"features-col",children:k.map((e=>{const t=e.featureTitleRow;return e.isHeader?h?(0,p.jsxs)(a.azJ,{className:"plan-header",sx:{fontSize:"14px",paddingLeft:"26px",display:"flex",alignItems:"center",justifyContent:"flex-start",borderBottom:"0px !important","& .link-text":{color:"#2781B0",cursor:"pointer",textDecoration:"underline"},"& .min-icon":{marginRight:"10px",color:"#2781B0",fill:"#2781B0"}},children:[(0,p.jsx)(a.xLb,{}),(0,p.jsxs)("a",{href:"https://subnet.min.io/terms-and-conditions/".concat(r),rel:"noopener",className:"link-text",children:["View License agreement ",(0,p.jsx)("br",{}),"for the registered plan."]})]},"plan-header-".concat(e.desc)):(0,p.jsx)(a.azJ,{className:"plan-header",sx:{fontSize:"14px",paddingLeft:"26px",display:"flex",alignItems:"center",justifyContent:"flex-start",borderBottom:"0px !important"},children:e.label},"plan-header-label-".concat(e.desc)):t?(0,p.jsx)(a.azJ,{className:"feature-title",sx:{fontSize:"14px",fontWeight:600,textTransform:"uppercase"},children:(0,p.jsxs)("div",{children:[(0,o.CA)(e.desc)," "]})},"plan-descript-".concat(e.desc)):(0,p.jsx)(a.azJ,{className:"feature-name",style:e.style,children:(0,p.jsxs)("div",{children:[(0,o.CA)(e.desc)," "]})},"plan-feature-name-".concat(e.desc))}))}),h?null:(0,p.jsxs)(a.azJ,{className:"plan-col ".concat(c?"active-plan-col":"non-active-plan-col"),children:[o._T.map(((e,t)=>{const i=k[t].desc,{featureTitleRow:n,isHeader:l}=e;return l?(0,p.jsx)(u,{isActive:c,isXsViewActive:A,title:"community",onClick:s?C:null,children:(0,p.jsx)(a.azJ,{className:"title-block",children:(0,p.jsx)(a.azJ,{className:"title-main",children:(0,p.jsx)("div",{className:"iconContainer",children:(0,p.jsx)(a.ROG,{style:{width:117}})})})})},"community-header"):n?(0,p.jsx)(b,{featureLabel:i},"title-row-".concat(e.id)):(0,p.jsx)(g,{featureLabel:i,label:e.label,detail:e.detail,xsLabel:e.xsLabel,style:e.style},"pricing-feature-".concat(e.id))})),(0,p.jsx)(a.azJ,{className:"button-box",children:N("https://slack.min.io","Join Slack","regular",o.Bx.COMMUNITY)})]}),(0,p.jsxs)(a.azJ,{className:"plan-col ".concat(d?"active-plan-col":"non-active-plan-col"),children:[o._2.map(((e,t)=>{const i=k[t].desc,n=e.featureTitleRow;return e.isHeader?(0,p.jsx)(u,{isActive:d,isXsViewActive:v,title:"Standard",onClick:s?C:null,children:(0,p.jsx)(a.azJ,{className:"title-block",children:(0,p.jsx)(a.azJ,{className:"title-main",children:(0,p.jsx)("div",{className:"iconContainer",children:(0,p.jsx)(a.bWx,{})})})})},"standard-header"):n?(0,p.jsx)(b,{featureLabel:i},"feature-title-row-".concat(e.id)):(0,p.jsx)(g,{featureLabel:i,label:e.label,detail:e.detail,xsLabel:e.xsLabel,style:e.style},"feature-item-".concat(e.id))})),(0,p.jsx)(a.azJ,{className:"button-box",children:N("https://min.io/signup",o.M7.includes(r)?"Login to SUBNET":"Subscribe","callAction",o.Bx.STANDARD)})]}),(0,p.jsxs)(a.azJ,{className:"plan-col ".concat(x?"active-plan-col":"non-active-plan-col"),children:[o.yf.map(((e,t)=>{const i=k[t].desc,{featureTitleRow:n,isHeader:l,yesIcon:o}=e;return l?(0,p.jsx)(u,{isActive:x,isXsViewActive:w,title:"Enterprise",onClick:s?C:null,children:(0,p.jsx)(a.azJ,{className:"title-block",children:(0,p.jsx)(a.azJ,{className:"title-main",children:(0,p.jsx)("div",{className:"iconContainer",children:(0,p.jsx)(a.r3Q,{})})})})},"enterprise-header"):n?(0,p.jsx)(b,{featureLabel:i},"feature-title-row2-".concat(e.id)):o?(0,p.jsx)(a.azJ,{className:"feature-item",children:(0,p.jsxs)(a.azJ,{className:"feature-item-info",children:[(0,p.jsx)("div",{className:"xs-only"}),(0,p.jsx)(a.azJ,{className:"plan-feature",children:(0,p.jsx)(a.C1y,{})})]})},"ent-feature-yes".concat(e.id)):(0,p.jsx)(g,{featureLabel:i,label:e.label,detail:e.detail,style:e.style},"pricing-feature-item-".concat(e.id))})),(0,p.jsx)(a.azJ,{className:"button-box",children:N("https://min.io/signup",o.M7.includes(r)?"Login to SUBNET":"Subscribe","callAction",o.Bx.ENTERPRISE)})]})]})]})})};var j=i(9827),A=i(2237),v=i(4770),w=i(649);const N=(0,A.A)(n.lazy((()=>i.e(654).then(i.bind(i,3654))))),C=()=>{const e=(0,s.Zp)(),[t,i]=(0,n.useState)(!1),[r,c]=(0,n.useState)(),[d,x]=(0,n.useState)(0),[m,h]=(0,n.useState)(!1),[f,u]=(0,n.useState)(!0);(0,n.useState)(!1);const[b,g]=(0,n.useState)(!1),[A,C]=(0,n.useState)(!1),k=r&&b,S=(0,o.Gy)();(0,n.useEffect)((()=>{!k&&!S&&!f&&!m&&C(!0)}),[k,S,f,m]);const L=(0,n.useCallback)((()=>{m||(h(!0),w.A.invoke("GET","/api/v1/subnet/info").then((e=>{e&&("STANDARD"===e.plan?x(1):"ENTERPRISE"===e.plan?x(2):x(1),c(e)),g(!0),h(!1)})).catch((()=>{g(!1),h(!1)})))}),[m]);return(0,n.useEffect)((()=>{f&&(L(),u(!1))}),[L,f,u]),m?(0,p.jsx)(a.xA9,{item:!0,xs:12,children:(0,p.jsx)(a.z21,{})}):(0,p.jsxs)(n.Fragment,{children:[(0,p.jsx)(v.A,{label:"MinIO License and Support plans",actions:(0,p.jsx)(n.Fragment,{children:!k&&(0,p.jsx)(a.$nd,{id:"login-with-subnet",onClick:()=>e(l.zZ.REGISTER_SUPPORT),style:{fontSize:"14px",display:"flex",alignItems:"center",textDecoration:"none"},icon:(0,p.jsx)(a.HKb,{}),variant:"callAction",children:"Register your cluster"})})}),(0,p.jsxs)(a.Mxu,{children:[(0,p.jsx)(a.xA9,{item:!0,xs:12,children:k&&(0,p.jsx)(j.A,{email:null===r||void 0===r?void 0:r.email})}),(0,p.jsx)(y,{activateProductModal:t,closeModalAndFetchLicenseInfo:()=>{i(!1),L()},licenseInfo:r,currentPlanID:d,setActivateProductModal:i}),(0,p.jsx)(N,{isOpen:A,onClose:()=>{C(!1)}})]})]})}},5731:(e,t,i)=>{i.d(t,{A:()=>c});var n=i(5043),a=i(4574),s=i(3097),l=i.n(s),o=i(579);const r=a.Ay.a((e=>{let{theme:t}=e;return{color:l()(t,"linkColor","#2781B0"),fontWeight:600}})),c=()=>(0,o.jsxs)(n.Fragment,{children:[(0,o.jsx)("h2",{children:"What is the GNU AGPL v3?"}),(0,o.jsxs)("p",{children:['The GNU AGPL v3 is short for the "GNU Affero General Public License v3." It is a common open source license certified by the Free Software Foundation and the Open Source Initiative. You can get a copy of the GNU AGPL v3 license with MinIO source code or at\xa0',(0,o.jsx)(r,{href:"https://min.io/compliance?ref=op",target:"_blank",children:"https://www.gnu.org/licenses/agpl-3.0.en.html"}),"."]}),(0,o.jsx)("h2",{children:"What does it mean for me to comply with the GNU AGPL v3?"}),(0,o.jsx)("p",{children:"When you host or distribute MinIO over a network, the AGPL v3 applies to you. Any distribution or copying of MinIO software modified or not has to comply with the obligations specified in the AGPL v3. Otherwise, you may risk infringing MinIO\u2019s copyrights."}),(0,o.jsx)("h2",{children:"Making combined or derivative works of MinIO"}),(0,o.jsx)("p",{children:"Combining MinIO software as part of a larger software stack triggers your GNU AGPL v3 obligations."}),(0,o.jsx)("p",{children:"The method of combining does not matter. When MinIO is linked to a larger software stack in any form, including statically, dynamically, pipes, or containerized and invoked remotely, the AGPL v3 applies to your use. What triggers the AGPL v3 obligations is the exchanging data between the larger stack and MinIO."}),(0,o.jsx)("h2",{children:"Talking to your Legal Counsel"}),(0,o.jsx)("p",{children:"If you have questions, we recommend that you talk to your own attorney for legal advice. Purchasing a commercial license from MinIO removes the AGPL v3 obligations from MinIO software."})]})},7195:(e,t,i)=>{i.d(t,{A:()=>l});i(5043);var n=i(9456),a=i(4159),s=i(579);const l=()=>{const e=(0,n.d4)(a.JJ)?"op":"con";return(0,s.jsx)("a",{className:"link-text",href:"https://min.io/compliance?ref=".concat(e),children:"GNU AGPL v3"})}},3047:(e,t,i)=>{i.d(t,{_T:()=>f,yf:()=>b,c_:()=>h,Bx:()=>p,M7:()=>g,_2:()=>u,Gy:()=>v,CA:()=>y,YN:()=>A});var n=i(9923),a=i(7195),s=i(2811),l=i(2961),o=(i(5043),i(4141)),r=i(5731),c=i(9456),d=i(579);const x=()=>{const e=(0,l.jL)(),t=(0,c.d4)((e=>e.license.faqModalOpen));return(0,d.jsx)(o.A,{modalOpen:t,title:"License FAQ",onClose:()=>{e((0,s.s2)())},children:(0,d.jsx)(r.A,{})})},p={COMMUNITY:"community",STANDARD:"standard",ENTERPRISE:"enterprise"},m=e=>{let{text:t,anchor:i}=e;return(0,d.jsx)("a",{href:"https://min.io/product/subnet?ref=op#".concat(i),className:"link-text",target:"_blank",rel:"noopener ",style:{color:"#2781B0"},children:t})},h=[{label:"License ",isHeader:!0},{label:"",isHeader:!1,style:{height:"400px",verticalAlign:"top",alignItems:"start"}},{desc:"Features",featureTitleRow:!0},{desc:"Unit Price"},{desc:()=>(0,d.jsx)(m,{anchor:"sa-long-term-support",text:"Software Release"})},{desc:"SLA"},{desc:"Support"},{desc:"Critical Security and Bug Detection"},{desc:()=>(0,d.jsx)(m,{anchor:"sa-panic-button",text:"Panic Button"})},{desc:()=>(0,d.jsx)(m,{anchor:"sa-healthcheck",text:"Health Diagnostics"})},{desc:"Annual Architecture Review"},{desc:"Annual Performance Review"},{desc:"Indemnification"},{desc:"Security and Policy Review"}],f=[{label:"Community",isHeader:!0,style:{borderBottom:0}},{label:()=>(0,d.jsx)(n.azJ,{sx:{textAlign:"left"},children:(0,d.jsxs)("span",{children:["Designed for developers who are building open source applications in compliance with the ",(0,d.jsx)(a.A,{})," license, MinIO Trademarks and are able to self support themselves. It is fully featured. If you distribute, host or create derivative works of the MinIO software over the network, the ",(0,d.jsx)(a.A,{})," license requires that you also distribute the complete, corresponding source code of the combined work under the same ",(0,d.jsx)(a.A,{})," license. This requirement applies whether or not you modified MinIO.",(0,d.jsx)("br",{}),(0,d.jsx)("br",{}),(0,d.jsx)("span",{className:"link-text",onClick:()=>{l.Ay.dispatch((0,s.y)())},children:"Compliance FAQ"}),(0,d.jsx)(x,{})]})}),isHeader:!1,style:{height:"400px",borderBottom:0}},{id:"com_feat_title",featureTitleRow:!0},{id:"com_license_cost"},{id:"com_release",label:"Upstream"},{id:"com_sla",label:"No SLA"},{id:"com_support",label:"Community:",detail:"Slack + Github"},{id:"com_security",label:"Self"},{id:"com_panic",xsLabel:"N/A"},{id:"com_diag",xsLabel:"N/A"},{id:"com_arch",xsLabel:"N/A"},{id:"com_perf",xsLabel:"N/A"},{id:"com_indemnity",xsLabel:"N/A"},{id:"com_sec_policy",xsLabel:"N/A"}],u=[{label:"Standard",isHeader:!0,style:{borderBottom:0}},{isHeader:!1,label:()=>(0,d.jsxs)(n.azJ,{sx:{marginTop:"-85px",textAlign:"left"},children:[(0,d.jsxs)("span",{children:["Designed for customers who require a commercial license and can mostly self-support but want the peace of mind that comes with the MinIO Subscription Network\u2019s suite of operational capabilities and direct-to-engineer interaction. The Standard version is fully featured but with SLA limitations. ",(0,d.jsx)("br",{})," ",(0,d.jsx)("br",{})," To learn more about the MinIO Subscription Network"]})," ",(0,d.jsx)("a",{href:"https://min.io/product/subnet?ref=op",className:"link-text",target:"_blank",rel:"noopener",children:"click here"}),"."]}),style:{height:"400px",borderBottom:0}},{id:"std_feat_title",featureTitleRow:!0},{id:"std_license_cost",label:()=>(0,d.jsx)(n.azJ,{sx:{fontSize:"16px",fontWeight:600},children:"$10 per TiB per month"}),detail:()=>(0,d.jsx)(n.azJ,{sx:{fontSize:"14px",fontWeight:400,marginBottom:"5px"},children:"(Minimum of 200TiB)"})},{id:"std_release",label:"1 Year Long Term Support"},{id:"std_sla",label:"<48 Hours",detail:"(Local Business Hours)"},{id:"std_support",label:"L4 Direct Engineering",detail:"support via SUBNET"},{id:"std_security",label:"Continuous Scan and Alert"},{id:"std_panic",label:"1 Per year"},{id:"std_diag",label:"24/7/365"},{id:"std_arch",xsLabel:"N/A"},{id:"std_perf",xsLabel:"N/A"},{id:"std_indemnity",xsLabel:"N/A"},{id:"std_sec_policy",xsLabel:"N/A"}],b=[{label:"Enterprise",isHeader:!0,style:{borderBottom:0}},{isHeader:!1,label:()=>(0,d.jsxs)(n.azJ,{sx:{marginTop:"-135px",textAlign:"left"},children:[(0,d.jsxs)("span",{children:["Designed for mission critical environments where both a license and strict SLAs are required. The Enterprise version is fully featured but comes with additional capabilities. ",(0,d.jsx)("br",{})," ",(0,d.jsx)("br",{})," To learn more about the MinIO Subscription Network"]})," ",(0,d.jsx)("a",{href:"https://min.io/product/subnet?ref=op",className:"link-text",target:"_blank",rel:"noopener",children:"click here"}),"."]}),style:{height:"400px",borderBottom:0}},{id:"end_feat_title",featureTitleRow:!0},{id:"ent_license_cost",label:()=>(0,d.jsx)(n.azJ,{sx:{fontSize:"16px",fontWeight:600},children:"$20 per TiB per month"}),detail:()=>(0,d.jsx)(n.azJ,{sx:{fontSize:"14px",fontWeight:400,marginBottom:"5px"},children:"(Minimum of 100TiB)"})},{id:"ent_release",label:"5 Years Long Term Support"},{id:"ent_sla",label:"<1 hour"},{id:"ent_support",label:"L4 Direct Engineering support via",detail:"SUBNET, Phone, Web Conference"},{id:"ent_security",label:"Continuous Scan and Alert"},{id:"ent_panic",label:"Unlimited"},{id:"ent_diag",label:"24/7/365"},{id:"ent_arch",yesIcon:!0},{id:"ent_perf",yesIcon:!0},{id:"ent_indemnity",yesIcon:!0},{id:"ent_sec_policy",yesIcon:!0}],g=[p.STANDARD,p.ENTERPRISE],y=e=>"function"===typeof e?e():e,j="agpl_minio_license_consent",A=()=>{localStorage.setItem(j,"true")},v=()=>"true"===localStorage.getItem(j)},9827:(e,t,i)=>{i.d(t,{A:()=>s});i(5043);var n=i(9923),a=i(579);const s=e=>{let{email:t=""}=e;return(0,a.jsxs)(n.azJ,{sx:{height:"67px",color:"#ffffff",display:"flex",position:"relative",top:"-30px",left:"-32px",width:"calc(100% + 64px)",alignItems:"center",justifyContent:"space-between",backgroundColor:"#2781B0",padding:"0 25px 0 25px","& .registered-box, .reg-badge-box":{display:"flex",alignItems:"center",justifyContent:"flex-start"},"& .reg-badge-box":{marginLeft:"20px","& .min-icon":{fill:"#2781B0"}}},children:[(0,a.jsxs)(n.azJ,{className:"registered-box",children:[(0,a.jsx)(n.azJ,{sx:{fontSize:"16px",fontWeight:400},children:"Register status:"}),(0,a.jsxs)(n.azJ,{className:"reg-badge-box",children:[(0,a.jsx)(n.M3H,{}),(0,a.jsx)(n.azJ,{sx:{fontWeight:600},children:"Registered"})]})]}),(0,a.jsxs)(n.azJ,{className:"registered-acc-box",sx:{alignItems:"center",justifyContent:"flex-start",display:"flex",["@media (max-width: ".concat(n.nmC.sm,"px)")]:{display:"none"}},children:[(0,a.jsx)(n.azJ,{sx:{fontSize:"16px",fontWeight:400},children:"Registered to:"}),(0,a.jsx)(n.azJ,{sx:{marginLeft:"8px",fontWeight:600},children:t})]})]})}},3024:(e,t,i)=>{function n(e){var t,i,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;ta});const a=function(){for(var e,t,i=0,a="";i.\n\nimport React, { ComponentType, Suspense, SuspenseProps } from \"react\";\n\nfunction withSuspense

(\n WrappedComponent: ComponentType

,\n fallback: SuspenseProps[\"fallback\"] = null,\n) {\n function ComponentWithSuspense(props: P) {\n return (\n \n \n \n );\n }\n\n return ComponentWithSuspense;\n}\n\nexport default withSuspense;\n","// This file is part of MinIO Operator\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\nimport React, { useEffect, useState } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { ModalBox, Snackbar } from \"mds\";\nimport { CSSObject } from \"styled-components\";\nimport { AppState, useAppDispatch } from \"../../../../store\";\nimport { setModalSnackMessage } from \"../../../../systemSlice\";\nimport MainError from \"../MainError/MainError\";\n\ninterface IModalProps {\n onClose: () => void;\n modalOpen: boolean;\n title: string | React.ReactNode;\n children: any;\n wideLimit?: boolean;\n titleIcon?: React.ReactNode;\n iconColor?: \"default\" | \"delete\" | \"accept\";\n sx?: CSSObject;\n}\n\nconst ModalWrapper = ({\n onClose,\n modalOpen,\n title,\n children,\n wideLimit = true,\n titleIcon = null,\n iconColor = \"default\",\n sx,\n}: IModalProps) => {\n const dispatch = useAppDispatch();\n const [openSnackbar, setOpenSnackbar] = useState(false);\n\n const modalSnackMessage = useSelector(\n (state: AppState) => state.system.modalSnackBar,\n );\n\n useEffect(() => {\n dispatch(setModalSnackMessage(\"\"));\n }, [dispatch]);\n\n useEffect(() => {\n if (modalSnackMessage) {\n if (modalSnackMessage.message === \"\") {\n setOpenSnackbar(false);\n return;\n }\n // Open SnackBar\n if (modalSnackMessage.type !== \"error\") {\n setOpenSnackbar(true);\n }\n }\n }, [modalSnackMessage]);\n\n const closeSnackBar = () => {\n setOpenSnackbar(false);\n dispatch(setModalSnackMessage(\"\"));\n };\n\n let message = \"\";\n\n if (modalSnackMessage) {\n message = modalSnackMessage.detailedErrorMsg;\n if (\n modalSnackMessage.detailedErrorMsg === \"\" ||\n modalSnackMessage.detailedErrorMsg.length < 5\n ) {\n message = modalSnackMessage.message;\n }\n }\n\n return (\n \n \n \n {children}\n \n );\n};\n\nexport default ModalWrapper;\n","// This file is part of MinIO Operator\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useEffect, useState } from \"react\";\nimport clsx from \"clsx\";\nimport {\n AGPLV3Logo,\n Box,\n breakPoints,\n Button,\n CheckCircleIcon,\n ConsoleEnterprise,\n ConsoleStandard,\n LicenseDocIcon,\n} from \"mds\";\nimport { SubnetInfo } from \"./types\";\nimport {\n COMMUNITY_PLAN_FEATURES,\n ENTERPRISE_PLAN_FEATURES,\n FEATURE_ITEMS,\n getRenderValue,\n LICENSE_PLANS,\n PAID_PLANS,\n STANDARD_PLAN_FEATURES,\n} from \"./utils\";\nimport styled from \"styled-components\";\nimport get from \"lodash/get\";\n\ninterface IRegisterStatus {\n activateProductModal: any;\n closeModalAndFetchLicenseInfo: any;\n licenseInfo: SubnetInfo | undefined;\n currentPlanID: number;\n setActivateProductModal: any;\n}\n\nconst PlanListContainer = styled.div(({ theme }) => ({\n display: \"grid\",\n\n margin: \"0 1.5rem 0 1.5rem\",\n\n gridTemplateColumns: \"1fr 1fr 1fr 1fr\",\n\n [`@media (max-width: ${breakPoints.sm}px)`]: {\n gridTemplateColumns: \"1fr 1fr 1fr\",\n },\n\n \"&.paid-plans-only\": {\n display: \"grid\",\n gridTemplateColumns: \"1fr 1fr 1fr\",\n },\n\n \"& .features-col\": {\n flex: 1,\n minWidth: \"260px\",\n\n \"@media (max-width: 600px)\": {\n display: \"none\",\n },\n },\n\n \"& .xs-only\": {\n display: \"none\",\n },\n\n \"& .button-box\": {\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n padding: \"5px 0px 25px 0px\",\n borderLeft: `1px solid ${get(theme, \"borderColor\", \"#EAEAEA\")}`,\n },\n \"& .plan-header\": {\n height: \"99px\",\n borderBottom: `1px solid ${get(theme, \"borderColor\", \"#EAEAEA\")}`,\n },\n \"& .feature-title\": {\n height: \"25px\",\n paddingLeft: \"26px\",\n fontSize: \"14px\",\n\n background: get(theme, \"signalColors.disabled\", \"#E5E5E5\"),\n color: get(theme, \"signalColors.main\", \"#07193E\"),\n\n \"@media (max-width: 600px)\": {\n \"& .feature-title-info .xs-only\": {\n display: \"block\",\n },\n },\n },\n \"& .feature-name\": {\n minHeight: \"60px\",\n padding: \"5px\",\n borderBottom: `1px solid ${get(theme, \"borderColor\", \"#EAEAEA\")}`,\n display: \"flex\",\n alignItems: \"center\",\n paddingLeft: \"26px\",\n fontSize: \"14px\",\n },\n \"& .feature-item\": {\n display: \"flex\",\n flexFlow: \"column\",\n alignItems: \"center\",\n justifyContent: \"center\",\n minHeight: \"60px\",\n padding: \"0 15px 0 15px\",\n borderBottom: `1px solid ${get(theme, \"borderColor\", \"#EAEAEA\")}`,\n borderLeft: `1px solid ${get(theme, \"borderColor\", \"#EAEAEA\")}`,\n fontSize: \"14px\",\n \"& .link-text\": {\n color: \"#2781B0\",\n cursor: \"pointer\",\n textDecoration: \"underline\",\n },\n\n \"&.icon-yes\": {\n width: \"15px\",\n height: \"15px\",\n },\n },\n\n \"& .feature-item-info\": {\n flex: 1,\n display: \"flex\",\n flexFlow: \"column\",\n alignItems: \"center\",\n justifyContent: \"space-around\",\n textAlign: \"center\",\n\n \"@media (max-width: 600px)\": {\n justifyContent: \"space-evenly\",\n width: \"100%\",\n \"& .xs-only\": {\n display: \"block\",\n },\n \"& .plan-feature\": {\n textAlign: \"center\",\n paddingRight: \"10px\",\n },\n },\n },\n\n \"& .plan-col\": {\n minWidth: \"260px\",\n flex: 1,\n },\n\n \"& .active-plan-col\": {\n background: `${get(\n theme,\n \"boxBackground\",\n \"#FDFDFD\",\n )} 0% 0% no-repeat padding-box`,\n boxShadow: \" 0px 3px 20px #00000038\",\n\n \"& .plan-header\": {\n backgroundColor: get(theme, \"signalColors.info\", \"#2781B0\"),\n },\n\n \"& .feature-title\": {\n background: get(theme, \"signalColors.disabled\", \"#E5E5E5\"),\n color: get(theme, \"fontColor\", \"#000\"),\n },\n },\n}));\n\nconst PlanHeaderContainer = styled.div(({ theme }) => ({\n display: \"flex\",\n alignItems: \"flex-start\",\n justifyContent: \"center\",\n flexFlow: \"column\",\n borderLeft: `1px solid ${get(theme, \"borderColor\", \"#EAEAEA\")}`,\n borderBottom: \"0px !important\",\n \"& .plan-header\": {\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n flexFlow: \"column\",\n },\n\n \"& .title-block\": {\n display: \"flex\",\n alignItems: \"center\",\n flexFlow: \"column\",\n width: \"100%\",\n \"& .title-main\": {\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n flex: 1,\n },\n \"& .iconContainer\": {\n \"& .min-icon\": {\n minWidth: 140,\n width: \"100%\",\n maxHeight: 55,\n height: \"100%\",\n },\n },\n },\n\n \"& .open-source\": {\n fontSize: \"14px\",\n display: \"flex\",\n marginBottom: \"5px\",\n alignItems: \"center\",\n \"& .min-icon\": {\n marginRight: \"8px\",\n height: \"12px\",\n width: \"12px\",\n },\n },\n\n \"& .cur-plan-text\": {\n fontSize: \"12px\",\n textTransform: \"uppercase\",\n },\n\n \"@media (max-width: 600px)\": {\n cursor: \"pointer\",\n \"& .title-block\": {\n \"& .title\": {\n fontSize: \"14px\",\n fontWeight: 600,\n },\n },\n },\n\n \"&.active, &.active.xs-active\": {\n color: \"#ffffff\",\n position: \"relative\",\n\n \"& .min-icon\": {\n fill: \"#ffffff\",\n },\n\n \"&:before\": {\n content: \"' '\",\n position: \"absolute\",\n width: \"100%\",\n height: \"18px\",\n backgroundColor: get(theme, \"signalColors.info\", \"#2781B0\"),\n display: \"block\",\n top: -16,\n },\n \"& .iconContainer\": {\n \"& .min-icon\": {\n marginTop: \"-12px\",\n },\n },\n },\n \"&.active\": {\n backgroundColor: get(theme, \"signalColors.info\", \"#2781B0\"),\n color: \"#ffffff\",\n },\n \"&.xs-active\": {\n background: \"#eaeaea\",\n },\n}));\n\nconst ListContainer = styled.div(({ theme }) => ({\n border: `1px solid ${get(theme, \"borderColor\", \"#EAEAEA\")}`,\n borderTop: \"0px\",\n marginBottom: \"45px\",\n \"&::-webkit-scrollbar\": {\n width: \"5px\",\n height: \"5px\",\n },\n \"&::-webkit-scrollbar-track\": {\n background: \"#F0F0F0\",\n borderRadius: 0,\n boxShadow: \"inset 0px 0px 0px 0px #F0F0F0\",\n },\n \"&::-webkit-scrollbar-thumb\": {\n background: \"#777474\",\n borderRadius: 0,\n },\n \"&::-webkit-scrollbar-thumb:hover\": {\n background: \"#5A6375\",\n },\n}));\n\nconst PlanHeader = ({\n isActive,\n isXsViewActive,\n title,\n onClick,\n children,\n}: {\n isActive: boolean;\n isXsViewActive: boolean;\n title: string;\n price?: string;\n onClick: any;\n children: any;\n}) => {\n const plan = title.toLowerCase();\n return (\n {\n onClick && onClick(plan);\n }}\n >\n {children}\n \n );\n};\n\nconst FeatureTitleRowCmp = (props: { featureLabel: any }) => {\n return (\n \n \n

{props.featureLabel}
\n \n \n );\n};\n\nconst PricingFeatureItem = (props: {\n featureLabel: any;\n label?: any;\n detail?: any;\n xsLabel?: string;\n style?: any;\n}) => {\n return (\n \n \n
\n {getRenderValue(props.featureLabel || \"\")}\n
\n \n
{getRenderValue(props.label || \"\")}
\n {getRenderValue(props.detail)}\n\n
{props.xsLabel}
\n
\n
\n
\n );\n};\n\nconst LicensePlans = ({ licenseInfo }: IRegisterStatus) => {\n const [isSmallScreen, setIsSmallScreen] = useState(\n window.innerWidth >= breakPoints.sm,\n );\n\n useEffect(() => {\n const handleWindowResize = () => {\n let extMD = false;\n if (window.innerWidth >= breakPoints.sm) {\n extMD = true;\n }\n setIsSmallScreen(extMD);\n };\n\n window.addEventListener(\"resize\", handleWindowResize);\n\n return () => {\n window.removeEventListener(\"resize\", handleWindowResize);\n };\n }, []);\n\n let currentPlan = !licenseInfo\n ? \"community\"\n : licenseInfo?.plan?.toLowerCase();\n\n const isCommunityPlan = currentPlan === LICENSE_PLANS.COMMUNITY;\n const isStandardPlan = currentPlan === LICENSE_PLANS.STANDARD;\n const isEnterprisePlan = currentPlan === LICENSE_PLANS.ENTERPRISE;\n\n const isPaidPlan = PAID_PLANS.includes(currentPlan);\n\n /*In smaller screen use tabbed view to show features*/\n const [xsPlanView, setXsPlanView] = useState(\"\");\n let isXsViewCommunity = xsPlanView === LICENSE_PLANS.COMMUNITY;\n let isXsViewStandard = xsPlanView === LICENSE_PLANS.STANDARD;\n let isXsViewEnterprise = xsPlanView === LICENSE_PLANS.ENTERPRISE;\n\n const getCommunityPlanHeader = () => {\n return (\n \n \n \n
\n \n
\n
\n
\n \n );\n };\n\n const getStandardPlanHeader = () => {\n return (\n \n \n \n
\n \n
\n
\n
\n \n );\n };\n\n const getEnterpriseHeader = () => {\n return (\n \n \n \n
\n \n
\n
\n
\n \n );\n };\n\n const getButton = (\n link: string,\n btnText: string,\n variant: any,\n plan: string,\n ) => {\n let linkToNav =\n currentPlan !== \"community\" ? \"https://subnet.min.io\" : link;\n return (\n {\n e.preventDefault();\n\n window.open(`${linkToNav}?ref=op`, \"_blank\");\n }}\n label={btnText}\n />\n );\n };\n\n const onPlanClick = (plan: string) => {\n setXsPlanView(plan);\n };\n\n useEffect(() => {\n if (isSmallScreen) {\n setXsPlanView(currentPlan || \"community\");\n } else {\n setXsPlanView(\"\");\n }\n }, [isSmallScreen, currentPlan]);\n\n const featureList = FEATURE_ITEMS;\n return (\n \n \n \n \n \n {featureList.map((fi) => {\n const featureTitleRow = fi.featureTitleRow;\n const isHeader = fi.isHeader;\n\n if (isHeader) {\n if (isPaidPlan) {\n return (\n \n \n \n View License agreement
\n for the registered plan.\n \n
\n );\n }\n\n return (\n \n {fi.label}\n \n );\n }\n if (featureTitleRow) {\n return (\n \n
{getRenderValue(fi.desc)}
\n \n );\n }\n return (\n \n
{getRenderValue(fi.desc)}
\n \n );\n })}\n \n {!isPaidPlan ? (\n \n {COMMUNITY_PLAN_FEATURES.map((fi, idx) => {\n const featureLabel = featureList[idx].desc;\n const { featureTitleRow, isHeader } = fi;\n\n if (isHeader) {\n return getCommunityPlanHeader();\n }\n\n if (featureTitleRow) {\n return (\n \n );\n }\n\n return (\n \n );\n })}\n \n {getButton(\n `https://slack.min.io`,\n \"Join Slack\",\n \"regular\",\n LICENSE_PLANS.COMMUNITY,\n )}\n \n \n ) : null}\n \n {STANDARD_PLAN_FEATURES.map((fi, idx) => {\n const featureLabel = featureList[idx].desc;\n const featureTitleRow = fi.featureTitleRow;\n const isHeader = fi.isHeader;\n\n if (isHeader) {\n return getStandardPlanHeader();\n }\n\n if (featureTitleRow) {\n return (\n \n );\n }\n return (\n \n );\n })}\n\n \n {getButton(\n `https://min.io/signup`,\n !PAID_PLANS.includes(currentPlan)\n ? \"Subscribe\"\n : \"Login to SUBNET\",\n \"callAction\",\n LICENSE_PLANS.STANDARD,\n )}\n \n \n \n {ENTERPRISE_PLAN_FEATURES.map((fi, idx) => {\n const featureLabel = featureList[idx].desc;\n const { featureTitleRow, isHeader, yesIcon } = fi;\n\n if (isHeader) {\n return getEnterpriseHeader();\n }\n\n if (featureTitleRow) {\n return (\n \n );\n }\n\n if (yesIcon) {\n return (\n \n \n
\n \n \n \n
\n
\n );\n }\n return (\n \n );\n })}\n \n {getButton(\n `https://min.io/signup`,\n !PAID_PLANS.includes(currentPlan)\n ? \"Subscribe\"\n : \"Login to SUBNET\",\n \"callAction\",\n LICENSE_PLANS.ENTERPRISE,\n )}\n \n \n
\n
\n
\n );\n};\n\nexport default LicensePlans;\n","// This file is part of MinIO Operator\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useCallback, useEffect, useState } from \"react\";\nimport { ArrowIcon, Button, PageLayout, ProgressBar, Grid } from \"mds\";\nimport { useNavigate } from \"react-router-dom\";\nimport { IAM_PAGES } from \"../../../common/SecureComponent/permissions\";\nimport { SubnetInfo } from \"./types\";\nimport { getLicenseConsent } from \"./utils\";\nimport LicensePlans from \"./LicensePlans\";\nimport RegistrationStatusBanner from \"../Support/RegistrationStatusBanner\";\nimport withSuspense from \"../Common/Components/withSuspense\";\nimport PageHeaderWrapper from \"../Common/PageHeaderWrapper/PageHeaderWrapper\";\nimport api from \"../../../common/api\";\n\nconst LicenseConsentModal = withSuspense(\n React.lazy(() => import(\"./LicenseConsentModal\")),\n);\n\nconst License = () => {\n const navigate = useNavigate();\n const [activateProductModal, setActivateProductModal] =\n useState(false);\n\n const [licenseInfo, setLicenseInfo] = useState();\n const [currentPlanID, setCurrentPlanID] = useState(0);\n const [loadingLicenseInfo, setLoadingLicenseInfo] = useState(false);\n const [initialLicenseLoading, setInitialLicenseLoading] =\n useState(true);\n useState(false);\n const [clusterRegistered, setClusterRegistered] = useState(false);\n\n const [isLicenseConsentOpen, setIsLicenseConsentOpen] =\n useState(false);\n\n const closeModalAndFetchLicenseInfo = () => {\n setActivateProductModal(false);\n fetchLicenseInfo();\n };\n\n const isRegistered = licenseInfo && clusterRegistered;\n\n const isAgplConsentDone = getLicenseConsent();\n\n useEffect(() => {\n const shouldConsent =\n !isRegistered && !isAgplConsentDone && !initialLicenseLoading;\n\n if (shouldConsent && !loadingLicenseInfo) {\n setIsLicenseConsentOpen(true);\n }\n }, [\n isRegistered,\n isAgplConsentDone,\n initialLicenseLoading,\n loadingLicenseInfo,\n ]);\n\n const fetchLicenseInfo = useCallback(() => {\n if (loadingLicenseInfo) {\n return;\n }\n setLoadingLicenseInfo(true);\n api\n .invoke(\"GET\", `/api/v1/subnet/info`)\n .then((res: SubnetInfo) => {\n if (res) {\n if (res.plan === \"STANDARD\") {\n setCurrentPlanID(1);\n } else if (res.plan === \"ENTERPRISE\") {\n setCurrentPlanID(2);\n } else {\n setCurrentPlanID(1);\n }\n setLicenseInfo(res);\n }\n setClusterRegistered(true);\n setLoadingLicenseInfo(false);\n })\n .catch(() => {\n setClusterRegistered(false);\n setLoadingLicenseInfo(false);\n });\n }, [loadingLicenseInfo]);\n\n useEffect(() => {\n if (initialLicenseLoading) {\n fetchLicenseInfo();\n setInitialLicenseLoading(false);\n }\n }, [fetchLicenseInfo, initialLicenseLoading, setInitialLicenseLoading]);\n\n if (loadingLicenseInfo) {\n return (\n \n \n \n );\n }\n\n return (\n \n \n {!isRegistered && (\n navigate(IAM_PAGES.REGISTER_SUPPORT)}\n style={{\n fontSize: \"14px\",\n display: \"flex\",\n alignItems: \"center\",\n textDecoration: \"none\",\n }}\n icon={}\n variant={\"callAction\"}\n >\n Register your cluster\n \n )}\n \n }\n />\n\n \n \n {isRegistered && (\n \n )}\n \n\n \n\n {\n setIsLicenseConsentOpen(false);\n }}\n />\n \n \n );\n};\n\nexport default License;\n","// This file is part of MinIO Operator\n// Copyright (c) 2023 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment } from \"react\";\nimport styled from \"styled-components\";\nimport get from \"lodash/get\";\n\nconst LinkElement = styled.a(({ theme }) => ({\n color: get(theme, \"linkColor\", \"#2781B0\"),\n fontWeight: 600,\n}));\n\nconst LicenseFAQ = () => {\n return (\n \n

What is the GNU AGPL v3?

\n

\n The GNU AGPL v3 is short for the \"GNU Affero General Public License v3.\"\n It is a common open source license certified by the Free Software\n Foundation and the Open Source Initiative. You can get a copy of the GNU\n AGPL v3 license with MinIO source code or at \n \n https://www.gnu.org/licenses/agpl-3.0.en.html\n \n .\n

\n

What does it mean for me to comply with the GNU AGPL v3?

\n

\n When you host or distribute MinIO over a network, the AGPL v3 applies to\n you. Any distribution or copying of MinIO software modified or not has\n to comply with the obligations specified in the AGPL v3. Otherwise, you\n may risk infringing MinIO’s copyrights.\n

\n

Making combined or derivative works of MinIO

\n

\n Combining MinIO software as part of a larger software stack triggers\n your GNU AGPL v3 obligations.\n

\n

\n The method of combining does not matter. When MinIO is linked to a\n larger software stack in any form, including statically, dynamically,\n pipes, or containerized and invoked remotely, the AGPL v3 applies to\n your use. What triggers the AGPL v3 obligations is the exchanging data\n between the larger stack and MinIO.\n

\n

Talking to your Legal Counsel

\n

\n If you have questions, we recommend that you talk to your own attorney\n for legal advice. Purchasing a commercial license from MinIO removes the\n AGPL v3 obligations from MinIO software.\n

\n
\n );\n};\nexport default LicenseFAQ;\n","// This file is part of MinIO Operator\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { selOpMode } from \"../../../systemSlice\";\n\nconst LicenseLink = () => {\n const isOperatorMode = useSelector(selOpMode);\n\n const refFrom = isOperatorMode ? \"op\" : \"con\";\n\n return (\n \n GNU AGPL v3\n \n );\n};\nexport default LicenseLink;\n","// This file is part of MinIO Operator\n// Copyright (c) 2023 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport ModalWrapper from \"../Common/ModalWrapper/ModalWrapper\";\nimport LicenseFAQ from \"./LicenseFAQ\";\nimport { useSelector } from \"react-redux\";\nimport { AppState, useAppDispatch } from \"../../../store\";\nimport { closeFAQModal } from \"./licenseSlice\";\n\nconst FAQModal = () => {\n const dispatch = useAppDispatch();\n const isOpen = useSelector((state: AppState) => state.license.faqModalOpen);\n\n return (\n {\n dispatch(closeFAQModal());\n }}\n >\n \n \n );\n};\n\nexport default FAQModal;\n","// This file is part of MinIO Operator\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport { Box } from \"mds\";\nimport LicenseLink from \"./LicenseLink\";\nimport { openFAQModal } from \"./licenseSlice\";\nimport store from \"../../../store\";\nimport FAQModal from \"./FAQModal\";\n\nexport const LICENSE_PLANS = {\n COMMUNITY: \"community\",\n STANDARD: \"standard\",\n ENTERPRISE: \"enterprise\",\n};\n\ntype FeatureItem = {\n label?: any;\n isHeader?: boolean;\n style?: any;\n desc?: any;\n featureTitleRow?: boolean;\n};\n\nconst FeatureLink = ({ text, anchor }: { text: string; anchor: string }) => {\n return (\n \n {text}\n \n );\n};\n\nexport const FEATURE_ITEMS: FeatureItem[] = [\n {\n label: \"License \",\n isHeader: true,\n },\n {\n label: \"\",\n isHeader: false,\n style: {\n height: \"400px\",\n verticalAlign: \"top\",\n alignItems: \"start\",\n },\n },\n {\n desc: \"Features\",\n featureTitleRow: true,\n },\n {\n desc: \"Unit Price\",\n },\n {\n desc: () => {\n return (\n \n );\n },\n },\n {\n desc: \"SLA\",\n },\n {\n desc: \"Support\",\n },\n {\n desc: \"Critical Security and Bug Detection\",\n },\n {\n desc: () => {\n return ;\n },\n },\n {\n desc: () => {\n return (\n \n );\n },\n },\n {\n desc: \"Annual Architecture Review\",\n },\n {\n desc: \"Annual Performance Review\",\n },\n {\n desc: \"Indemnification\",\n },\n {\n desc: \"Security and Policy Review\",\n },\n];\n\nexport const COMMUNITY_PLAN_FEATURES = [\n {\n label: \"Community\",\n isHeader: true,\n style: {\n borderBottom: 0,\n },\n },\n {\n label: () => {\n return (\n \n \n Designed for developers who are building open source applications in\n compliance with the license, MinIO Trademarks and\n are able to self support themselves. It is fully featured. If you\n distribute, host or create derivative works of the MinIO software\n over the network, the license requires that you also\n distribute the complete, corresponding source code of the combined\n work under the same license. This requirement\n applies whether or not you modified MinIO.\n
\n
\n {\n store.dispatch(openFAQModal());\n }}\n >\n Compliance FAQ\n
\n \n \n \n );\n },\n isHeader: false,\n style: {\n height: \"400px\",\n borderBottom: 0,\n },\n },\n {\n id: \"com_feat_title\",\n featureTitleRow: true,\n },\n {\n id: \"com_license_cost\",\n },\n {\n id: \"com_release\",\n label: \"Upstream\",\n },\n {\n id: \"com_sla\",\n label: \"No SLA\",\n },\n {\n id: \"com_support\",\n label: \"Community:\",\n detail: \"Slack + Github\",\n },\n {\n id: \"com_security\",\n label: \"Self\",\n },\n {\n id: \"com_panic\",\n xsLabel: \"N/A\",\n },\n {\n id: \"com_diag\",\n xsLabel: \"N/A\",\n },\n {\n id: \"com_arch\",\n xsLabel: \"N/A\",\n },\n {\n id: \"com_perf\",\n xsLabel: \"N/A\",\n },\n {\n id: \"com_indemnity\",\n xsLabel: \"N/A\",\n },\n {\n id: \"com_sec_policy\",\n xsLabel: \"N/A\",\n },\n];\n\nexport const STANDARD_PLAN_FEATURES = [\n {\n label: \"Standard\",\n isHeader: true,\n style: {\n borderBottom: 0,\n },\n },\n {\n isHeader: false,\n label: () => {\n return (\n \n \n Designed for customers who require a commercial license and can\n mostly self-support but want the peace of mind that comes with the\n MinIO Subscription Network’s suite of operational capabilities and\n direct-to-engineer interaction. The Standard version is fully\n featured but with SLA limitations.

To learn more about\n the MinIO Subscription Network\n
{\" \"}\n \n click here\n \n .\n \n );\n },\n style: {\n height: \"400px\",\n borderBottom: 0,\n },\n },\n {\n id: \"std_feat_title\",\n featureTitleRow: true,\n },\n {\n id: \"std_license_cost\",\n label: () => (\n \n $10 per TiB per month\n \n ),\n detail: () => (\n \n (Minimum of 200TiB)\n \n ),\n },\n {\n id: \"std_release\",\n label: \"1 Year Long Term Support\",\n },\n {\n id: \"std_sla\",\n label: \"<48 Hours\",\n detail: \"(Local Business Hours)\",\n },\n {\n id: \"std_support\",\n label: \"L4 Direct Engineering\",\n detail: \"support via SUBNET\",\n },\n {\n id: \"std_security\",\n label: \"Continuous Scan and Alert\",\n },\n {\n id: \"std_panic\",\n label: \"1 Per year\",\n },\n {\n id: \"std_diag\",\n label: \"24/7/365\",\n },\n {\n id: \"std_arch\",\n xsLabel: \"N/A\",\n },\n {\n id: \"std_perf\",\n xsLabel: \"N/A\",\n },\n {\n id: \"std_indemnity\",\n xsLabel: \"N/A\",\n },\n {\n id: \"std_sec_policy\",\n xsLabel: \"N/A\",\n },\n];\n\nexport const ENTERPRISE_PLAN_FEATURES = [\n {\n label: \"Enterprise\",\n isHeader: true,\n style: {\n borderBottom: 0,\n },\n },\n {\n isHeader: false,\n label: () => {\n return (\n \n \n Designed for mission critical environments where both a license and\n strict SLAs are required. The Enterprise version is fully featured\n but comes with additional capabilities.

To learn more\n about the MinIO Subscription Network\n
{\" \"}\n \n click here\n \n .\n \n );\n },\n style: {\n height: \"400px\",\n borderBottom: 0,\n },\n },\n {\n id: \"end_feat_title\",\n featureTitleRow: true,\n },\n {\n id: \"ent_license_cost\",\n label: () => (\n \n $20 per TiB per month\n \n ),\n detail: () => (\n \n (Minimum of 100TiB)\n \n ),\n },\n {\n id: \"ent_release\",\n label: \"5 Years Long Term Support\",\n },\n {\n id: \"ent_sla\",\n label: \"<1 hour\",\n },\n {\n id: \"ent_support\",\n label: \"L4 Direct Engineering support via\",\n detail: \"SUBNET, Phone, Web Conference\",\n },\n {\n id: \"ent_security\",\n label: \"Continuous Scan and Alert\",\n },\n {\n id: \"ent_panic\",\n label: \"Unlimited\",\n },\n {\n id: \"ent_diag\",\n label: \"24/7/365\",\n },\n {\n id: \"ent_arch\",\n yesIcon: true,\n },\n {\n id: \"ent_perf\",\n yesIcon: true,\n },\n {\n id: \"ent_indemnity\",\n yesIcon: true,\n },\n {\n id: \"ent_sec_policy\",\n yesIcon: true,\n },\n];\n\nexport const PAID_PLANS = [LICENSE_PLANS.STANDARD, LICENSE_PLANS.ENTERPRISE];\n\nexport const getRenderValue = (val: any) => {\n return typeof val === \"function\" ? val() : val;\n};\n\nexport const LICENSE_CONSENT_STORE_KEY = \"agpl_minio_license_consent\";\nexport const setLicenseConsent = () => {\n localStorage.setItem(LICENSE_CONSENT_STORE_KEY, \"true\");\n};\n\nexport const getLicenseConsent = () => {\n return localStorage.getItem(LICENSE_CONSENT_STORE_KEY) === \"true\";\n};\n","import React from \"react\";\nimport { VerifiedIcon, Box, breakPoints } from \"mds\";\n\nconst RegistrationStatusBanner = ({ email = \"\" }: { email?: string }) => {\n return (\n \n \n Register status:\n \n \n \n Registered\n \n \n \n\n \n Registered to:\n {email}\n \n \n );\n};\nexport default RegistrationStatusBanner;\n","function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e))for(t=0;t.\n\nimport React, { ComponentType, Suspense, SuspenseProps } from \"react\";\n\nfunction withSuspense

(\n WrappedComponent: ComponentType

,\n fallback: SuspenseProps[\"fallback\"] = null,\n) {\n function ComponentWithSuspense(props: P) {\n return (\n \n \n \n );\n }\n\n return ComponentWithSuspense;\n}\n\nexport default withSuspense;\n","// This file is part of MinIO Operator\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\nimport React, { useEffect, useState } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { ModalBox, Snackbar } from \"mds\";\nimport { CSSObject } from \"styled-components\";\nimport { AppState, useAppDispatch } from \"../../../../store\";\nimport { setModalSnackMessage } from \"../../../../systemSlice\";\nimport MainError from \"../MainError/MainError\";\n\ninterface IModalProps {\n onClose: () => void;\n modalOpen: boolean;\n title: string | React.ReactNode;\n children: any;\n wideLimit?: boolean;\n titleIcon?: React.ReactNode;\n iconColor?: \"default\" | \"delete\" | \"accept\";\n sx?: CSSObject;\n}\n\nconst ModalWrapper = ({\n onClose,\n modalOpen,\n title,\n children,\n wideLimit = true,\n titleIcon = null,\n iconColor = \"default\",\n sx,\n}: IModalProps) => {\n const dispatch = useAppDispatch();\n const [openSnackbar, setOpenSnackbar] = useState(false);\n\n const modalSnackMessage = useSelector(\n (state: AppState) => state.system.modalSnackBar,\n );\n\n useEffect(() => {\n dispatch(setModalSnackMessage(\"\"));\n }, [dispatch]);\n\n useEffect(() => {\n if (modalSnackMessage) {\n if (modalSnackMessage.message === \"\") {\n setOpenSnackbar(false);\n return;\n }\n // Open SnackBar\n if (modalSnackMessage.type !== \"error\") {\n setOpenSnackbar(true);\n }\n }\n }, [modalSnackMessage]);\n\n const closeSnackBar = () => {\n setOpenSnackbar(false);\n dispatch(setModalSnackMessage(\"\"));\n };\n\n let message = \"\";\n\n if (modalSnackMessage) {\n message = modalSnackMessage.detailedErrorMsg;\n if (\n modalSnackMessage.detailedErrorMsg === \"\" ||\n modalSnackMessage.detailedErrorMsg.length < 5\n ) {\n message = modalSnackMessage.message;\n }\n }\n\n return (\n \n \n \n {children}\n \n );\n};\n\nexport default ModalWrapper;\n","// This file is part of MinIO Operator\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useEffect, useState } from \"react\";\nimport clsx from \"clsx\";\nimport {\n AGPLV3Logo,\n Box,\n breakPoints,\n Button,\n CheckCircleIcon,\n ConsoleEnterprise,\n ConsoleStandard,\n LicenseDocIcon,\n} from \"mds\";\nimport { SubnetInfo } from \"./types\";\nimport {\n COMMUNITY_PLAN_FEATURES,\n ENTERPRISE_PLAN_FEATURES,\n FEATURE_ITEMS,\n getRenderValue,\n LICENSE_PLANS,\n PAID_PLANS,\n STANDARD_PLAN_FEATURES,\n} from \"./utils\";\nimport styled from \"styled-components\";\nimport get from \"lodash/get\";\n\ninterface IRegisterStatus {\n activateProductModal: any;\n closeModalAndFetchLicenseInfo: any;\n licenseInfo: SubnetInfo | undefined;\n currentPlanID: number;\n setActivateProductModal: any;\n}\n\nconst PlanListContainer = styled.div(({ theme }) => ({\n display: \"grid\",\n\n margin: \"0 1.5rem 0 1.5rem\",\n\n gridTemplateColumns: \"1fr 1fr 1fr 1fr\",\n\n [`@media (max-width: ${breakPoints.sm}px)`]: {\n gridTemplateColumns: \"1fr 1fr 1fr\",\n },\n\n \"&.paid-plans-only\": {\n display: \"grid\",\n gridTemplateColumns: \"1fr 1fr 1fr\",\n },\n\n \"& .features-col\": {\n flex: 1,\n minWidth: \"260px\",\n\n \"@media (max-width: 600px)\": {\n display: \"none\",\n },\n },\n\n \"& .xs-only\": {\n display: \"none\",\n },\n\n \"& .button-box\": {\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n padding: \"5px 0px 25px 0px\",\n borderLeft: `1px solid ${get(theme, \"borderColor\", \"#EAEAEA\")}`,\n },\n \"& .plan-header\": {\n height: \"99px\",\n borderBottom: `1px solid ${get(theme, \"borderColor\", \"#EAEAEA\")}`,\n },\n \"& .feature-title\": {\n height: \"25px\",\n paddingLeft: \"26px\",\n fontSize: \"14px\",\n\n background: get(theme, \"signalColors.disabled\", \"#E5E5E5\"),\n color: get(theme, \"signalColors.main\", \"#07193E\"),\n\n \"@media (max-width: 600px)\": {\n \"& .feature-title-info .xs-only\": {\n display: \"block\",\n },\n },\n },\n \"& .feature-name\": {\n minHeight: \"60px\",\n padding: \"5px\",\n borderBottom: `1px solid ${get(theme, \"borderColor\", \"#EAEAEA\")}`,\n display: \"flex\",\n alignItems: \"center\",\n paddingLeft: \"26px\",\n fontSize: \"14px\",\n },\n \"& .feature-item\": {\n display: \"flex\",\n flexFlow: \"column\",\n alignItems: \"center\",\n justifyContent: \"center\",\n minHeight: \"60px\",\n padding: \"0 15px 0 15px\",\n borderBottom: `1px solid ${get(theme, \"borderColor\", \"#EAEAEA\")}`,\n borderLeft: `1px solid ${get(theme, \"borderColor\", \"#EAEAEA\")}`,\n fontSize: \"14px\",\n \"& .link-text\": {\n color: \"#2781B0\",\n cursor: \"pointer\",\n textDecoration: \"underline\",\n },\n\n \"&.icon-yes\": {\n width: \"15px\",\n height: \"15px\",\n },\n },\n\n \"& .feature-item-info\": {\n flex: 1,\n display: \"flex\",\n flexFlow: \"column\",\n alignItems: \"center\",\n justifyContent: \"space-around\",\n textAlign: \"center\",\n\n \"@media (max-width: 600px)\": {\n justifyContent: \"space-evenly\",\n width: \"100%\",\n \"& .xs-only\": {\n display: \"block\",\n },\n \"& .plan-feature\": {\n textAlign: \"center\",\n paddingRight: \"10px\",\n },\n },\n },\n\n \"& .plan-col\": {\n minWidth: \"260px\",\n flex: 1,\n },\n\n \"& .active-plan-col\": {\n background: `${get(\n theme,\n \"boxBackground\",\n \"#FDFDFD\",\n )} 0% 0% no-repeat padding-box`,\n boxShadow: \" 0px 3px 20px #00000038\",\n\n \"& .plan-header\": {\n backgroundColor: get(theme, \"signalColors.info\", \"#2781B0\"),\n },\n\n \"& .feature-title\": {\n background: get(theme, \"signalColors.disabled\", \"#E5E5E5\"),\n color: get(theme, \"fontColor\", \"#000\"),\n },\n },\n}));\n\nconst PlanHeaderContainer = styled.div(({ theme }) => ({\n display: \"flex\",\n alignItems: \"flex-start\",\n justifyContent: \"center\",\n flexFlow: \"column\",\n borderLeft: `1px solid ${get(theme, \"borderColor\", \"#EAEAEA\")}`,\n borderBottom: \"0px !important\",\n \"& .plan-header\": {\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n flexFlow: \"column\",\n },\n\n \"& .title-block\": {\n display: \"flex\",\n alignItems: \"center\",\n flexFlow: \"column\",\n width: \"100%\",\n \"& .title-main\": {\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n flex: 1,\n },\n \"& .iconContainer\": {\n \"& .min-icon\": {\n minWidth: 140,\n width: \"100%\",\n maxHeight: 55,\n height: \"100%\",\n },\n },\n },\n\n \"& .open-source\": {\n fontSize: \"14px\",\n display: \"flex\",\n marginBottom: \"5px\",\n alignItems: \"center\",\n \"& .min-icon\": {\n marginRight: \"8px\",\n height: \"12px\",\n width: \"12px\",\n },\n },\n\n \"& .cur-plan-text\": {\n fontSize: \"12px\",\n textTransform: \"uppercase\",\n },\n\n \"@media (max-width: 600px)\": {\n cursor: \"pointer\",\n \"& .title-block\": {\n \"& .title\": {\n fontSize: \"14px\",\n fontWeight: 600,\n },\n },\n },\n\n \"&.active, &.active.xs-active\": {\n color: \"#ffffff\",\n position: \"relative\",\n\n \"& .min-icon\": {\n fill: \"#ffffff\",\n },\n\n \"&:before\": {\n content: \"' '\",\n position: \"absolute\",\n width: \"100%\",\n height: \"18px\",\n backgroundColor: get(theme, \"signalColors.info\", \"#2781B0\"),\n display: \"block\",\n top: -16,\n },\n \"& .iconContainer\": {\n \"& .min-icon\": {\n marginTop: \"-12px\",\n },\n },\n },\n \"&.active\": {\n backgroundColor: get(theme, \"signalColors.info\", \"#2781B0\"),\n color: \"#ffffff\",\n },\n \"&.xs-active\": {\n background: \"#eaeaea\",\n },\n}));\n\nconst ListContainer = styled.div(({ theme }) => ({\n border: `1px solid ${get(theme, \"borderColor\", \"#EAEAEA\")}`,\n borderTop: \"0px\",\n marginBottom: \"45px\",\n \"&::-webkit-scrollbar\": {\n width: \"5px\",\n height: \"5px\",\n },\n \"&::-webkit-scrollbar-track\": {\n background: \"#F0F0F0\",\n borderRadius: 0,\n boxShadow: \"inset 0px 0px 0px 0px #F0F0F0\",\n },\n \"&::-webkit-scrollbar-thumb\": {\n background: \"#777474\",\n borderRadius: 0,\n },\n \"&::-webkit-scrollbar-thumb:hover\": {\n background: \"#5A6375\",\n },\n}));\n\nconst PlanHeader = ({\n isActive,\n isXsViewActive,\n title,\n onClick,\n children,\n}: {\n isActive: boolean;\n isXsViewActive: boolean;\n title: string;\n price?: string;\n onClick: any;\n children: any;\n}) => {\n const plan = title.toLowerCase();\n return (\n {\n onClick && onClick(plan);\n }}\n >\n {children}\n \n );\n};\n\nconst FeatureTitleRowCmp = (props: { featureLabel: any }) => {\n return (\n \n \n

{props.featureLabel}
\n \n \n );\n};\n\nconst PricingFeatureItem = (props: {\n featureLabel: any;\n label?: any;\n detail?: any;\n xsLabel?: string;\n style?: any;\n}) => {\n return (\n \n \n
\n {getRenderValue(props.featureLabel || \"\")}\n
\n \n
{getRenderValue(props.label || \"\")}
\n {getRenderValue(props.detail)}\n\n
{props.xsLabel}
\n
\n
\n
\n );\n};\n\nconst LicensePlans = ({ licenseInfo }: IRegisterStatus) => {\n const [isSmallScreen, setIsSmallScreen] = useState(\n window.innerWidth >= breakPoints.sm,\n );\n\n useEffect(() => {\n const handleWindowResize = () => {\n let extMD = false;\n if (window.innerWidth >= breakPoints.sm) {\n extMD = true;\n }\n setIsSmallScreen(extMD);\n };\n\n window.addEventListener(\"resize\", handleWindowResize);\n\n return () => {\n window.removeEventListener(\"resize\", handleWindowResize);\n };\n }, []);\n\n let currentPlan = !licenseInfo\n ? \"community\"\n : licenseInfo?.plan?.toLowerCase();\n\n const isCommunityPlan = currentPlan === LICENSE_PLANS.COMMUNITY;\n const isStandardPlan = currentPlan === LICENSE_PLANS.STANDARD;\n const isEnterprisePlan = currentPlan === LICENSE_PLANS.ENTERPRISE;\n\n const isPaidPlan = PAID_PLANS.includes(currentPlan);\n\n /*In smaller screen use tabbed view to show features*/\n const [xsPlanView, setXsPlanView] = useState(\"\");\n let isXsViewCommunity = xsPlanView === LICENSE_PLANS.COMMUNITY;\n let isXsViewStandard = xsPlanView === LICENSE_PLANS.STANDARD;\n let isXsViewEnterprise = xsPlanView === LICENSE_PLANS.ENTERPRISE;\n\n const getCommunityPlanHeader = () => {\n return (\n \n \n \n
\n \n
\n
\n
\n \n );\n };\n\n const getStandardPlanHeader = () => {\n return (\n \n \n \n
\n \n
\n
\n
\n \n );\n };\n\n const getEnterpriseHeader = () => {\n return (\n \n \n \n
\n \n
\n
\n
\n \n );\n };\n\n const getButton = (\n link: string,\n btnText: string,\n variant: any,\n plan: string,\n ) => {\n let linkToNav =\n currentPlan !== \"community\" ? \"https://subnet.min.io\" : link;\n return (\n {\n e.preventDefault();\n\n window.open(`${linkToNav}?ref=op`, \"_blank\");\n }}\n label={btnText}\n />\n );\n };\n\n const onPlanClick = (plan: string) => {\n setXsPlanView(plan);\n };\n\n useEffect(() => {\n if (isSmallScreen) {\n setXsPlanView(currentPlan || \"community\");\n } else {\n setXsPlanView(\"\");\n }\n }, [isSmallScreen, currentPlan]);\n\n const featureList = FEATURE_ITEMS;\n return (\n \n \n \n \n \n {featureList.map((fi) => {\n const featureTitleRow = fi.featureTitleRow;\n const isHeader = fi.isHeader;\n\n if (isHeader) {\n if (isPaidPlan) {\n return (\n \n \n \n View License agreement
\n for the registered plan.\n \n
\n );\n }\n\n return (\n \n {fi.label}\n \n );\n }\n if (featureTitleRow) {\n return (\n \n
{getRenderValue(fi.desc)}
\n \n );\n }\n return (\n \n
{getRenderValue(fi.desc)}
\n \n );\n })}\n \n {!isPaidPlan ? (\n \n {COMMUNITY_PLAN_FEATURES.map((fi, idx) => {\n const featureLabel = featureList[idx].desc;\n const { featureTitleRow, isHeader } = fi;\n\n if (isHeader) {\n return getCommunityPlanHeader();\n }\n\n if (featureTitleRow) {\n return (\n \n );\n }\n\n return (\n \n );\n })}\n \n {getButton(\n `https://slack.min.io`,\n \"Join Slack\",\n \"regular\",\n LICENSE_PLANS.COMMUNITY,\n )}\n \n \n ) : null}\n \n {STANDARD_PLAN_FEATURES.map((fi, idx) => {\n const featureLabel = featureList[idx].desc;\n const featureTitleRow = fi.featureTitleRow;\n const isHeader = fi.isHeader;\n\n if (isHeader) {\n return getStandardPlanHeader();\n }\n\n if (featureTitleRow) {\n return (\n \n );\n }\n return (\n \n );\n })}\n\n \n {getButton(\n `https://min.io/signup`,\n !PAID_PLANS.includes(currentPlan)\n ? \"Subscribe\"\n : \"Login to SUBNET\",\n \"callAction\",\n LICENSE_PLANS.STANDARD,\n )}\n \n \n \n {ENTERPRISE_PLAN_FEATURES.map((fi, idx) => {\n const featureLabel = featureList[idx].desc;\n const { featureTitleRow, isHeader, yesIcon } = fi;\n\n if (isHeader) {\n return getEnterpriseHeader();\n }\n\n if (featureTitleRow) {\n return (\n \n );\n }\n\n if (yesIcon) {\n return (\n \n \n
\n \n \n \n
\n
\n );\n }\n return (\n \n );\n })}\n \n {getButton(\n `https://min.io/signup`,\n !PAID_PLANS.includes(currentPlan)\n ? \"Subscribe\"\n : \"Login to SUBNET\",\n \"callAction\",\n LICENSE_PLANS.ENTERPRISE,\n )}\n \n \n
\n
\n
\n );\n};\n\nexport default LicensePlans;\n","// This file is part of MinIO Operator\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useCallback, useEffect, useState } from \"react\";\nimport { ArrowIcon, Button, PageLayout, ProgressBar, Grid } from \"mds\";\nimport { useNavigate } from \"react-router-dom\";\nimport { IAM_PAGES } from \"../../../common/SecureComponent/permissions\";\nimport { SubnetInfo } from \"./types\";\nimport { getLicenseConsent } from \"./utils\";\nimport LicensePlans from \"./LicensePlans\";\nimport RegistrationStatusBanner from \"../Support/RegistrationStatusBanner\";\nimport withSuspense from \"../Common/Components/withSuspense\";\nimport PageHeaderWrapper from \"../Common/PageHeaderWrapper/PageHeaderWrapper\";\nimport api from \"../../../common/api\";\n\nconst LicenseConsentModal = withSuspense(\n React.lazy(() => import(\"./LicenseConsentModal\")),\n);\n\nconst License = () => {\n const navigate = useNavigate();\n const [activateProductModal, setActivateProductModal] =\n useState(false);\n\n const [licenseInfo, setLicenseInfo] = useState();\n const [currentPlanID, setCurrentPlanID] = useState(0);\n const [loadingLicenseInfo, setLoadingLicenseInfo] = useState(false);\n const [initialLicenseLoading, setInitialLicenseLoading] =\n useState(true);\n useState(false);\n const [clusterRegistered, setClusterRegistered] = useState(false);\n\n const [isLicenseConsentOpen, setIsLicenseConsentOpen] =\n useState(false);\n\n const closeModalAndFetchLicenseInfo = () => {\n setActivateProductModal(false);\n fetchLicenseInfo();\n };\n\n const isRegistered = licenseInfo && clusterRegistered;\n\n const isAgplConsentDone = getLicenseConsent();\n\n useEffect(() => {\n const shouldConsent =\n !isRegistered && !isAgplConsentDone && !initialLicenseLoading;\n\n if (shouldConsent && !loadingLicenseInfo) {\n setIsLicenseConsentOpen(true);\n }\n }, [\n isRegistered,\n isAgplConsentDone,\n initialLicenseLoading,\n loadingLicenseInfo,\n ]);\n\n const fetchLicenseInfo = useCallback(() => {\n if (loadingLicenseInfo) {\n return;\n }\n setLoadingLicenseInfo(true);\n api\n .invoke(\"GET\", `/api/v1/subnet/info`)\n .then((res: SubnetInfo) => {\n if (res) {\n if (res.plan === \"STANDARD\") {\n setCurrentPlanID(1);\n } else if (res.plan === \"ENTERPRISE\") {\n setCurrentPlanID(2);\n } else {\n setCurrentPlanID(1);\n }\n setLicenseInfo(res);\n }\n setClusterRegistered(true);\n setLoadingLicenseInfo(false);\n })\n .catch(() => {\n setClusterRegistered(false);\n setLoadingLicenseInfo(false);\n });\n }, [loadingLicenseInfo]);\n\n useEffect(() => {\n if (initialLicenseLoading) {\n fetchLicenseInfo();\n setInitialLicenseLoading(false);\n }\n }, [fetchLicenseInfo, initialLicenseLoading, setInitialLicenseLoading]);\n\n if (loadingLicenseInfo) {\n return (\n \n \n \n );\n }\n\n return (\n \n \n {!isRegistered && (\n navigate(IAM_PAGES.REGISTER_SUPPORT)}\n style={{\n fontSize: \"14px\",\n display: \"flex\",\n alignItems: \"center\",\n textDecoration: \"none\",\n }}\n icon={}\n variant={\"callAction\"}\n >\n Register your cluster\n \n )}\n \n }\n />\n\n \n \n {isRegistered && (\n \n )}\n \n\n \n\n {\n setIsLicenseConsentOpen(false);\n }}\n />\n \n \n );\n};\n\nexport default License;\n","// This file is part of MinIO Operator\n// Copyright (c) 2023 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment } from \"react\";\nimport styled from \"styled-components\";\nimport get from \"lodash/get\";\n\nconst LinkElement = styled.a(({ theme }) => ({\n color: get(theme, \"linkColor\", \"#2781B0\"),\n fontWeight: 600,\n}));\n\nconst LicenseFAQ = () => {\n return (\n \n

What is the GNU AGPL v3?

\n

\n The GNU AGPL v3 is short for the \"GNU Affero General Public License v3.\"\n It is a common open source license certified by the Free Software\n Foundation and the Open Source Initiative. You can get a copy of the GNU\n AGPL v3 license with MinIO source code or at \n \n https://www.gnu.org/licenses/agpl-3.0.en.html\n \n .\n

\n

What does it mean for me to comply with the GNU AGPL v3?

\n

\n When you host or distribute MinIO over a network, the AGPL v3 applies to\n you. Any distribution or copying of MinIO software modified or not has\n to comply with the obligations specified in the AGPL v3. Otherwise, you\n may risk infringing MinIO’s copyrights.\n

\n

Making combined or derivative works of MinIO

\n

\n Combining MinIO software as part of a larger software stack triggers\n your GNU AGPL v3 obligations.\n

\n

\n The method of combining does not matter. When MinIO is linked to a\n larger software stack in any form, including statically, dynamically,\n pipes, or containerized and invoked remotely, the AGPL v3 applies to\n your use. What triggers the AGPL v3 obligations is the exchanging data\n between the larger stack and MinIO.\n

\n

Talking to your Legal Counsel

\n

\n If you have questions, we recommend that you talk to your own attorney\n for legal advice. Purchasing a commercial license from MinIO removes the\n AGPL v3 obligations from MinIO software.\n

\n
\n );\n};\nexport default LicenseFAQ;\n","// This file is part of MinIO Operator\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { selOpMode } from \"../../../systemSlice\";\n\nconst LicenseLink = () => {\n const isOperatorMode = useSelector(selOpMode);\n\n const refFrom = isOperatorMode ? \"op\" : \"con\";\n\n return (\n \n GNU AGPL v3\n \n );\n};\nexport default LicenseLink;\n","// This file is part of MinIO Operator\n// Copyright (c) 2023 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport ModalWrapper from \"../Common/ModalWrapper/ModalWrapper\";\nimport LicenseFAQ from \"./LicenseFAQ\";\nimport { useSelector } from \"react-redux\";\nimport { AppState, useAppDispatch } from \"../../../store\";\nimport { closeFAQModal } from \"./licenseSlice\";\n\nconst FAQModal = () => {\n const dispatch = useAppDispatch();\n const isOpen = useSelector((state: AppState) => state.license.faqModalOpen);\n\n return (\n {\n dispatch(closeFAQModal());\n }}\n >\n \n \n );\n};\n\nexport default FAQModal;\n","// This file is part of MinIO Operator\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport { Box } from \"mds\";\nimport LicenseLink from \"./LicenseLink\";\nimport { openFAQModal } from \"./licenseSlice\";\nimport store from \"../../../store\";\nimport FAQModal from \"./FAQModal\";\n\nexport const LICENSE_PLANS = {\n COMMUNITY: \"community\",\n STANDARD: \"standard\",\n ENTERPRISE: \"enterprise\",\n};\n\ntype FeatureItem = {\n label?: any;\n isHeader?: boolean;\n style?: any;\n desc?: any;\n featureTitleRow?: boolean;\n};\n\nconst FeatureLink = ({ text, anchor }: { text: string; anchor: string }) => {\n return (\n \n {text}\n \n );\n};\n\nexport const FEATURE_ITEMS: FeatureItem[] = [\n {\n label: \"License \",\n isHeader: true,\n },\n {\n label: \"\",\n isHeader: false,\n style: {\n height: \"400px\",\n verticalAlign: \"top\",\n alignItems: \"start\",\n },\n },\n {\n desc: \"Features\",\n featureTitleRow: true,\n },\n {\n desc: \"Unit Price\",\n },\n {\n desc: () => {\n return (\n \n );\n },\n },\n {\n desc: \"SLA\",\n },\n {\n desc: \"Support\",\n },\n {\n desc: \"Critical Security and Bug Detection\",\n },\n {\n desc: () => {\n return ;\n },\n },\n {\n desc: () => {\n return (\n \n );\n },\n },\n {\n desc: \"Annual Architecture Review\",\n },\n {\n desc: \"Annual Performance Review\",\n },\n {\n desc: \"Indemnification\",\n },\n {\n desc: \"Security and Policy Review\",\n },\n];\n\nexport const COMMUNITY_PLAN_FEATURES = [\n {\n label: \"Community\",\n isHeader: true,\n style: {\n borderBottom: 0,\n },\n },\n {\n label: () => {\n return (\n \n \n Designed for developers who are building open source applications in\n compliance with the license, MinIO Trademarks and\n are able to self support themselves. It is fully featured. If you\n distribute, host or create derivative works of the MinIO software\n over the network, the license requires that you also\n distribute the complete, corresponding source code of the combined\n work under the same license. This requirement\n applies whether or not you modified MinIO.\n
\n
\n {\n store.dispatch(openFAQModal());\n }}\n >\n Compliance FAQ\n
\n \n \n \n );\n },\n isHeader: false,\n style: {\n height: \"400px\",\n borderBottom: 0,\n },\n },\n {\n id: \"com_feat_title\",\n featureTitleRow: true,\n },\n {\n id: \"com_license_cost\",\n },\n {\n id: \"com_release\",\n label: \"Upstream\",\n },\n {\n id: \"com_sla\",\n label: \"No SLA\",\n },\n {\n id: \"com_support\",\n label: \"Community:\",\n detail: \"Slack + Github\",\n },\n {\n id: \"com_security\",\n label: \"Self\",\n },\n {\n id: \"com_panic\",\n xsLabel: \"N/A\",\n },\n {\n id: \"com_diag\",\n xsLabel: \"N/A\",\n },\n {\n id: \"com_arch\",\n xsLabel: \"N/A\",\n },\n {\n id: \"com_perf\",\n xsLabel: \"N/A\",\n },\n {\n id: \"com_indemnity\",\n xsLabel: \"N/A\",\n },\n {\n id: \"com_sec_policy\",\n xsLabel: \"N/A\",\n },\n];\n\nexport const STANDARD_PLAN_FEATURES = [\n {\n label: \"Standard\",\n isHeader: true,\n style: {\n borderBottom: 0,\n },\n },\n {\n isHeader: false,\n label: () => {\n return (\n \n \n Designed for customers who require a commercial license and can\n mostly self-support but want the peace of mind that comes with the\n MinIO Subscription Network’s suite of operational capabilities and\n direct-to-engineer interaction. The Standard version is fully\n featured but with SLA limitations.

To learn more about\n the MinIO Subscription Network\n
{\" \"}\n \n click here\n \n .\n \n );\n },\n style: {\n height: \"400px\",\n borderBottom: 0,\n },\n },\n {\n id: \"std_feat_title\",\n featureTitleRow: true,\n },\n {\n id: \"std_license_cost\",\n label: () => (\n \n $10 per TiB per month\n \n ),\n detail: () => (\n \n (Minimum of 200TiB)\n \n ),\n },\n {\n id: \"std_release\",\n label: \"1 Year Long Term Support\",\n },\n {\n id: \"std_sla\",\n label: \"<48 Hours\",\n detail: \"(Local Business Hours)\",\n },\n {\n id: \"std_support\",\n label: \"L4 Direct Engineering\",\n detail: \"support via SUBNET\",\n },\n {\n id: \"std_security\",\n label: \"Continuous Scan and Alert\",\n },\n {\n id: \"std_panic\",\n label: \"1 Per year\",\n },\n {\n id: \"std_diag\",\n label: \"24/7/365\",\n },\n {\n id: \"std_arch\",\n xsLabel: \"N/A\",\n },\n {\n id: \"std_perf\",\n xsLabel: \"N/A\",\n },\n {\n id: \"std_indemnity\",\n xsLabel: \"N/A\",\n },\n {\n id: \"std_sec_policy\",\n xsLabel: \"N/A\",\n },\n];\n\nexport const ENTERPRISE_PLAN_FEATURES = [\n {\n label: \"Enterprise\",\n isHeader: true,\n style: {\n borderBottom: 0,\n },\n },\n {\n isHeader: false,\n label: () => {\n return (\n \n \n Designed for mission critical environments where both a license and\n strict SLAs are required. The Enterprise version is fully featured\n but comes with additional capabilities.

To learn more\n about the MinIO Subscription Network\n
{\" \"}\n \n click here\n \n .\n \n );\n },\n style: {\n height: \"400px\",\n borderBottom: 0,\n },\n },\n {\n id: \"end_feat_title\",\n featureTitleRow: true,\n },\n {\n id: \"ent_license_cost\",\n label: () => (\n \n $20 per TiB per month\n \n ),\n detail: () => (\n \n (Minimum of 100TiB)\n \n ),\n },\n {\n id: \"ent_release\",\n label: \"5 Years Long Term Support\",\n },\n {\n id: \"ent_sla\",\n label: \"<1 hour\",\n },\n {\n id: \"ent_support\",\n label: \"L4 Direct Engineering support via\",\n detail: \"SUBNET, Phone, Web Conference\",\n },\n {\n id: \"ent_security\",\n label: \"Continuous Scan and Alert\",\n },\n {\n id: \"ent_panic\",\n label: \"Unlimited\",\n },\n {\n id: \"ent_diag\",\n label: \"24/7/365\",\n },\n {\n id: \"ent_arch\",\n yesIcon: true,\n },\n {\n id: \"ent_perf\",\n yesIcon: true,\n },\n {\n id: \"ent_indemnity\",\n yesIcon: true,\n },\n {\n id: \"ent_sec_policy\",\n yesIcon: true,\n },\n];\n\nexport const PAID_PLANS = [LICENSE_PLANS.STANDARD, LICENSE_PLANS.ENTERPRISE];\n\nexport const getRenderValue = (val: any) => {\n return typeof val === \"function\" ? val() : val;\n};\n\nexport const LICENSE_CONSENT_STORE_KEY = \"agpl_minio_license_consent\";\nexport const setLicenseConsent = () => {\n localStorage.setItem(LICENSE_CONSENT_STORE_KEY, \"true\");\n};\n\nexport const getLicenseConsent = () => {\n return localStorage.getItem(LICENSE_CONSENT_STORE_KEY) === \"true\";\n};\n","import React from \"react\";\nimport { VerifiedIcon, Box, breakPoints } from \"mds\";\n\nconst RegistrationStatusBanner = ({ email = \"\" }: { email?: string }) => {\n return (\n \n \n Register status:\n \n \n \n Registered\n \n \n \n\n \n Registered to:\n {email}\n \n \n );\n};\nexport default RegistrationStatusBanner;\n","function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e))for(t=0;t{n.d(t,{Z:()=>a});n(2791);var s=n(9945),o=n(184);const a=e=>{let{placeholder:t="",onChange:n,overrideClass:a,value:l,id:i="search-resource",label:r="",sx:c}=e;return(0,o.jsx)(s.Wzg,{placeholder:t,className:a||"",id:i,label:r,onChange:e=>{n(e.target.value)},value:l,startIcon:(0,o.jsx)(s.W1M,{}),sx:c})}},5450:(e,t,n)=>{n.d(t,{Z:()=>i});var s=n(2791),o=n(9945),a=n(184);const l=e=>{const{event:t}=e,[n,l]=s.useState(!1);return(0,a.jsxs)(s.Fragment,{children:[(0,a.jsxs)(o.SCH,{sx:{cursor:"pointer"},children:[(0,a.jsx)(o.bil,{scope:"row",onClick:()=>l(!n),sx:{borderBottom:0},children:t.event_type}),(0,a.jsx)(o.pj1,{onClick:()=>l(!n),sx:{borderBottom:0},children:t.reason}),(0,a.jsx)(o.pj1,{onClick:()=>l(!n),sx:{borderBottom:0},children:t.seen}),(0,a.jsx)(o.pj1,{onClick:()=>l(!n),sx:{borderBottom:0},children:t.message.length>=30?"".concat(t.message.slice(0,30),"..."):t.message}),(0,a.jsx)(o.pj1,{onClick:()=>l(!n),sx:{borderBottom:0},children:n?(0,a.jsx)(o.ZyT,{}):(0,a.jsx)(o.ASC,{})})]}),(0,a.jsx)(o.SCH,{children:(0,a.jsx)(o.pj1,{style:{paddingBottom:0,paddingTop:0},colSpan:5,children:n&&(0,a.jsx)(o.xuv,{useBackground:!0,sx:{padding:10,marginBottom:10},children:t.message})})})]})},i=e=>{let{events:t,loading:n}=e;return n?(0,a.jsx)(o.kod,{}):(0,a.jsx)(o.xuv,{withBorders:!0,customBorderPadding:"0px",children:(0,a.jsxs)(o.iA_,{"aria-label":"collapsible table",children:[(0,a.jsx)(o.ssF,{children:(0,a.jsxs)(o.SCH,{children:[(0,a.jsx)(o.pj1,{children:"Type"}),(0,a.jsx)(o.pj1,{children:"Reason"}),(0,a.jsx)(o.pj1,{children:"Age"}),(0,a.jsx)(o.pj1,{children:"Message"}),(0,a.jsx)(o.pj1,{})]})}),(0,a.jsx)(o.RMI,{children:t.map((e=>(0,a.jsx)(l,{event:e},"".concat(e.event_type,"-").concat(e.seen))))})]})})}},4873:(e,t,n)=>{n.r(t),n.d(t,{default:()=>T});var s=n(2791),o=n(9945),a=n(7689),l=n(1087),i=n(9434),r=n(463),c=n(6444),d=n(6181),p=n.n(d),u=n(1320),m=n(7995),h=n(9114),x=n(1207),j=n(184);const g=c.ZP.div((e=>{let{theme:t}=e;return{"& .highlighted":{"& span":{backgroundColor:p()(t,"signalColors.warning","#FFBD62")}},"& .ansidefault":{color:p()(t,"fontColor","#000"),lineHeight:"16px"}}})),b=e=>{let{tenant:t,namespace:n,podName:a,propLoading:l}=e;const c=(0,u.TL)(),d=(0,i.v9)((e=>e.tenants.loadingTenant)),[p,b]=(0,s.useState)(""),[f,v]=(0,s.useState)([]),[y,S]=(0,s.useState)(!0),C=new r.t1({minWidth:5,fixedHeight:!1});(0,s.useEffect)((()=>{l&&S(!0)}),[l]),(0,s.useEffect)((()=>{d&&S(!0)}),[d]);const k=(e,t)=>{if(!e)return null;let n=(e=e.replace(/([^\x20-\x7F])/g,"")).replace(/((\[[0-9;]+m))/g,""),s=""!==p&&e.toLowerCase().includes(p.toLowerCase());return n.startsWith(" ")?(0,j.jsx)(g,{className:"".concat(s?"highlight":""),children:(0,j.jsx)("span",{className:"tab",children:n})},t):(0,j.jsx)(g,{className:"".concat(s?"highlight":""),children:(0,j.jsx)("span",{className:"ansidefault",children:n})},t)};function w(e){let{columnIndex:t,key:n,parent:s,index:o,style:a}=e;return(0,j.jsx)(r.Z8,{cache:C,columnIndex:t,parent:s,rowIndex:o,children:(0,j.jsx)("div",{style:{...a},children:k(f[o],o)})},n)}return(0,s.useEffect)((()=>{y&&x.Z.invoke("GET","/api/v1/namespaces/".concat(n,"/tenants/").concat(t,"/pods/").concat(a)).then((e=>{v(e.split("\n")),S(!1)})).catch((e=>{c((0,m.Ih)(e)),S(!1)}))}),[y,a,n,t,c]),(0,j.jsxs)(s.Fragment,{children:[(0,j.jsx)(o.rjZ,{item:!0,xs:12,sx:{display:"flex",justifyContent:"space-between",marginBottom:"1rem",alignItems:"center",gap:10,"& button":{flexGrow:0,marginLeft:8}},children:(0,j.jsx)(h.Z,{value:p,placeholder:"Highlight Line",onChange:e=>{b(e)}})}),(0,j.jsx)(o.rjZ,{item:!0,xs:12,children:(0,j.jsx)(o.xuv,{sx:{minHeight:400,height:"calc(100vh - 310px)",overflow:"hidden",fontSize:13,padding:"25px 45px 0"},useBackground:!0,withBorders:!0,children:f.length>=1&&(0,j.jsx)(r.qj,{children:e=>{let{width:t,height:n}=e;return(0,j.jsx)(r.aV,{rowHeight:e=>C.rowHeight(e),overscanRowCount:15,rowCount:f.length,rowRenderer:w,width:t,height:n})}})})})]})};var f=n(5248),v=n(5450);const y=e=>{let{tenant:t,namespace:n,podName:a,propLoading:l}=e;const r=(0,u.TL)(),c=(0,i.v9)((e=>e.tenants.loadingTenant)),[d,p]=(0,s.useState)([]),[h,g]=(0,s.useState)(!0);return(0,s.useEffect)((()=>{l&&g(!0)}),[l]),(0,s.useEffect)((()=>{c&&g(!0)}),[c]),(0,s.useEffect)((()=>{h&&x.Z.invoke("GET","/api/v1/namespaces/".concat(n,"/tenants/").concat(t,"/pods/").concat(a,"/events")).then((e=>{for(let t=0;t{r((0,m.Ih)(e)),g(!1)}))}),[h,a,n,t,r]),(0,j.jsx)(s.Fragment,{children:(0,j.jsx)(o.rjZ,{item:!0,xs:12,children:(0,j.jsx)(v.Z,{events:d,loading:h})})})},S={display:"grid",gridTemplateColumns:"2fr 1fr",gridAutoFlow:"row",gap:2,padding:"15px",["@media (max-width: ".concat(o.Egj.sm,"px)")]:{gridTemplateColumns:"1fr",gridAutoFlow:"dense"}},C=e=>{let{title:t}=e;return(0,j.jsx)(o.NZf,{separator:!0,sx:{marginBottom:5},children:t})},k=e=>{let{describeInfo:t}=e;return(0,j.jsx)(s.Fragment,{children:(0,j.jsxs)("div",{id:"pod-describe-summary-content",children:[(0,j.jsx)(C,{title:"Summary"}),(0,j.jsxs)(o.xuv,{sx:{...S},children:[(0,j.jsx)(o.kKA,{label:"Name",value:t.name}),(0,j.jsx)(o.kKA,{label:"Namespace",value:t.namespace}),(0,j.jsx)(o.kKA,{label:"Node",value:t.nodeName}),(0,j.jsx)(o.kKA,{label:"Start time",value:t.startTime}),(0,j.jsx)(o.kKA,{label:"Status",value:t.phase}),(0,j.jsx)(o.kKA,{label:"QoS Class",value:t.qosClass}),(0,j.jsx)(o.kKA,{label:"IP",value:t.podIP})]})]})})},w=e=>{let{annotations:t}=e;return(0,j.jsx)(s.Fragment,{children:(0,j.jsxs)("div",{id:"pod-describe-annotations-content",children:[(0,j.jsx)(C,{title:"Annotations"}),(0,j.jsx)(o.xuv,{children:t.map(((e,t)=>(0,j.jsx)(o.Vp9,{id:"".concat(e.key,"-").concat(e.value),sx:{margin:"0.5%"},label:"".concat(e.key,": ").concat(e.value)},t)))})]})})},A=e=>{let{labels:t}=e;return(0,j.jsx)(s.Fragment,{children:(0,j.jsxs)("div",{id:"pod-describe-labels-content",children:[(0,j.jsx)(C,{title:"Labels"}),(0,j.jsx)(o.xuv,{children:t.map(((e,t)=>(0,j.jsx)(o.Vp9,{id:"".concat(e.key,"-").concat(e.value),sx:{margin:"0.5%"},label:"".concat(e.key,": ").concat(e.value)},t)))})]})})},F=e=>{let{conditions:t}=e;return(0,j.jsx)("div",{id:"pod-describe-conditions-content",children:(0,j.jsx)(E,{title:"Conditions",columns:["type","status"],columnsLabels:["Type","Status"],items:t})})},N=e=>{let{tolerations:t}=e;return(0,j.jsx)("div",{id:"pod-describe-tolerations-content",children:(0,j.jsx)(E,{title:"Tolerations",columns:["effect","key","operator","tolerationSeconds"],columnsLabels:["Effect","Key","Operator","Seconds of toleration"],items:t})})},_=e=>{let{volumes:t}=e;return(0,j.jsx)(s.Fragment,{children:(0,j.jsx)("div",{id:"pod-describe-volumes-content",children:t.map(((e,t)=>(0,j.jsxs)(s.Fragment,{children:[(0,j.jsx)(C,{title:"Volume ".concat(e.name)}),(0,j.jsxs)(o.xuv,{sx:{...S},children:[e.pvc&&(0,j.jsxs)(s.Fragment,{children:[(0,j.jsx)(o.kKA,{label:"Type",value:"Persistant Volume Claim"}),(0,j.jsx)(o.kKA,{label:"Claim Name",value:e.pvc.claimName})]}),e.projected&&(0,j.jsx)(o.kKA,{label:"Type",value:"Projected"})]})]},t)))})})},E=e=>{let{title:t,items:n,columns:a,columnsLabels:l}=e;return(0,j.jsxs)(s.Fragment,{children:[(0,j.jsx)(C,{title:t}),(0,j.jsx)(o.xuv,{children:(0,j.jsxs)(o.iA_,{"aria-label":"collapsible table",children:[(0,j.jsx)(o.ssF,{children:(0,j.jsx)(o.SCH,{children:l.map(((e,t)=>(0,j.jsx)(o.pj1,{children:e},t)))})}),(0,j.jsx)(o.RMI,{children:n.map(((e,t)=>(0,j.jsx)(o.SCH,{children:a.map(((t,n)=>(0,j.jsx)(o.pj1,{children:e[t]},n)))},t)))})]})})]})},P=e=>{let{containers:t}=e;return(0,j.jsx)(s.Fragment,{children:(0,j.jsx)("div",{id:"pod-describe-containers-content",children:t.map(((e,t)=>{var n,a;return(0,j.jsxs)(s.Fragment,{children:[(0,j.jsx)(C,{title:"Container ".concat(e.name)}),(0,j.jsxs)(o.xuv,{style:{wordBreak:"break-all"},sx:{...S},children:[(0,j.jsx)(o.kKA,{label:"Image",value:e.image}),(0,j.jsx)(o.kKA,{label:"Ready",value:"".concat(e.ready)}),(0,j.jsx)(o.kKA,{label:"Ports",value:e.ports.join(", ")}),(0,j.jsx)(o.kKA,{label:"Host Ports",value:e.hostPorts.join(", ")}),(0,j.jsx)(o.kKA,{label:"Arguments",value:e.args.join(", ")}),(0,j.jsx)(o.kKA,{label:"Started",value:null===(n=e.state)||void 0===n?void 0:n.started}),(0,j.jsx)(o.kKA,{label:"State",value:null===(a=e.state)||void 0===a?void 0:a.state})]}),(0,j.jsxs)(o.xuv,{style:{wordBreak:"break-all"},sx:{...S},children:[(0,j.jsx)(o.kKA,{label:"Image ID",value:e.imageID}),(0,j.jsx)(o.kKA,{label:"Container ID",value:e.containerID})]}),(0,j.jsx)(E,{title:"Mounts",columns:["name","mountPath"],columnsLabels:["Name","Mount Path"],items:e.mounts}),(0,j.jsx)(E,{title:"Environment Variables",columns:["key","value"],columnsLabels:["Key","Value"],items:e.environmentVariables})]},t)}))})})},I=e=>{let{tenant:t,namespace:n,podName:a,propLoading:l}=e;const r=(0,u.TL)(),c=(0,i.v9)((e=>e.tenants.loadingTenant)),[d,p]=(0,s.useState)(),[h,g]=(0,s.useState)(!0),[b,f]=(0,s.useState)("pod-describe-summary");(0,s.useEffect)((()=>{l&&g(!0)}),[l]),(0,s.useEffect)((()=>{c&&g(!0)}),[c]),(0,s.useEffect)((()=>{h&&x.Z.invoke("GET","/api/v1/namespaces/".concat(n,"/tenants/").concat(t,"/pods/").concat(a,"/describe")).then((e=>{const t=v(e);p(t),g(!1)})).catch((e=>{r((0,m.Ih)(e)),g(!1)}))}),[h,a,n,t,r]);const v=e=>(e.containers=e.containers.map((e=>(e.environmentVariables=e.environmentVariables.filter((e=>null!==e)),e))),e);return(0,j.jsx)(s.Fragment,{children:d&&(0,j.jsx)(o.rjZ,{item:!0,xs:12,children:(0,j.jsx)(o.mQc,{currentTabOrPath:b,onTabClick:e=>{f(e)},horizontal:!0,options:[{tabConfig:{id:"pod-describe-summary",label:"Summary"},content:(0,j.jsx)(k,{describeInfo:d})},{tabConfig:{id:"pod-describe-annotations",label:"Annotations"},content:(0,j.jsx)(w,{annotations:d.annotations})},{tabConfig:{id:"pod-describe-labels",label:"Labels"},content:(0,j.jsx)(A,{labels:d.labels})},{tabConfig:{id:"pod-describe-conditions",label:"Conditions"},content:(0,j.jsx)(F,{conditions:d.conditions})},{tabConfig:{id:"pod-describe-tolerations",label:"Tolerations"},content:(0,j.jsx)(N,{tolerations:d.tolerations})},{tabConfig:{id:"pod-describe-volumes",label:"Volumes"},content:(0,j.jsx)(_,{volumes:d.volumes})},{tabConfig:{id:"pod-describe-containers",label:"Containers"},content:(0,j.jsx)(P,{containers:d.containers})}]})})})},T=()=>{const{tenantNamespace:e,tenantName:t,podName:n}=(0,a.UO)(),[i,r]=(0,s.useState)("simple-tab-0"),[c,d]=(0,s.useState)(!0);return(0,s.useEffect)((()=>{c&&d(!1)}),[c]),(0,j.jsxs)(s.Fragment,{children:[(0,j.jsxs)(o.NZf,{separator:!0,sx:{marginBottom:15},children:[(0,j.jsx)(l.rU,{to:"/namespaces/".concat(e||"","/tenants/").concat(t||"","/pods"),children:"Pods"})," ","> ",n]}),(0,j.jsx)(o.mQc,{options:[{tabConfig:{id:"simple-tab-0",label:"Events"},content:(0,j.jsx)(y,{tenant:t||"",namespace:e||"",podName:n||"",propLoading:c})},{tabConfig:{id:"simple-tab-1",label:"Describe"},content:(0,j.jsx)(I,{tenant:t||"",namespace:e||"",podName:n||"",propLoading:c})},{tabConfig:{id:"simple-tab-2",label:"Logs"},content:(0,j.jsx)(b,{tenant:t||"",namespace:e||"",podName:n||"",propLoading:c})}],currentTabOrPath:i,onTabClick:e=>{r(e)},horizontal:!0})]})}},3688:(e,t,n)=>{function s(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}.bind(this))}function a(e,t){try{var n=this.props,s=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,s)}finally{this.props=n,this.state=s}}function l(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!==typeof e.getDerivedStateFromProps&&"function"!==typeof t.getSnapshotBeforeUpdate)return e;var n=null,l=null,i=null;if("function"===typeof t.componentWillMount?n="componentWillMount":"function"===typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"===typeof t.componentWillReceiveProps?l="componentWillReceiveProps":"function"===typeof t.UNSAFE_componentWillReceiveProps&&(l="UNSAFE_componentWillReceiveProps"),"function"===typeof t.componentWillUpdate?i="componentWillUpdate":"function"===typeof t.UNSAFE_componentWillUpdate&&(i="UNSAFE_componentWillUpdate"),null!==n||null!==l||null!==i){var r=e.displayName||e.name,c="function"===typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+r+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==l?"\n "+l:"")+(null!==i?"\n "+i:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"===typeof e.getDerivedStateFromProps&&(t.componentWillMount=s,t.componentWillReceiveProps=o),"function"===typeof t.getSnapshotBeforeUpdate){if("function"!==typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=a;var d=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var s=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;d.call(this,e,t,s)}}return e}n.r(t),n.d(t,{polyfill:()=>l}),s.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,a.__suppressDeprecationWarning=!0}}]); -//# sourceMappingURL=384.1367a4bf.chunk.js.map \ No newline at end of file diff --git a/web-app/build/static/js/384.1367a4bf.chunk.js.map b/web-app/build/static/js/384.1367a4bf.chunk.js.map deleted file mode 100644 index 555e474384e..00000000000 --- a/web-app/build/static/js/384.1367a4bf.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/384.1367a4bf.chunk.js","mappings":"iJA8BA,MAyBA,EAzBkBA,IAQK,IARJ,YACjBC,EAAc,GAAE,SAChBC,EAAQ,cACRC,EAAa,MACbC,EAAK,GACLC,EAAK,kBAAiB,MACtBC,EAAQ,GAAE,GACVC,GACeP,EACf,OACEQ,EAAAA,EAAAA,KAACC,EAAAA,IA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GAjB,EAAmBkC,8BAA+B,EAClD5B,EAA0B4B,8BAA+B,EACzDxB,EAAoBwB,8BAA+B,C","sources":["screens/Console/Common/SearchBox.tsx","screens/Console/Tenants/TenantDetails/events/EventsList.tsx","screens/Console/Tenants/TenantDetails/pods/PodLogs.tsx","screens/Console/Tenants/TenantDetails/pods/PodEvents.tsx","screens/Console/Tenants/TenantDetails/pods/PodDescribe.tsx","screens/Console/Tenants/TenantDetails/pods/PodDetails.tsx","../node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js"],"sourcesContent":["// This file is part of MinIO Operator\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport { InputBox, SearchIcon } from \"mds\";\nimport { CSSObject } from \"styled-components\";\n\ntype SearchBoxProps = {\n placeholder?: string;\n value: string;\n onChange: (value: string) => void;\n overrideClass?: any;\n id?: string;\n label?: string;\n sx?: CSSObject;\n};\n\nconst SearchBox = ({\n placeholder = \"\",\n onChange,\n overrideClass,\n value,\n id = \"search-resource\",\n label = \"\",\n sx,\n}: SearchBoxProps) => {\n return (\n {\n onChange(e.target.value);\n }}\n value={value}\n startIcon={}\n sx={sx}\n />\n );\n};\n\nexport default SearchBox;\n","// This file is part of MinIO Operator\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport {\n ProgressBar,\n Table,\n TableBody,\n TableHeadCell,\n TableCell,\n TableHead,\n TableRow,\n Box,\n ExpandCaret,\n CollapseCaret,\n} from \"mds\";\nimport { IEvent } from \"../../ListTenants/types\";\n\ninterface IEventsListProps {\n events: IEvent[];\n loading: boolean;\n}\n\nconst Event = (props: { event: IEvent }) => {\n const { event } = props;\n const [open, setOpen] = React.useState(false);\n\n return (\n \n \n setOpen(!open)}\n sx={{ borderBottom: 0 }}\n >\n {event.event_type}\n \n setOpen(!open)} sx={{ borderBottom: 0 }}>\n {event.reason}\n \n setOpen(!open)} sx={{ borderBottom: 0 }}>\n {event.seen}\n \n setOpen(!open)} sx={{ borderBottom: 0 }}>\n {event.message.length >= 30\n ? `${event.message.slice(0, 30)}...`\n : event.message}\n \n setOpen(!open)} sx={{ borderBottom: 0 }}>\n {open ? : }\n \n \n \n \n {open && (\n \n {event.message}\n \n )}\n \n \n \n );\n};\n\nconst EventsList = ({ events, loading }: IEventsListProps) => {\n if (loading) {\n return ;\n }\n return (\n \n \n \n \n Type\n Reason\n Age\n Message\n \n \n \n \n {events.map((event) => (\n \n ))}\n \n
\n
\n );\n};\n\nexport default EventsList;\n","// This file is part of MinIO Operator\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useEffect, useState } from \"react\";\nimport { Box, Grid } from \"mds\";\nimport { useSelector } from \"react-redux\";\nimport {\n AutoSizer,\n CellMeasurer,\n CellMeasurerCache,\n List,\n} from \"react-virtualized\";\nimport styled from \"styled-components\";\nimport get from \"lodash/get\";\nimport { ErrorResponseHandler } from \"../../../../../common/types\";\nimport { AppState, useAppDispatch } from \"../../../../../store\";\nimport { setErrorSnackMessage } from \"../../../../../systemSlice\";\nimport SearchBox from \"../../../Common/SearchBox\";\nimport api from \"../../../../../common/api\";\n\ninterface IPodLogsProps {\n tenant: string;\n namespace: string;\n podName: string;\n propLoading: boolean;\n}\n\nconst LogsItem = styled.div(({ theme }) => ({\n \"& .highlighted\": {\n \"& span\": {\n backgroundColor: get(theme, \"signalColors.warning\", \"#FFBD62\"),\n },\n },\n \"& .ansidefault\": {\n color: get(theme, \"fontColor\", \"#000\"),\n lineHeight: \"16px\",\n },\n}));\n\nconst PodLogs = ({\n tenant,\n namespace,\n podName,\n propLoading,\n}: IPodLogsProps) => {\n const dispatch = useAppDispatch();\n const loadingTenant = useSelector(\n (state: AppState) => state.tenants.loadingTenant,\n );\n const [highlight, setHighlight] = useState(\"\");\n const [logLines, setLogLines] = useState([]);\n const [loading, setLoading] = useState(true);\n\n const cache = new CellMeasurerCache({\n minWidth: 5,\n fixedHeight: false,\n });\n\n useEffect(() => {\n if (propLoading) {\n setLoading(true);\n }\n }, [propLoading]);\n\n useEffect(() => {\n if (loadingTenant) {\n setLoading(true);\n }\n }, [loadingTenant]);\n\n const renderLog = (logMessage: string, index: number) => {\n if (!logMessage) {\n return null;\n }\n // remove any non ascii characters, exclude any control codes\n logMessage = logMessage.replace(/([^\\x20-\\x7F])/g, \"\");\n\n // regex for terminal colors like e.g. `[31;4m `\n const tColorRegex = /((\\[[0-9;]+m))/g;\n\n // get substring if there was a match for to split what\n // is going to be colored and what not, here we add color\n // only to the first match.\n let substr = logMessage.replace(tColorRegex, \"\");\n\n // in case highlight is set, we select the line that contains the requested string\n let highlightedLine =\n highlight !== \"\"\n ? logMessage.toLowerCase().includes(highlight.toLowerCase())\n : false;\n\n // if starts with multiple spaces add padding\n if (substr.startsWith(\" \")) {\n return (\n \n {substr}\n \n );\n } else {\n // for all remaining set default class\n return (\n \n {substr}\n \n );\n }\n };\n\n useEffect(() => {\n if (loading) {\n api\n .invoke(\n \"GET\",\n `/api/v1/namespaces/${namespace}/tenants/${tenant}/pods/${podName}`,\n )\n .then((res: string) => {\n setLogLines(res.split(\"\\n\"));\n setLoading(false);\n })\n .catch((err: ErrorResponseHandler) => {\n dispatch(setErrorSnackMessage(err));\n setLoading(false);\n });\n }\n }, [loading, podName, namespace, tenant, dispatch]);\n\n function cellRenderer({ columnIndex, key, parent, index, style }: any) {\n return (\n // @ts-ignore\n \n \n {renderLog(logLines[index], index)}\n \n \n );\n }\n\n return (\n \n \n {\n setHighlight(value);\n }}\n />\n \n \n \n {logLines.length >= 1 && (\n // @ts-ignore\n \n {({ width, height }) => (\n // @ts-ignore\n cache.rowHeight(item)}\n overscanRowCount={15}\n rowCount={logLines.length}\n rowRenderer={cellRenderer}\n width={width}\n height={height}\n />\n )}\n \n )}\n \n \n \n );\n};\n\nexport default PodLogs;\n","// This file is part of MinIO Operator\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { useEffect, useState } from \"react\";\nimport { Grid } from \"mds\";\nimport { useSelector } from \"react-redux\";\nimport { IEvent } from \"../../ListTenants/types\";\nimport { niceDays } from \"../../../../../common/utils\";\nimport { ErrorResponseHandler } from \"../../../../../common/types\";\nimport { AppState, useAppDispatch } from \"../../../../../store\";\nimport { setErrorSnackMessage } from \"../../../../../systemSlice\";\nimport api from \"../../../../../common/api\";\nimport EventsList from \"../events/EventsList\";\n\ninterface IPodEventsProps {\n tenant: string;\n namespace: string;\n podName: string;\n propLoading: boolean;\n}\n\nconst PodEvents = ({\n tenant,\n namespace,\n podName,\n propLoading,\n}: IPodEventsProps) => {\n const dispatch = useAppDispatch();\n const loadingTenant = useSelector(\n (state: AppState) => state.tenants.loadingTenant,\n );\n const [events, setEvents] = useState([]);\n const [loading, setLoading] = useState(true);\n\n useEffect(() => {\n if (propLoading) {\n setLoading(true);\n }\n }, [propLoading]);\n\n useEffect(() => {\n if (loadingTenant) {\n setLoading(true);\n }\n }, [loadingTenant]);\n\n useEffect(() => {\n if (loading) {\n api\n .invoke(\n \"GET\",\n `/api/v1/namespaces/${namespace}/tenants/${tenant}/pods/${podName}/events`,\n )\n .then((res: IEvent[]) => {\n for (let i = 0; i < res.length; i++) {\n let currentTime = (Date.now() / 1000) | 0;\n\n res[i].seen = niceDays((currentTime - res[i].last_seen).toString());\n }\n setEvents(res);\n setLoading(false);\n })\n .catch((err: ErrorResponseHandler) => {\n dispatch(setErrorSnackMessage(err));\n setLoading(false);\n });\n }\n }, [loading, podName, namespace, tenant, dispatch]);\n\n return (\n \n \n \n \n \n );\n};\n\nexport default PodEvents;\n","// This file is part of MinIO Operator\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useEffect, useState } from \"react\";\nimport {\n Box,\n breakPoints,\n Grid,\n SectionTitle,\n Table,\n TableBody,\n TableCell,\n TableHead,\n TableRow,\n Tabs,\n Tag,\n ValuePair,\n} from \"mds\";\nimport { ErrorResponseHandler } from \"../../../../../common/types\";\nimport api from \"../../../../../common/api\";\nimport { useSelector } from \"react-redux\";\nimport { AppState, useAppDispatch } from \"../../../../../store\";\nimport { setErrorSnackMessage } from \"../../../../../systemSlice\";\n\ninterface IPodEventsProps {\n tenant: string;\n namespace: string;\n podName: string;\n propLoading: boolean;\n}\n\ninterface Annotation {\n key: string;\n value: string;\n}\n\ninterface Condition {\n status: string;\n type: string;\n}\n\ninterface EnvVar {\n key: string;\n value: string;\n}\n\ninterface Mount {\n mountPath: string;\n name: string;\n}\n\ninterface State {\n started: string;\n state: string;\n}\n\ninterface Container {\n args: string[];\n containerID: string;\n environmentVariables: EnvVar[];\n hostPorts: string[];\n image: string;\n imageID: string;\n lastState: any;\n mounts: Mount[];\n name: string;\n ports: string[];\n ready: boolean;\n state: State;\n}\n\ninterface Label {\n key: string;\n value: string;\n}\n\ninterface Toleration {\n effect: string;\n key: string;\n operator: string;\n tolerationSeconds: number;\n}\n\ninterface VolumePVC {\n claimName: string;\n}\n\ninterface Volume {\n name: string;\n pvc?: VolumePVC;\n projected?: any;\n}\n\ninterface DescribeResponse {\n annotations: Annotation[];\n conditions: Condition[];\n containers: Container[];\n controllerRef: string;\n labels: Label[];\n name: string;\n namespace: string;\n nodeName: string;\n nodeSelector: string[];\n phase: string;\n podIP: string;\n qosClass: string;\n startTime: string;\n tolerations: Toleration[];\n volumes: Volume[];\n}\n\ninterface IPodDescribeSummaryProps {\n describeInfo: DescribeResponse;\n}\n\ninterface IPodDescribeAnnotationsProps {\n annotations: Annotation[];\n}\n\ninterface IPodDescribeLabelsProps {\n labels: Label[];\n}\n\ninterface IPodDescribeConditionsProps {\n conditions: Condition[];\n}\n\ninterface IPodDescribeTolerationsProps {\n tolerations: Toleration[];\n}\n\ninterface IPodDescribeVolumesProps {\n volumes: Volume[];\n}\n\ninterface IPodDescribeContainersProps {\n containers: Container[];\n}\n\ninterface IPodDescribeTableProps {\n title: string;\n columns: string[];\n columnsLabels: string[];\n items: any[];\n}\n\nconst twoColCssGridLayoutConfig = {\n display: \"grid\",\n gridTemplateColumns: \"2fr 1fr\",\n gridAutoFlow: \"row\",\n gap: 2,\n padding: \"15px\",\n [`@media (max-width: ${breakPoints.sm}px)`]: {\n gridTemplateColumns: \"1fr\",\n gridAutoFlow: \"dense\",\n },\n};\n\nconst HeaderSection = ({ title }: { title: string }) => {\n return (\n \n {title}\n \n );\n};\n\nconst PodDescribeSummary = ({ describeInfo }: IPodDescribeSummaryProps) => {\n return (\n \n
\n \n \n \n \n \n \n \n \n \n \n
\n
\n );\n};\n\nconst PodDescribeAnnotations = ({\n annotations,\n}: IPodDescribeAnnotationsProps) => {\n return (\n \n
\n \n \n {annotations.map((annotation, index) => (\n \n ))}\n \n
\n
\n );\n};\n\nconst PodDescribeLabels = ({ labels }: IPodDescribeLabelsProps) => {\n return (\n \n
\n \n \n {labels.map((label, index) => (\n \n ))}\n \n
\n
\n );\n};\n\nconst PodDescribeConditions = ({ conditions }: IPodDescribeConditionsProps) => {\n return (\n
\n \n
\n );\n};\n\nconst PodDescribeTolerations = ({\n tolerations,\n}: IPodDescribeTolerationsProps) => {\n return (\n
\n \n
\n );\n};\n\nconst PodDescribeVolumes = ({ volumes }: IPodDescribeVolumesProps) => {\n return (\n \n
\n {volumes.map((volume, index) => (\n \n \n \n {volume.pvc && (\n \n \n \n \n )}\n {/* TODO Add component to display projected data (Maybe change API response) */}\n {volume.projected && (\n \n )}\n \n \n ))}\n
\n
\n );\n};\n\nconst PodDescribeTable = ({\n title,\n items,\n columns,\n columnsLabels,\n}: IPodDescribeTableProps) => {\n return (\n \n \n \n \n \n \n {columnsLabels.map((label, index) => (\n {label}\n ))}\n \n \n \n {items.map((item, i) => {\n return (\n \n {columns.map((column, j) => (\n {item[column]}\n ))}\n \n );\n })}\n \n
\n
\n
\n );\n};\n\nconst PodDescribeContainers = ({ containers }: IPodDescribeContainersProps) => {\n return (\n \n
\n {containers.map((container, index) => (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ))}\n
\n
\n );\n};\n\nconst PodDescribe = ({\n tenant,\n namespace,\n podName,\n propLoading,\n}: IPodEventsProps) => {\n const dispatch = useAppDispatch();\n const loadingTenant = useSelector(\n (state: AppState) => state.tenants.loadingTenant,\n );\n\n const [describeInfo, setDescribeInfo] = useState();\n const [loading, setLoading] = useState(true);\n const [curTab, setCurTab] = useState(\"pod-describe-summary\");\n\n useEffect(() => {\n if (propLoading) {\n setLoading(true);\n }\n }, [propLoading]);\n\n useEffect(() => {\n if (loadingTenant) {\n setLoading(true);\n }\n }, [loadingTenant]);\n\n useEffect(() => {\n if (loading) {\n api\n .invoke(\n \"GET\",\n `/api/v1/namespaces/${namespace}/tenants/${tenant}/pods/${podName}/describe`,\n )\n .then((res: DescribeResponse) => {\n const cleanRes = cleanDescribeResponseEnvVariables(res);\n setDescribeInfo(cleanRes);\n setLoading(false);\n })\n .catch((err: ErrorResponseHandler) => {\n dispatch(setErrorSnackMessage(err));\n setLoading(false);\n });\n }\n }, [loading, podName, namespace, tenant, dispatch]);\n\n const cleanDescribeResponseEnvVariables = (\n res: DescribeResponse,\n ): DescribeResponse => {\n res.containers = res.containers.map((c) => {\n c.environmentVariables = c.environmentVariables.filter(\n (item) => item !== null,\n );\n return c;\n });\n return res;\n };\n\n return (\n \n {describeInfo && (\n \n {\n setCurTab(newValue);\n }}\n horizontal\n options={[\n {\n tabConfig: { id: \"pod-describe-summary\", label: \"Summary\" },\n content: ,\n },\n {\n tabConfig: {\n id: \"pod-describe-annotations\",\n label: \"Annotations\",\n },\n content: (\n \n ),\n },\n {\n tabConfig: { id: \"pod-describe-labels\", label: \"Labels\" },\n content: ,\n },\n {\n tabConfig: {\n id: \"pod-describe-conditions\",\n label: \"Conditions\",\n },\n content: (\n \n ),\n },\n {\n tabConfig: {\n id: \"pod-describe-tolerations\",\n label: \"Tolerations\",\n },\n content: (\n \n ),\n },\n {\n tabConfig: { id: \"pod-describe-volumes\", label: \"Volumes\" },\n content: ,\n },\n {\n tabConfig: {\n id: \"pod-describe-containers\",\n label: \"Containers\",\n },\n content: (\n \n ),\n },\n ]}\n />\n \n )}\n \n );\n};\n\nexport default PodDescribe;\n","// This file is part of MinIO Operator\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useEffect, useState } from \"react\";\nimport { SectionTitle, Tabs } from \"mds\";\nimport { Link, useParams } from \"react-router-dom\";\n\nimport PodLogs from \"./PodLogs\";\nimport PodEvents from \"./PodEvents\";\nimport PodDescribe from \"./PodDescribe\";\n\nconst PodDetails = () => {\n const { tenantNamespace, tenantName, podName } = useParams();\n\n const [curTab, setCurTab] = useState(\"simple-tab-0\");\n const [loading, setLoading] = useState(true);\n\n useEffect(() => {\n if (loading) {\n setLoading(false);\n }\n }, [loading]);\n\n return (\n \n \n \n Pods\n {\" \"}\n > {podName}\n \n \n ),\n },\n {\n tabConfig: { id: \"simple-tab-1\", label: \"Describe\" },\n content: (\n \n ),\n },\n {\n tabConfig: { id: \"simple-tab-2\", label: \"Logs\" },\n content: (\n \n ),\n },\n ]}\n currentTabOrPath={curTab}\n onTabClick={(tab) => {\n setCurTab(tab);\n }}\n horizontal\n />\n \n );\n};\n\nexport default PodDetails;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nfunction componentWillMount() {\n // Call this.constructor.gDSFP to support sub-classes.\n var state = this.constructor.getDerivedStateFromProps(this.props, this.state);\n if (state !== null && state !== undefined) {\n this.setState(state);\n }\n}\n\nfunction componentWillReceiveProps(nextProps) {\n // Call this.constructor.gDSFP to support sub-classes.\n // Use the setState() updater to ensure state isn't stale in certain edge cases.\n function updater(prevState) {\n var state = this.constructor.getDerivedStateFromProps(nextProps, prevState);\n return state !== null && state !== undefined ? state : null;\n }\n // Binding \"this\" is important for shallow renderer support.\n this.setState(updater.bind(this));\n}\n\nfunction componentWillUpdate(nextProps, nextState) {\n try {\n var prevProps = this.props;\n var prevState = this.state;\n this.props = nextProps;\n this.state = nextState;\n this.__reactInternalSnapshotFlag = true;\n this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(\n prevProps,\n prevState\n );\n } finally {\n this.props = prevProps;\n this.state = prevState;\n }\n}\n\n// React may warn about cWM/cWRP/cWU methods being deprecated.\n// Add a flag to suppress these warnings for this special case.\ncomponentWillMount.__suppressDeprecationWarning = true;\ncomponentWillReceiveProps.__suppressDeprecationWarning = true;\ncomponentWillUpdate.__suppressDeprecationWarning = true;\n\nfunction polyfill(Component) {\n var prototype = Component.prototype;\n\n if (!prototype || !prototype.isReactComponent) {\n throw new Error('Can only polyfill class components');\n }\n\n if (\n typeof Component.getDerivedStateFromProps !== 'function' &&\n typeof prototype.getSnapshotBeforeUpdate !== 'function'\n ) {\n return Component;\n }\n\n // If new component APIs are defined, \"unsafe\" lifecycles won't be called.\n // Error if any of these lifecycles are present,\n // Because they would work differently between older and newer (16.3+) versions of React.\n var foundWillMountName = null;\n var foundWillReceivePropsName = null;\n var foundWillUpdateName = null;\n if (typeof prototype.componentWillMount === 'function') {\n foundWillMountName = 'componentWillMount';\n } else if (typeof prototype.UNSAFE_componentWillMount === 'function') {\n foundWillMountName = 'UNSAFE_componentWillMount';\n }\n if (typeof prototype.componentWillReceiveProps === 'function') {\n foundWillReceivePropsName = 'componentWillReceiveProps';\n } else if (typeof prototype.UNSAFE_componentWillReceiveProps === 'function') {\n foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';\n }\n if (typeof prototype.componentWillUpdate === 'function') {\n foundWillUpdateName = 'componentWillUpdate';\n } else if (typeof prototype.UNSAFE_componentWillUpdate === 'function') {\n foundWillUpdateName = 'UNSAFE_componentWillUpdate';\n }\n if (\n foundWillMountName !== null ||\n foundWillReceivePropsName !== null ||\n foundWillUpdateName !== null\n ) {\n var componentName = Component.displayName || Component.name;\n var newApiName =\n typeof Component.getDerivedStateFromProps === 'function'\n ? 'getDerivedStateFromProps()'\n : 'getSnapshotBeforeUpdate()';\n\n throw Error(\n 'Unsafe legacy lifecycles will not be called for components using new component APIs.\\n\\n' +\n componentName +\n ' uses ' +\n newApiName +\n ' but also contains the following legacy lifecycles:' +\n (foundWillMountName !== null ? '\\n ' + foundWillMountName : '') +\n (foundWillReceivePropsName !== null\n ? '\\n ' + foundWillReceivePropsName\n : '') +\n (foundWillUpdateName !== null ? '\\n ' + foundWillUpdateName : '') +\n '\\n\\nThe above lifecycles should be removed. Learn more about this warning here:\\n' +\n 'https://fb.me/react-async-component-lifecycle-hooks'\n );\n }\n\n // React <= 16.2 does not support static getDerivedStateFromProps.\n // As a workaround, use cWM and cWRP to invoke the new static lifecycle.\n // Newer versions of React will ignore these lifecycles if gDSFP exists.\n if (typeof Component.getDerivedStateFromProps === 'function') {\n prototype.componentWillMount = componentWillMount;\n prototype.componentWillReceiveProps = componentWillReceiveProps;\n }\n\n // React <= 16.2 does not support getSnapshotBeforeUpdate.\n // As a workaround, use cWU to invoke the new lifecycle.\n // Newer versions of React will ignore that lifecycle if gSBU exists.\n if (typeof prototype.getSnapshotBeforeUpdate === 'function') {\n if (typeof prototype.componentDidUpdate !== 'function') {\n throw new Error(\n 'Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype'\n );\n }\n\n prototype.componentWillUpdate = componentWillUpdate;\n\n var componentDidUpdate = prototype.componentDidUpdate;\n\n prototype.componentDidUpdate = function componentDidUpdatePolyfill(\n prevProps,\n prevState,\n maybeSnapshot\n ) {\n // 16.3+ will not execute our will-update method;\n // It will pass a snapshot value to did-update though.\n // Older versions will require our polyfilled will-update value.\n // We need to handle both cases, but can't just check for the presence of \"maybeSnapshot\",\n // Because for <= 15.x versions this might be a \"prevContext\" object.\n // We also can't just check \"__reactInternalSnapshot\",\n // Because get-snapshot might return a falsy value.\n // So check for the explicit __reactInternalSnapshotFlag flag to determine behavior.\n var snapshot = this.__reactInternalSnapshotFlag\n ? this.__reactInternalSnapshot\n : maybeSnapshot;\n\n componentDidUpdate.call(this, prevProps, prevState, snapshot);\n };\n }\n\n return Component;\n}\n\nexport { polyfill };\n"],"names":["_ref","placeholder","onChange","overrideClass","value","id","label","sx","_jsx","InputBox","className","e","target","startIcon","SearchIcon","Event","props","event","open","setOpen","React","_jsxs","children","TableRow","cursor","TableHeadCell","scope","onClick","borderBottom","event_type","TableCell","reason","seen","message","length","concat","slice","CollapseCaret","ExpandCaret","style","paddingBottom","paddingTop","colSpan","Box","useBackground","padding","marginBottom","events","loading","ProgressBar","withBorders","customBorderPadding","Table","TableHead","TableBody","map","LogsItem","styled","div","theme","backgroundColor","get","color","lineHeight","_ref2","tenant","namespace","podName","propLoading","dispatch","useAppDispatch","loadingTenant","useSelector","state","tenants","highlight","setHighlight","useState","logLines","setLogLines","setLoading","cache","CellMeasurerCache","minWidth","fixedHeight","useEffect","renderLog","logMessage","index","substr","replace","highlightedLine","toLowerCase","includes","startsWith","cellRenderer","_ref3","columnIndex","key","parent","CellMeasurer","rowIndex","api","invoke","then","res","split","catch","err","setErrorSnackMessage","Fragment","Grid","item","xs","display","justifyContent","alignItems","gap","flexGrow","marginLeft","SearchBox","minHeight","height","overflow","fontSize","AutoSizer","_ref4","width","List","rowHeight","overscanRowCount","rowCount","rowRenderer","setEvents","i","currentTime","Date","now","niceDays","last_seen","toString","EventsList","twoColCssGridLayoutConfig","gridTemplateColumns","gridAutoFlow","breakPoints","sm","HeaderSection","title","SectionTitle","separator","PodDescribeSummary","describeInfo","ValuePair","name","nodeName","startTime","phase","qosClass","podIP","PodDescribeAnnotations","annotations","annotation","Tag","margin","PodDescribeLabels","labels","PodDescribeConditions","_ref5","conditions","PodDescribeTable","columns","columnsLabels","items","PodDescribeTolerations","_ref6","tolerations","PodDescribeVolumes","_ref7","volumes","volume","pvc","claimName","projected","_ref8","column","j","PodDescribeContainers","_ref9","containers","container","_container$state","_container$state2","wordBreak","image","ready","ports","join","hostPorts","args","started","imageID","containerID","mounts","environmentVariables","_ref10","setDescribeInfo","curTab","setCurTab","cleanRes","cleanDescribeResponseEnvVariables","c","filter","Tabs","currentTabOrPath","onTabClick","newValue","horizontal","options","tabConfig","content","PodDetails","tenantNamespace","tenantName","useParams","Link","to","PodEvents","PodDescribe","PodLogs","tab","componentWillMount","this","constructor","getDerivedStateFromProps","undefined","setState","componentWillReceiveProps","nextProps","prevState","bind","componentWillUpdate","nextState","prevProps","__reactInternalSnapshotFlag","__reactInternalSnapshot","getSnapshotBeforeUpdate","polyfill","Component","prototype","isReactComponent","Error","foundWillMountName","foundWillReceivePropsName","foundWillUpdateName","UNSAFE_componentWillMount","UNSAFE_componentWillReceiveProps","UNSAFE_componentWillUpdate","componentName","displayName","newApiName","componentDidUpdate","maybeSnapshot","snapshot","call","__suppressDeprecationWarning"],"sourceRoot":""} \ No newline at end of file diff --git a/web-app/build/static/js/405.6fef1560.chunk.js b/web-app/build/static/js/405.6fef1560.chunk.js deleted file mode 100644 index f37e47def1d..00000000000 --- a/web-app/build/static/js/405.6fef1560.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[405],{6405:(e,n,a)=>{a.r(n),a.d(n,{default:()=>v});var t=a(2791),s=a(9434),i=a(9945),l=a(1320),o=a(7995),r=a(5248),c=a(1207),d=a(3508),x=a(184);const v=()=>{const e=(0,l.TL)(),n=(0,s.v9)((e=>e.tenants.tenantInfo)),a=(0,s.v9)((e=>e.tenants.loadingTenant)),[v,m]=(0,t.useState)(!1),[h,u]=(0,t.useState)(!1),[p,j]=(0,t.useState)([]),[f,g]=(0,t.useState)([]),[y,k]=(0,t.useState)(!1),b=(0,t.useCallback)((()=>{c.Z.invoke("GET","/api/v1/namespaces/".concat(null===n||void 0===n?void 0:n.namespace,"/tenants/").concat(null===n||void 0===n?void 0:n.name,"/configuration")).then((e=>{e.environmentVariables&&(j(e.environmentVariables),k(e.sftpExposed))})).catch((n=>{e((0,o.Ih)(n))}))}),[n,e]);(0,t.useEffect)((()=>{n&&b()}),[n,b]);return(0,x.jsxs)(t.Fragment,{children:[(0,x.jsx)(d.Z,{title:"Save and Restart",confirmText:"Restart",cancelText:"Cancel",titleIcon:(0,x.jsx)(i.EjK,{}),isLoading:v,onClose:()=>u(!1),isOpen:h,onConfirm:()=>{m(!0);let a={environmentVariables:p.filter((e=>""!==e.key)),keysToBeDeleted:f,sftpExposed:y};c.Z.invoke("PATCH","/api/v1/namespaces/".concat(null===n||void 0===n?void 0:n.namespace,"/tenants/").concat(null===n||void 0===n?void 0:n.name,"/configuration"),a).then((()=>{m(!1),u(!1),b()})).catch((n=>{e((0,o.Ih)(n)),m(!1)}))},confirmationContent:(0,x.jsx)(t.Fragment,{children:"Are you sure you want to save the changes and restart the service?"})}),a?(0,x.jsx)(i.xuv,{sx:{textAlign:"center"},children:(0,x.jsx)(i.aNw,{})}):(0,x.jsxs)(i.xuv,{children:[(0,x.jsx)(i.NZf,{separator:!0,sx:{marginBottom:15},children:"Configuration"}),(0,x.jsx)(i.rjZ,{container:!0,sx:{"& .envVarRow":{display:"flex",alignItems:"center",justifyContent:"flex-start","&:last-child":{borderBottom:0},"@media (max-width: 900px)":{flex:1,"& div label":{minWidth:50}}},"& .rowActions":{display:"flex",justifyContent:"flex-end","@media (max-width: 900px)":{flex:1}},"& .overlayAction":{marginLeft:10},"& .rowItem":{marginRight:10,display:"flex","& div label":{minWidth:50},"@media (max-width: 900px)":{flexFlow:"column"}}},children:p.map(((e,n)=>(0,x.jsxs)(i.rjZ,{item:!0,xs:12,className:"envVarRow",sx:{marginBottom:15},children:[(0,x.jsx)(i.rjZ,{item:!0,xs:5,className:"rowItem",children:(0,x.jsx)(i.Wzg,{id:"env_var_key",name:"env_var_key",label:"Key",value:e.key,onChange:e=>{const a=[...p];j(a.map(((a,t)=>t===n?{key:e.target.value,value:a.value}:a)))},index:n},"env_var_key_".concat(n.toString()))}),(0,x.jsx)(i.rjZ,{item:!0,xs:5,className:"rowItem",children:(0,x.jsx)(i.Wzg,{id:"env_var_value",name:"env_var_value",label:"Value",value:e.value,onChange:e=>{const a=[...p];j(a.map(((a,t)=>t===n?{key:a.key,value:e.target.value}:a)))},index:n,type:r.Gq[e.key]&&r.Gq[e.key].secret?"password":"text"},"env_var_value_".concat(n.toString()))}),(0,x.jsxs)(i.rjZ,{item:!0,xs:2,className:"rowActions",children:[(0,x.jsx)("div",{className:"overlayAction",children:(0,x.jsx)(i.hU,{size:"small",onClick:()=>{const e=[...p];e.push({key:"",value:""}),j(e)},disabled:n!==p.length-1,children:(0,x.jsx)(i.dtP,{})})}),(0,x.jsx)("div",{className:"overlayAction",children:(0,x.jsx)(i.hU,{size:"small",onClick:()=>{const a=p.filter(((e,a)=>a!==n));j(a),g([...f,e.key])},disabled:p.length<=1,children:(0,x.jsx)(i.HFL,{})})})]})]},"tenant-envVar-".concat(n.toString()))))}),(0,x.jsx)(i.rjZ,{container:!0,children:(0,x.jsx)(i.rjZ,{item:!0,xs:12,sx:{justifyContent:"end",textAlign:"right",marginBottom:15},children:(0,x.jsx)(i.rsf,{label:"SFTP",indicatorLabels:["Enabled","Disabled"],checked:y,value:"expose_sftp",id:"expose-sftp",name:"expose-sftp",onChange:()=>{k(!y)},description:""})})}),(0,x.jsx)(i.rjZ,{item:!0,xs:12,sx:{display:"flex",justifyContent:"flex-end"},children:(0,x.jsx)(i.zxk,{id:"save-environment-variables",type:"submit",variant:"callAction",disabled:h||v,onClick:()=>u(!0),label:"Save"})})]})]})}}}]); -//# sourceMappingURL=405.6fef1560.chunk.js.map \ No newline at end of file diff --git a/web-app/build/static/js/414.f9770abf.chunk.js b/web-app/build/static/js/414.f9770abf.chunk.js new file mode 100644 index 00000000000..42a94416fb8 --- /dev/null +++ b/web-app/build/static/js/414.f9770abf.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[414],{7403:(e,t,n)=>{n.d(t,{U:()=>o,_:()=>a});const a={label:{color:"#07193E",fontSize:13,alignSelf:"center",whiteSpace:"nowrap","&:not(:first-of-type)":{marginLeft:10}},actionsTray:{display:"flex",justifyContent:"space-between",marginBottom:"1rem",alignItems:"center","& button":{flexGrow:0,marginLeft:8}}},o={modalButtonBar:{marginTop:15,display:"flex",alignItems:"center",justifyContent:"flex-end","& button":{marginRight:10},"& button:last-child":{marginRight:0}},modalFormScrollable:{maxHeight:"calc(100vh - 300px)",overflowY:"auto",paddingTop:10}}},5448:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(5043),o=n(649);const s=(e,t)=>{const[n,s]=(0,a.useState)(!1);return[n,(n,a,l,r)=>{s(!0),o.A.invoke(n,a,l,r).then((t=>{s(!1),e(t)})).catch((e=>{s(!1),t(e)}))}]}},4681:(e,t,n)=>{n.d(t,{A:()=>s});n(5043);var a=n(9923),o=n(579);const s=e=>{let{placeholder:t="",onChange:n,overrideClass:s,value:l,id:r="search-resource",label:i="",sx:c}=e;return(0,o.jsx)(a.cl_,{placeholder:t,className:s||"",id:r,label:i,onChange:e=>{n(e.target.value)},value:l,startIcon:(0,o.jsx)(a.WIv,{}),sx:c})}},3414:(e,t,n)=>{n.r(t),n.d(t,{default:()=>b});var a=n(5043),o=n(9456),s=n(3216),l=n(9923),r=n(7403),i=n(6483),c=n(2961),d=n(4159),m=n(649),p=n(5448),u=n(8661),h=n(579);const x=e=>{let{deleteOpen:t,selectedPod:n,closeDeleteModalAndRefresh:o}=e;const s=(0,c.jL)(),[r,i]=(0,a.useState)(""),[m,x]=(0,p.A)((()=>o(!0)),(e=>s((0,d.C9)(e))));return(0,h.jsx)(u.A,{title:"Delete Pod",confirmText:"Delete",isOpen:t,titleIcon:(0,h.jsx)(l.xWY,{}),isLoading:m,onConfirm:()=>{r===n.name?x("DELETE","/api/v1/namespaces/".concat(n.namespace,"/tenants/").concat(n.tenant,"/pods/").concat(n.name)):(0,d.C9)({errorMessage:"Tenant name is incorrect",detailedError:""})},onClose:()=>o(!1),confirmButtonProps:{disabled:r!==n.name||m},confirmationContent:(0,h.jsxs)(a.Fragment,{children:["To continue please type ",(0,h.jsx)("b",{children:n.name})," in the box.",(0,h.jsx)(l.azJ,{sx:{marginTop:15},children:(0,h.jsx)(l.cl_,{id:"retype-pod",name:"retype-pod",onChange:e=>{i(e.target.value)},label:"",value:r})})]})})};var g=n(6681),f=n(4681);const b=()=>{const e=(0,c.jL)(),t=(0,s.Zp)(),{tenantName:n,tenantNamespace:p}=(0,s.g)(),u=(0,o.d4)((e=>e.tenants.loadingTenant)),[b,y]=(0,a.useState)([]),[j,C]=(0,a.useState)(!0),[v,S]=(0,a.useState)(!1),[A,w]=(0,a.useState)(null),[E,T]=(0,a.useState)(""),[k,I]=(0,a.useState)(""),[P,L]=(0,a.useState)(!1),[_,B]=(0,a.useState)(!1),[D,N]=(0,a.useState)(!1),[R,K]=(0,a.useState)(!1),[z,F]=(0,a.useState)("");(0,a.useEffect)((()=>{if(_){let e=document.createElement("a");e.setAttribute("href","data:application/gzip;base64,".concat(k)),e.setAttribute("download",z),e.style.display="none",document.body.appendChild(e),e.click(),document.body.removeChild(e),B(!1),N(!0)}}),[_,z,k]);const M=b.filter((e=>e.name.toLowerCase().includes(E.toLowerCase()))),W=[{type:"view",onClick:e=>{t("/namespaces/".concat(p||"","/tenants/").concat(n||"","/pods/").concat(e.name))}},{type:"delete",onClick:e=>{e.tenant=n,e.namespace=p,w(e),S(!0)}}];(0,a.useEffect)((()=>{u&&C(!0)}),[u]),(0,a.useEffect)((()=>{j&&m.A.invoke("GET","/api/v1/namespaces/".concat(p||"","/tenants/").concat(n||"","/pods")).then((e=>{for(let t=0;t{e((0,d.C9)({errorMessage:"Error loading pods",detailedError:t.detailedError}))}))}),[j,n,p,e]),(0,a.useEffect)((()=>{P?(I(""),m.A.invoke("GET","/api/v1/namespaces/".concat(p,"/tenants/").concat(n,"/log-report")).then((async e=>{I(decodeURIComponent(e.blob)),F(e.filename||"tenant-log-report.zip"),L(!1),B(!0),0===e.filename.length||0===e.blob.length?K(!0):K(!1)})).catch((t=>{e((0,d.C9)(t)),L(!1),K(!0)}))):L(!1)}),[n,p,P,e]);return(0,h.jsxs)(a.Fragment,{children:[v&&(0,h.jsx)(x,{deleteOpen:v,selectedPod:A,closeDeleteModalAndRefresh:e=>{S(!1),C(!0)}}),(0,h.jsx)(l._xt,{separator:!0,sx:{marginBottom:15},actions:(0,h.jsx)(g.A,{tooltip:"A report of all tenant logs will be generated as a .zip file and downloaded for analysis. This report can be uploaded to SUBNET to enable our team to best assist you in troubleshooting.",children:(0,h.jsx)(l.$nd,{id:"log_report",onClick:()=>{L(!0)},disabled:0===b.length,children:"Download Log Report"})}),children:"Pods"}),D&&!R&&(0,h.jsx)(l.Wei,{title:"Success",message:"Tenant report downloaded to "+z,variant:"success"}),R&&(0,h.jsx)(l.Wei,{title:"Error",message:"There was a problem generating the report",variant:"error"}),(0,h.jsxs)(l.xA9,{container:!0,sx:{marginBottom:15},children:[(0,h.jsx)(l.xA9,{item:!0,xs:4,sx:{display:"flex",alignItems:"center"}}),(0,h.jsx)(l.xA9,{item:!0,xs:4,sx:{display:"flex",justifyContent:"flex-end",alignItems:"center"}})]}),(0,h.jsx)(l.xA9,{item:!0,xs:12,sx:r._.actionsTray,children:(0,h.jsx)(f.A,{value:E,onChange:e=>{T(e)},placeholder:"Search Pods",id:"search-resource"})}),(0,h.jsx)(l.xA9,{item:!0,xs:12,children:(0,h.jsx)(l.bQt,{columns:[{label:"Name",elementKey:"name",width:200},{label:"Status",elementKey:"status"},{label:"Age",elementKey:"time"},{label:"Pod IP",elementKey:"podIP"},{label:"Restarts",elementKey:"restarts",renderFunction:e=>null!==e?e:0},{label:"Node",elementKey:"node"}],isLoading:j,records:M,itemActions:W,entityName:"Pods",idField:"name",customPaperHeight:"calc(100vh - 400px)"})})]})}}}]); +//# sourceMappingURL=414.f9770abf.chunk.js.map \ No newline at end of file diff --git a/web-app/build/static/js/331.483c2ef9.chunk.js.map b/web-app/build/static/js/414.f9770abf.chunk.js.map similarity index 98% rename from web-app/build/static/js/331.483c2ef9.chunk.js.map rename to web-app/build/static/js/414.f9770abf.chunk.js.map index b7dc2db900b..f9cb735f531 100644 --- a/web-app/build/static/js/331.483c2ef9.chunk.js.map +++ b/web-app/build/static/js/414.f9770abf.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/331.483c2ef9.chunk.js","mappings":"0HAkBO,MAAMA,EAAc,CACzBC,MAAO,CACLC,MAAO,UACPC,SAAU,GACVC,UAAW,SACXC,WAAY,SACZ,wBAAyB,CACvBC,WAAY,KAGhBN,YAAa,CACXO,QAAS,OACTC,eAAgB,gBAChBC,aAAc,OACdC,WAAY,SACZ,WAAY,CACVC,SAAU,EACVL,WAAY,KAKLM,EAAuB,CAClCC,eAAgB,CACdC,UAAW,GACXP,QAAS,OACTG,WAAY,SACZF,eAAgB,WAEhB,WAAY,CACVO,YAAa,IAEf,sBAAuB,CACrBA,YAAa,IAGjBC,oBAAqB,CACnBC,UAAW,sBACXC,UAAW,OACXC,WAAY,I,0DCjDhB,MAuBA,EAvBeC,CACbC,EACAC,KAEA,MAAOC,EAAWC,IAAgBC,EAAAA,EAAAA,WAAkB,GAgBpD,MAAO,CAACF,EAdQG,CAACC,EAAgBC,EAAaC,EAAYC,KACxDN,GAAa,GACbO,EAAAA,EACGC,OAAOL,EAAQC,EAAKC,EAAMC,GAC1BG,MAAMC,IACLV,GAAa,GACbH,EAAUa,EAAI,IAEfC,OAAOC,IACNZ,GAAa,GACbF,EAAQc,EAAI,GACZ,EAGqB,C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GAAI,EACJvH,GAAI,CACFpC,QAAS,OACTC,eAAgB,WAChBE,WAAY,gBAIlBkC,EAAAA,EAAAA,KAACmH,EAAAA,IAAI,CAACE,MAAI,EAACC,GAAI,GAAIvH,GAAI3C,EAAAA,EAAYA,YAAYkF,UAC7CtC,EAAAA,EAAAA,KAACuH,EAAAA,EAAS,CACR1H,MAAO4D,EACP9D,SAAWE,IACT6D,EAAU7D,EAAM,EAElBH,YAAa,cACbI,GAAG,uBAGPE,EAAAA,EAAAA,KAACmH,EAAAA,IAAI,CAACE,MAAI,EAACC,GAAI,GAAGhF,UAChBtC,EAAAA,EAAAA,KAACwH,EAAAA,IAAS,CACRC,QAAS,CACP,CAAEpK,MAAO,OAAQqK,WAAY,OAAQC,MAAO,KAC5C,CAAEtK,MAAO,SAAUqK,WAAY,UAC/B,CAAErK,MAAO,MAAOqK,WAAY,QAC5B,CAAErK,MAAO,SAAUqK,WAAY,SAC/B,CACErK,MAAO,WACPqK,WAAY,WACZE,eAAiBC,GACE,OAAVA,EAAiBA,EAAQ,GAGpC,CAAExK,MAAO,OAAQqK,WAAY,SAE/B/I,UAAW0E,EACXyE,QAAS7C,EACT8C,YAAa1C,EACb2C,WAAW,OACXC,QAAQ,OACRC,kBAAmB,4BAGd,C","sources":["screens/Console/Common/FormComponents/common/styleLibrary.ts","screens/Console/Common/Hooks/useApi.tsx","screens/Console/Common/SearchBox.tsx","screens/Console/Tenants/TenantDetails/DeletePod.tsx","screens/Console/Tenants/TenantDetails/PodsSummary.tsx"],"sourcesContent":["// This file is part of MinIO Operator\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\n// This object contains variables that will be used across form components.\n\nexport const actionsTray = {\n label: {\n color: \"#07193E\",\n fontSize: 13,\n alignSelf: \"center\" as const,\n whiteSpace: \"nowrap\" as const,\n \"&:not(:first-of-type)\": {\n marginLeft: 10,\n },\n },\n actionsTray: {\n display: \"flex\" as const,\n justifyContent: \"space-between\" as const,\n marginBottom: \"1rem\",\n alignItems: \"center\",\n \"& button\": {\n flexGrow: 0,\n marginLeft: 8,\n },\n },\n};\n\nexport const modalStyleUtils: any = {\n modalButtonBar: {\n marginTop: 15,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"flex-end\",\n\n \"& button\": {\n marginRight: 10,\n },\n \"& button:last-child\": {\n marginRight: 0,\n },\n },\n modalFormScrollable: {\n maxHeight: \"calc(100vh - 300px)\",\n overflowY: \"auto\",\n paddingTop: 10,\n },\n};\n","import { useState } from \"react\";\nimport api from \"../../../../common/api\";\nimport { ErrorResponseHandler } from \"../../../../common/types\";\n\ntype NoReturnFunction = (param?: any) => void;\ntype ApiMethodToInvoke = (method: string, url: string, data?: any) => void;\ntype IsApiInProgress = boolean;\n\nconst useApi = (\n onSuccess: NoReturnFunction,\n onError: NoReturnFunction,\n): [IsApiInProgress, ApiMethodToInvoke] => {\n const [isLoading, setIsLoading] = useState(false);\n\n const callApi = (method: string, url: string, data?: any, headers?: any) => {\n setIsLoading(true);\n api\n .invoke(method, url, data, headers)\n .then((res: any) => {\n setIsLoading(false);\n onSuccess(res);\n })\n .catch((err: ErrorResponseHandler) => {\n setIsLoading(false);\n onError(err);\n });\n };\n\n return [isLoading, callApi];\n};\n\nexport default useApi;\n","// This file is part of MinIO Operator\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport { InputBox, SearchIcon } from \"mds\";\nimport { CSSObject } from \"styled-components\";\n\ntype SearchBoxProps = {\n placeholder?: string;\n value: string;\n onChange: (value: string) => void;\n overrideClass?: any;\n id?: string;\n label?: string;\n sx?: CSSObject;\n};\n\nconst SearchBox = ({\n placeholder = \"\",\n onChange,\n overrideClass,\n value,\n id = \"search-resource\",\n label = \"\",\n sx,\n}: SearchBoxProps) => {\n return (\n {\n onChange(e.target.value);\n }}\n value={value}\n startIcon={}\n sx={sx}\n />\n );\n};\n\nexport default SearchBox;\n","// This file is part of MinIO Operator\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { useState, Fragment } from \"react\";\nimport { ConfirmDeleteIcon, Box, InputBox } from \"mds\";\nimport { IPodListElement } from \"../ListTenants/types\";\nimport { ErrorResponseHandler } from \"../../../../common/types\";\nimport { setErrorSnackMessage } from \"../../../../systemSlice\";\nimport { useAppDispatch } from \"../../../../store\";\nimport useApi from \"../../Common/Hooks/useApi\";\nimport ConfirmDialog from \"../../Common/ModalWrapper/ConfirmDialog\";\n\ninterface IDeletePod {\n deleteOpen: boolean;\n selectedPod: IPodListElement;\n closeDeleteModalAndRefresh: (refreshList: boolean) => any;\n}\n\nconst DeletePod = ({\n deleteOpen,\n selectedPod,\n closeDeleteModalAndRefresh,\n}: IDeletePod) => {\n const dispatch = useAppDispatch();\n const [retypePod, setRetypePod] = useState(\"\");\n\n const onDelSuccess = () => closeDeleteModalAndRefresh(true);\n const onDelError = (err: ErrorResponseHandler) =>\n dispatch(setErrorSnackMessage(err));\n const onClose = () => closeDeleteModalAndRefresh(false);\n\n const [deleteLoading, invokeDeleteApi] = useApi(onDelSuccess, onDelError);\n\n const onConfirmDelete = () => {\n if (retypePod !== selectedPod.name) {\n setErrorSnackMessage({\n errorMessage: \"Tenant name is incorrect\",\n detailedError: \"\",\n });\n return;\n }\n invokeDeleteApi(\n \"DELETE\",\n `/api/v1/namespaces/${selectedPod.namespace}/tenants/${selectedPod.tenant}/pods/${selectedPod.name}`,\n );\n };\n\n return (\n }\n isLoading={deleteLoading}\n onConfirm={onConfirmDelete}\n onClose={onClose}\n confirmButtonProps={{\n disabled: retypePod !== selectedPod.name || deleteLoading,\n }}\n confirmationContent={\n \n To continue please type {selectedPod.name} in the box.\n \n ) => {\n setRetypePod(event.target.value);\n }}\n label=\"\"\n value={retypePod}\n />\n \n \n }\n />\n );\n};\n\nexport default DeletePod;\n","// This file is part of MinIO Operator\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useEffect, useState } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { useNavigate, useParams } from \"react-router-dom\";\nimport { Button, DataTable, Grid, InformativeMessage, SectionTitle } from \"mds\";\nimport { actionsTray } from \"../../Common/FormComponents/common/styleLibrary\";\nimport { niceDays } from \"../../../../common/utils\";\nimport { IPodListElement } from \"../ListTenants/types\";\nimport { AppState, useAppDispatch } from \"../../../../store\";\nimport { ErrorResponseHandler } from \"../../../../common/types\";\nimport { setErrorSnackMessage } from \"../../../../systemSlice\";\nimport api from \"../../../../common/api\";\nimport DeletePod from \"./DeletePod\";\nimport TooltipWrapper from \"../../Common/TooltipWrapper/TooltipWrapper\";\nimport SearchBox from \"../../Common/SearchBox\";\n\nconst PodsSummary = () => {\n const dispatch = useAppDispatch();\n const navigate = useNavigate();\n const { tenantName, tenantNamespace } = useParams();\n\n const loadingTenant = useSelector(\n (state: AppState) => state.tenants.loadingTenant,\n );\n\n const [pods, setPods] = useState([]);\n const [loadingPods, setLoadingPods] = useState(true);\n const [deleteOpen, setDeleteOpen] = useState(false);\n const [selectedPod, setSelectedPod] = useState(null);\n const [filter, setFilter] = useState(\"\");\n const [logReportFileContent, setLogReportFileContent] = useState(\"\");\n const [startLogReport, setStartLogReport] = useState(false);\n const [downloadReport, setDownloadReport] = useState(false);\n const [downloadSuccess, setDownloadSuccess] = useState(false);\n const [reportError, setReportError] = useState(false);\n const [filename, setFilename] = useState(\"\");\n\n const podViewAction = (pod: IPodListElement) => {\n navigate(\n `/namespaces/${tenantNamespace || \"\"}/tenants/${tenantName || \"\"}/pods/${\n pod.name\n }`,\n );\n return;\n };\n\n useEffect(() => {\n if (downloadReport) {\n let element = document.createElement(\"a\");\n element.setAttribute(\n \"href\",\n `data:application/gzip;base64,${logReportFileContent}`,\n );\n element.setAttribute(\"download\", filename);\n\n element.style.display = \"none\";\n document.body.appendChild(element);\n\n element.click();\n\n document.body.removeChild(element);\n setDownloadReport(false);\n setDownloadSuccess(true);\n }\n }, [downloadReport, filename, logReportFileContent]);\n\n const closeDeleteModalAndRefresh = (reloadData: boolean) => {\n setDeleteOpen(false);\n setLoadingPods(true);\n };\n\n const confirmDeletePod = (pod: IPodListElement) => {\n pod.tenant = tenantName;\n pod.namespace = tenantNamespace;\n setSelectedPod(pod);\n setDeleteOpen(true);\n };\n\n const filteredRecords: IPodListElement[] = pods.filter((elementItem) =>\n elementItem.name.toLowerCase().includes(filter.toLowerCase()),\n );\n\n const podTableActions = [\n { type: \"view\", onClick: podViewAction },\n { type: \"delete\", onClick: confirmDeletePod },\n ];\n\n useEffect(() => {\n if (loadingTenant) {\n setLoadingPods(true);\n }\n }, [loadingTenant]);\n\n useEffect(() => {\n if (loadingPods) {\n api\n .invoke(\n \"GET\",\n `/api/v1/namespaces/${tenantNamespace || \"\"}/tenants/${\n tenantName || \"\"\n }/pods`,\n )\n .then((result: IPodListElement[]) => {\n for (let i = 0; i < result.length; i++) {\n let currentTime = (Date.now() / 1000) | 0;\n result[i].time = niceDays(\n (currentTime - parseInt(result[i].timeCreated)).toString(),\n );\n }\n setPods(result);\n setLoadingPods(false);\n })\n .catch((err: ErrorResponseHandler) => {\n dispatch(\n setErrorSnackMessage({\n errorMessage: \"Error loading pods\",\n detailedError: err.detailedError,\n }),\n );\n });\n }\n }, [loadingPods, tenantName, tenantNamespace, dispatch]);\n\n useEffect(() => {\n if (startLogReport) {\n setLogReportFileContent(\"\");\n\n api\n .invoke(\n \"GET\",\n `/api/v1/namespaces/${tenantNamespace}/tenants/${tenantName}/log-report`,\n )\n .then(async (res: any) => {\n setLogReportFileContent(decodeURIComponent(res.blob));\n //@ts-ignore\n setFilename(res.filename || \"tenant-log-report.zip\");\n setStartLogReport(false);\n setDownloadReport(true);\n if (res.filename.length === 0 || res.blob.length === 0) {\n setReportError(true);\n } else {\n setReportError(false);\n }\n })\n .catch((err: ErrorResponseHandler) => {\n dispatch(setErrorSnackMessage(err));\n setStartLogReport(false);\n setReportError(true);\n });\n } else {\n // reset start status\n setStartLogReport(false);\n }\n }, [tenantName, tenantNamespace, startLogReport, dispatch]);\n\n const generateTenantLogReport = () => {\n setStartLogReport(true);\n };\n\n return (\n \n {deleteOpen && (\n \n )}\n \n \n Download Log Report\n \n \n }\n >\n Pods\n \n {downloadSuccess && !reportError && (\n \n )}\n\n {reportError && (\n \n )}\n \n \n \n \n \n {\n setFilter(value);\n }}\n placeholder={\"Search Pods\"}\n id=\"search-resource\"\n />\n \n \n {\n return input !== null ? input : 0;\n },\n },\n { label: \"Node\", elementKey: \"node\" },\n ]}\n isLoading={loadingPods}\n records={filteredRecords}\n itemActions={podTableActions}\n entityName=\"Pods\"\n idField=\"name\"\n customPaperHeight={\"calc(100vh - 400px)\"}\n />\n \n \n );\n};\n\nexport default PodsSummary;\n"],"names":["actionsTray","label","color","fontSize","alignSelf","whiteSpace","marginLeft","display","justifyContent","marginBottom","alignItems","flexGrow","modalStyleUtils","modalButtonBar","marginTop","marginRight","modalFormScrollable","maxHeight","overflowY","paddingTop","useApi","onSuccess","onError","isLoading","setIsLoading","useState","callApi","method","url","data","headers","api","invoke","then","res","catch","err","_ref","placeholder","onChange","overrideClass","value","id","sx","_jsx","InputBox","className","e","target","startIcon","SearchIcon","deleteOpen","selectedPod","closeDeleteModalAndRefresh","dispatch","useAppDispatch","retypePod","setRetypePod","deleteLoading","invokeDeleteApi","onDelSuccess","setErrorSnackMessage","ConfirmDialog","title","confirmText","isOpen","titleIcon","ConfirmDeleteIcon","onConfirm","onConfirmDelete","name","concat","namespace","tenant","errorMessage","detailedError","onClose","confirmButtonProps","disabled","confirmationContent","_jsxs","Fragment","children","Box","event","PodsSummary","navigate","useNavigate","tenantName","tenantNamespace","useParams","loadingTenant","useSelector","state","tenants","pods","setPods","loadingPods","setLoadingPods","setDeleteOpen","setSelectedPod","filter","setFilter","logReportFileContent","setLogReportFileContent","startLogReport","setStartLogReport","downloadReport","setDownloadReport","downloadSuccess","setDownloadSuccess","reportError","setReportError","filename","setFilename","useEffect","element","document","createElement","setAttribute","style","body","appendChild","click","removeChild","filteredRecords","elementItem","toLowerCase","includes","podTableActions","type","onClick","pod","result","i","length","currentTime","Date","now","time","niceDays","parseInt","timeCreated","toString","async","decodeURIComponent","blob","DeletePod","reloadData","SectionTitle","separator","actions","TooltipWrapper","tooltip","Button","generateTenantLogReport","InformativeMessage","message","variant","Grid","container","item","xs","SearchBox","DataTable","columns","elementKey","width","renderFunction","input","records","itemActions","entityName","idField","customPaperHeight"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/414.f9770abf.chunk.js","mappings":"0HAkBO,MAAMA,EAAc,CACzBC,MAAO,CACLC,MAAO,UACPC,SAAU,GACVC,UAAW,SACXC,WAAY,SACZ,wBAAyB,CACvBC,WAAY,KAGhBN,YAAa,CACXO,QAAS,OACTC,eAAgB,gBAChBC,aAAc,OACdC,WAAY,SACZ,WAAY,CACVC,SAAU,EACVL,WAAY,KAKLM,EAAuB,CAClCC,eAAgB,CACdC,UAAW,GACXP,QAAS,OACTG,WAAY,SACZF,eAAgB,WAEhB,WAAY,CACVO,YAAa,IAEf,sBAAuB,CACrBA,YAAa,IAGjBC,oBAAqB,CACnBC,UAAW,sBACXC,UAAW,OACXC,WAAY,I,yDCjDhB,MAuBA,EAvBeC,CACbC,EACAC,KAEA,MAAOC,EAAWC,IAAgBC,EAAAA,EAAAA,WAAkB,GAgBpD,MAAO,CAACF,EAdQG,CAACC,EAAgBC,EAAaC,EAAYC,KACxDN,GAAa,GACbO,EAAAA,EACGC,OAAOL,EAAQC,EAAKC,EAAMC,GAC1BG,MAAMC,IACLV,GAAa,GACbH,EAAUa,EAAI,IAEfC,OAAOC,IACNZ,GAAa,GACbF,EAAQc,EAAI,GACZ,EAGqB,C,iECE7B,MAyBA,EAzBkBC,IAQK,IARJ,YACjBC,EAAc,GAAE,SAChBC,EAAQ,cACRC,EAAa,MACbC,EAAK,GACLC,EAAK,kBAAiB,MACtBzC,EAAQ,GAAE,GACV0C,GACeN,EACf,OACEO,EAAAA,EAAAA,KAACC,EAAAA,IAAQ,CACPP,YAAaA,EACbQ,UAAWN,GAAgC,GAC3CE,GAAIA,EACJzC,MAAOA,EACPsC,SAAWQ,IACTR,EAASQ,EAAEC,OAAOP,MAAM,EAE1BA,MAAOA,EACPQ,WAAWL,EAAAA,EAAAA,KAACM,EAAAA,IAAU,IACtBP,GAAIA,GACJ,C,yK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AA,IAAS,CACRC,QAAS,CACP,CAAEpK,MAAO,OAAQqK,WAAY,OAAQC,MAAO,KAC5C,CAAEtK,MAAO,SAAUqK,WAAY,UAC/B,CAAErK,MAAO,MAAOqK,WAAY,QAC5B,CAAErK,MAAO,SAAUqK,WAAY,SAC/B,CACErK,MAAO,WACPqK,WAAY,WACZE,eAAiBC,GACE,OAAVA,EAAiBA,EAAQ,GAGpC,CAAExK,MAAO,OAAQqK,WAAY,SAE/B/I,UAAW0E,EACXyE,QAAS7C,EACT8C,YAAa1C,EACb2C,WAAW,OACXC,QAAQ,OACRC,kBAAmB,4BAGd,C","sources":["screens/Console/Common/FormComponents/common/styleLibrary.ts","screens/Console/Common/Hooks/useApi.tsx","screens/Console/Common/SearchBox.tsx","screens/Console/Tenants/TenantDetails/DeletePod.tsx","screens/Console/Tenants/TenantDetails/PodsSummary.tsx"],"sourcesContent":["// This file is part of MinIO Operator\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\n// This object contains variables that will be used across form components.\n\nexport const actionsTray = {\n label: {\n color: \"#07193E\",\n fontSize: 13,\n alignSelf: \"center\" as const,\n whiteSpace: \"nowrap\" as const,\n \"&:not(:first-of-type)\": {\n marginLeft: 10,\n },\n },\n actionsTray: {\n display: \"flex\" as const,\n justifyContent: \"space-between\" as const,\n marginBottom: \"1rem\",\n alignItems: \"center\",\n \"& button\": {\n flexGrow: 0,\n marginLeft: 8,\n },\n },\n};\n\nexport const modalStyleUtils: any = {\n modalButtonBar: {\n marginTop: 15,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"flex-end\",\n\n \"& button\": {\n marginRight: 10,\n },\n \"& button:last-child\": {\n marginRight: 0,\n },\n },\n modalFormScrollable: {\n maxHeight: \"calc(100vh - 300px)\",\n overflowY: \"auto\",\n paddingTop: 10,\n },\n};\n","import { useState } from \"react\";\nimport api from \"../../../../common/api\";\nimport { ErrorResponseHandler } from \"../../../../common/types\";\n\ntype NoReturnFunction = (param?: any) => void;\ntype ApiMethodToInvoke = (method: string, url: string, data?: any) => void;\ntype IsApiInProgress = boolean;\n\nconst useApi = (\n onSuccess: NoReturnFunction,\n onError: NoReturnFunction,\n): [IsApiInProgress, ApiMethodToInvoke] => {\n const [isLoading, setIsLoading] = useState(false);\n\n const callApi = (method: string, url: string, data?: any, headers?: any) => {\n setIsLoading(true);\n api\n .invoke(method, url, data, headers)\n .then((res: any) => {\n setIsLoading(false);\n onSuccess(res);\n })\n .catch((err: ErrorResponseHandler) => {\n setIsLoading(false);\n onError(err);\n });\n };\n\n return [isLoading, callApi];\n};\n\nexport default useApi;\n","// This file is part of MinIO Operator\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport { InputBox, SearchIcon } from \"mds\";\nimport { CSSObject } from \"styled-components\";\n\ntype SearchBoxProps = {\n placeholder?: string;\n value: string;\n onChange: (value: string) => void;\n overrideClass?: any;\n id?: string;\n label?: string;\n sx?: CSSObject;\n};\n\nconst SearchBox = ({\n placeholder = \"\",\n onChange,\n overrideClass,\n value,\n id = \"search-resource\",\n label = \"\",\n sx,\n}: SearchBoxProps) => {\n return (\n {\n onChange(e.target.value);\n }}\n value={value}\n startIcon={}\n sx={sx}\n />\n );\n};\n\nexport default SearchBox;\n","// This file is part of MinIO Operator\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { useState, Fragment } from \"react\";\nimport { ConfirmDeleteIcon, Box, InputBox } from \"mds\";\nimport { IPodListElement } from \"../ListTenants/types\";\nimport { ErrorResponseHandler } from \"../../../../common/types\";\nimport { setErrorSnackMessage } from \"../../../../systemSlice\";\nimport { useAppDispatch } from \"../../../../store\";\nimport useApi from \"../../Common/Hooks/useApi\";\nimport ConfirmDialog from \"../../Common/ModalWrapper/ConfirmDialog\";\n\ninterface IDeletePod {\n deleteOpen: boolean;\n selectedPod: IPodListElement;\n closeDeleteModalAndRefresh: (refreshList: boolean) => any;\n}\n\nconst DeletePod = ({\n deleteOpen,\n selectedPod,\n closeDeleteModalAndRefresh,\n}: IDeletePod) => {\n const dispatch = useAppDispatch();\n const [retypePod, setRetypePod] = useState(\"\");\n\n const onDelSuccess = () => closeDeleteModalAndRefresh(true);\n const onDelError = (err: ErrorResponseHandler) =>\n dispatch(setErrorSnackMessage(err));\n const onClose = () => closeDeleteModalAndRefresh(false);\n\n const [deleteLoading, invokeDeleteApi] = useApi(onDelSuccess, onDelError);\n\n const onConfirmDelete = () => {\n if (retypePod !== selectedPod.name) {\n setErrorSnackMessage({\n errorMessage: \"Tenant name is incorrect\",\n detailedError: \"\",\n });\n return;\n }\n invokeDeleteApi(\n \"DELETE\",\n `/api/v1/namespaces/${selectedPod.namespace}/tenants/${selectedPod.tenant}/pods/${selectedPod.name}`,\n );\n };\n\n return (\n }\n isLoading={deleteLoading}\n onConfirm={onConfirmDelete}\n onClose={onClose}\n confirmButtonProps={{\n disabled: retypePod !== selectedPod.name || deleteLoading,\n }}\n confirmationContent={\n \n To continue please type {selectedPod.name} in the box.\n \n ) => {\n setRetypePod(event.target.value);\n }}\n label=\"\"\n value={retypePod}\n />\n \n \n }\n />\n );\n};\n\nexport default DeletePod;\n","// This file is part of MinIO Operator\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useEffect, useState } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { useNavigate, useParams } from \"react-router-dom\";\nimport { Button, DataTable, Grid, InformativeMessage, SectionTitle } from \"mds\";\nimport { actionsTray } from \"../../Common/FormComponents/common/styleLibrary\";\nimport { niceDays } from \"../../../../common/utils\";\nimport { IPodListElement } from \"../ListTenants/types\";\nimport { AppState, useAppDispatch } from \"../../../../store\";\nimport { ErrorResponseHandler } from \"../../../../common/types\";\nimport { setErrorSnackMessage } from \"../../../../systemSlice\";\nimport api from \"../../../../common/api\";\nimport DeletePod from \"./DeletePod\";\nimport TooltipWrapper from \"../../Common/TooltipWrapper/TooltipWrapper\";\nimport SearchBox from \"../../Common/SearchBox\";\n\nconst PodsSummary = () => {\n const dispatch = useAppDispatch();\n const navigate = useNavigate();\n const { tenantName, tenantNamespace } = useParams();\n\n const loadingTenant = useSelector(\n (state: AppState) => state.tenants.loadingTenant,\n );\n\n const [pods, setPods] = useState([]);\n const [loadingPods, setLoadingPods] = useState(true);\n const [deleteOpen, setDeleteOpen] = useState(false);\n const [selectedPod, setSelectedPod] = useState(null);\n const [filter, setFilter] = useState(\"\");\n const [logReportFileContent, setLogReportFileContent] = useState(\"\");\n const [startLogReport, setStartLogReport] = useState(false);\n const [downloadReport, setDownloadReport] = useState(false);\n const [downloadSuccess, setDownloadSuccess] = useState(false);\n const [reportError, setReportError] = useState(false);\n const [filename, setFilename] = useState(\"\");\n\n const podViewAction = (pod: IPodListElement) => {\n navigate(\n `/namespaces/${tenantNamespace || \"\"}/tenants/${tenantName || \"\"}/pods/${\n pod.name\n }`,\n );\n return;\n };\n\n useEffect(() => {\n if (downloadReport) {\n let element = document.createElement(\"a\");\n element.setAttribute(\n \"href\",\n `data:application/gzip;base64,${logReportFileContent}`,\n );\n element.setAttribute(\"download\", filename);\n\n element.style.display = \"none\";\n document.body.appendChild(element);\n\n element.click();\n\n document.body.removeChild(element);\n setDownloadReport(false);\n setDownloadSuccess(true);\n }\n }, [downloadReport, filename, logReportFileContent]);\n\n const closeDeleteModalAndRefresh = (reloadData: boolean) => {\n setDeleteOpen(false);\n setLoadingPods(true);\n };\n\n const confirmDeletePod = (pod: IPodListElement) => {\n pod.tenant = tenantName;\n pod.namespace = tenantNamespace;\n setSelectedPod(pod);\n setDeleteOpen(true);\n };\n\n const filteredRecords: IPodListElement[] = pods.filter((elementItem) =>\n elementItem.name.toLowerCase().includes(filter.toLowerCase()),\n );\n\n const podTableActions = [\n { type: \"view\", onClick: podViewAction },\n { type: \"delete\", onClick: confirmDeletePod },\n ];\n\n useEffect(() => {\n if (loadingTenant) {\n setLoadingPods(true);\n }\n }, [loadingTenant]);\n\n useEffect(() => {\n if (loadingPods) {\n api\n .invoke(\n \"GET\",\n `/api/v1/namespaces/${tenantNamespace || \"\"}/tenants/${\n tenantName || \"\"\n }/pods`,\n )\n .then((result: IPodListElement[]) => {\n for (let i = 0; i < result.length; i++) {\n let currentTime = (Date.now() / 1000) | 0;\n result[i].time = niceDays(\n (currentTime - parseInt(result[i].timeCreated)).toString(),\n );\n }\n setPods(result);\n setLoadingPods(false);\n })\n .catch((err: ErrorResponseHandler) => {\n dispatch(\n setErrorSnackMessage({\n errorMessage: \"Error loading pods\",\n detailedError: err.detailedError,\n }),\n );\n });\n }\n }, [loadingPods, tenantName, tenantNamespace, dispatch]);\n\n useEffect(() => {\n if (startLogReport) {\n setLogReportFileContent(\"\");\n\n api\n .invoke(\n \"GET\",\n `/api/v1/namespaces/${tenantNamespace}/tenants/${tenantName}/log-report`,\n )\n .then(async (res: any) => {\n setLogReportFileContent(decodeURIComponent(res.blob));\n //@ts-ignore\n setFilename(res.filename || \"tenant-log-report.zip\");\n setStartLogReport(false);\n setDownloadReport(true);\n if (res.filename.length === 0 || res.blob.length === 0) {\n setReportError(true);\n } else {\n setReportError(false);\n }\n })\n .catch((err: ErrorResponseHandler) => {\n dispatch(setErrorSnackMessage(err));\n setStartLogReport(false);\n setReportError(true);\n });\n } else {\n // reset start status\n setStartLogReport(false);\n }\n }, [tenantName, tenantNamespace, startLogReport, dispatch]);\n\n const generateTenantLogReport = () => {\n setStartLogReport(true);\n };\n\n return (\n \n {deleteOpen && (\n \n )}\n \n \n Download Log Report\n \n \n }\n >\n Pods\n \n {downloadSuccess && !reportError && (\n \n )}\n\n {reportError && (\n \n )}\n \n \n \n \n \n {\n setFilter(value);\n }}\n placeholder={\"Search Pods\"}\n id=\"search-resource\"\n />\n \n \n {\n return input !== null ? input : 0;\n },\n },\n { label: \"Node\", elementKey: \"node\" },\n ]}\n isLoading={loadingPods}\n records={filteredRecords}\n itemActions={podTableActions}\n entityName=\"Pods\"\n idField=\"name\"\n customPaperHeight={\"calc(100vh - 400px)\"}\n />\n \n \n );\n};\n\nexport default PodsSummary;\n"],"names":["actionsTray","label","color","fontSize","alignSelf","whiteSpace","marginLeft","display","justifyContent","marginBottom","alignItems","flexGrow","modalStyleUtils","modalButtonBar","marginTop","marginRight","modalFormScrollable","maxHeight","overflowY","paddingTop","useApi","onSuccess","onError","isLoading","setIsLoading","useState","callApi","method","url","data","headers","api","invoke","then","res","catch","err","_ref","placeholder","onChange","overrideClass","value","id","sx","_jsx","InputBox","className","e","target","startIcon","SearchIcon","deleteOpen","selectedPod","closeDeleteModalAndRefresh","dispatch","useAppDispatch","retypePod","setRetypePod","deleteLoading","invokeDeleteApi","onDelSuccess","setErrorSnackMessage","ConfirmDialog","title","confirmText","isOpen","titleIcon","ConfirmDeleteIcon","onConfirm","onConfirmDelete","name","concat","namespace","tenant","errorMessage","detailedError","onClose","confirmButtonProps","disabled","confirmationContent","_jsxs","Fragment","children","Box","event","PodsSummary","navigate","useNavigate","tenantName","tenantNamespace","useParams","loadingTenant","useSelector","state","tenants","pods","setPods","loadingPods","setLoadingPods","setDeleteOpen","setSelectedPod","filter","setFilter","logReportFileContent","setLogReportFileContent","startLogReport","setStartLogReport","downloadReport","setDownloadReport","downloadSuccess","setDownloadSuccess","reportError","setReportError","filename","setFilename","useEffect","element","document","createElement","setAttribute","style","body","appendChild","click","removeChild","filteredRecords","elementItem","toLowerCase","includes","podTableActions","type","onClick","pod","result","i","length","currentTime","Date","now","time","niceDays","parseInt","timeCreated","toString","async","decodeURIComponent","blob","DeletePod","reloadData","SectionTitle","separator","actions","TooltipWrapper","tooltip","Button","generateTenantLogReport","InformativeMessage","message","variant","Grid","container","item","xs","SearchBox","DataTable","columns","elementKey","width","renderFunction","input","records","itemActions","entityName","idField","customPaperHeight"],"sourceRoot":""} \ No newline at end of file diff --git a/web-app/build/static/js/415.6349f8fe.chunk.js b/web-app/build/static/js/415.6349f8fe.chunk.js new file mode 100644 index 00000000000..863917a9570 --- /dev/null +++ b/web-app/build/static/js/415.6349f8fe.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[415],{7403:(e,n,s)=>{s.d(n,{U:()=>l,_:()=>t});const t={label:{color:"#07193E",fontSize:13,alignSelf:"center",whiteSpace:"nowrap","&:not(:first-of-type)":{marginLeft:10}},actionsTray:{display:"flex",justifyContent:"space-between",marginBottom:"1rem",alignItems:"center","& button":{flexGrow:0,marginLeft:8}}},l={modalButtonBar:{marginTop:15,display:"flex",alignItems:"center",justifyContent:"flex-end","& button":{marginRight:10},"& button:last-child":{marginRight:0}},modalFormScrollable:{maxHeight:"calc(100vh - 300px)",overflowY:"auto",paddingTop:10}}},4681:(e,n,s)=>{s.d(n,{A:()=>o});s(5043);var t=s(9923),l=s(579);const o=e=>{let{placeholder:n="",onChange:s,overrideClass:o,value:r,id:a="search-resource",label:i="",sx:d}=e;return(0,l.jsx)(t.cl_,{placeholder:n,className:o||"",id:a,label:i,onChange:e=>{s(e.target.value)},value:r,startIcon:(0,l.jsx)(t.WIv,{}),sx:d})}},2415:(e,n,s)=>{s.r(n),s.d(n,{default:()=>j});var t=s(5043),l=s(9923),o=s(9456),r=s(3216),a=s(2961),i=s(9607),d=s(7403),u=s(6483),c=s(6681),x=s(4681),m=s(579);const p=e=>{let{setPoolDetailsView:n}=e;const s=(0,a.jL)(),p=(0,r.Zp)(),v=(0,o.d4)((e=>e.tenants.loadingTenant)),f=(0,o.d4)((e=>e.tenants.tenantInfo)),[j,h]=(0,t.useState)([]),[g,y]=(0,t.useState)("");(0,t.useEffect)((()=>{if(f){const e=f.pools?f.pools:[];h(e)}}),[f]);const C=j.filter((e=>{var n;return!(null===(n=e.name)||void 0===n||!n.toLowerCase().includes(g.toLowerCase()))})),b=[{type:"view",onClick:e=>{s((0,i.mw)(e.name)),n()}}];return(0,m.jsxs)(t.Fragment,{children:[(0,m.jsxs)(l.xA9,{item:!0,xs:12,sx:d._.actionsTray,children:[(0,m.jsx)(x.A,{value:g,onChange:e=>{y(e)},placeholder:"Filter",id:"search-resource"}),(0,m.jsx)(c.A,{tooltip:"Expand Tenant",children:(0,m.jsx)(l.$nd,{id:"expand-tenant",label:"Expand Tenant",onClick:()=>{p("/namespaces/".concat((null===f||void 0===f?void 0:f.namespace)||"","/tenants/").concat((null===f||void 0===f?void 0:f.name)||"","/add-pool"))},icon:(0,m.jsx)(l.REV,{}),variant:"callAction"})})]}),(0,m.jsx)(l.xA9,{item:!0,xs:12,children:(0,m.jsx)(l.bQt,{itemActions:b,columns:[{label:"Name",elementKey:"name"},{label:"Total Capacity",elementKey:"capacity",renderFullObject:!0,renderFunction:e=>(0,u.qO)(e.volumes_per_server*e.servers*e.volume_configuration.size)},{label:"Servers",elementKey:"servers"},{label:"Volumes/Server",elementKey:"volumes_per_server"}],isLoading:v,records:C,entityName:"Servers",idField:"name",customEmptyMessage:"No Pools found",customPaperHeight:"calc(100vh - 400px)"})})]})},v={display:"grid",gridTemplateColumns:"2fr 1fr",gridAutoFlow:"row",gap:2,padding:"15px",["@media (max-width: ".concat(l.nmC.sm,"px)")]:{gridTemplateColumns:"1fr",gridAutoFlow:"dense"}},f=()=>{var e,n,s,a,i,d,c,x,p,f,j;const h=(0,r.Zp)(),g=(0,o.d4)((e=>e.tenants.tenantInfo)),y=(0,o.d4)((e=>e.tenants.selectedPool));if(null===g)return(0,m.jsx)(t.Fragment,{});const C=(null===(e=g.pools)||void 0===e?void 0:e.find((e=>e.name===y)))||null;if(null===C)return null;let b="None";return C.affinity&&(b=C.affinity.nodeAffinity?"Node Selector":"Default (Pod Anti-Affinity)"),(0,m.jsx)(t.Fragment,{children:(0,m.jsxs)(l.azJ,{withBorders:!0,customBorderPadding:"0px",sx:{width:"100%"},children:[(0,m.jsx)(l._xt,{separator:!0,actions:(0,m.jsx)(l.$nd,{icon:(0,m.jsx)(l.qI7,{}),onClick:()=>{h("/namespaces/".concat((null===g||void 0===g?void 0:g.namespace)||"","/tenants/").concat((null===g||void 0===g?void 0:g.name)||"","/edit-pool"))},label:"Edit Pool",id:"editPool"}),children:"Pool Configuration"}),(0,m.jsxs)(l.azJ,{sx:{...v},children:[(0,m.jsx)(l.mZW,{label:"Pool Name",value:C.name}),(0,m.jsx)(l.mZW,{label:"Total Volumes",value:C.volumes_per_server}),(0,m.jsx)(l.mZW,{label:"Volumes per server",value:C.volumes_per_server}),(0,m.jsx)(l.mZW,{label:"Capacity",value:(0,u.qO)(C.volumes_per_server*C.servers*C.volume_configuration.size)}),(0,m.jsx)(l.mZW,{label:"Runtime Class Name",value:C.runtimeClassName})]}),(0,m.jsx)(l._xt,{separator:!0,children:"Resources"}),(0,m.jsxs)(l.azJ,{sx:{...v},children:[C.resources&&(0,m.jsxs)(t.Fragment,{children:[(0,m.jsx)(l.mZW,{label:"CPU",value:null===(n=C.resources)||void 0===n||null===(s=n.requests)||void 0===s?void 0:s.cpu}),(0,m.jsx)(l.mZW,{label:"Memory",value:(0,u.qO)(null===(a=C.resources)||void 0===a||null===(i=a.requests)||void 0===i?void 0:i.memory)})]}),(0,m.jsx)(l.mZW,{label:"Volume Size",value:(0,u.qO)(C.volume_configuration.size)}),(0,m.jsx)(l.mZW,{label:"Storage Class Name",value:C.volume_configuration.storage_class_name})]}),C.securityContext&&(C.securityContext.runAsNonRoot||C.securityContext.runAsUser||C.securityContext.runAsGroup||C.securityContext.fsGroup)&&(0,m.jsxs)(t.Fragment,{children:[(0,m.jsx)(l._xt,{separator:!0,children:"Security Context"}),(0,m.jsxs)(l.azJ,{children:[null!==C.securityContext.runAsNonRoot&&(0,m.jsx)(l.azJ,{sx:{...v},children:(0,m.jsx)(l.mZW,{label:"Run as Non Root",value:C.securityContext.runAsNonRoot?"Yes":"No"})}),(0,m.jsxs)(l.azJ,{sx:{display:"grid",gridTemplateColumns:"2fr 1fr",gridAutoFlow:"row",gap:2,padding:"15px",["@media (max-width: ".concat(l.nmC.sm,"px)")]:{gridTemplateColumns:"1fr",gridAutoFlow:"dense"},["@media (max-width: ".concat(l.nmC.md,"px)")]:{gridTemplateColumns:"2fr 1fr"},["@media (max-width: ".concat(l.nmC.lg,"px)")]:{gridTemplateColumns:"1fr 1fr 1fr"}},children:[C.securityContext.runAsUser&&(0,m.jsx)(l.mZW,{label:"Run as User",value:C.securityContext.runAsUser}),C.securityContext.runAsGroup&&(0,m.jsx)(l.mZW,{label:"Run as Group",value:C.securityContext.runAsGroup}),C.securityContext.fsGroup&&(0,m.jsx)(l.mZW,{label:"FsGroup",value:C.securityContext.fsGroup})]})]})]}),(0,m.jsx)(l._xt,{separator:!0,children:"Affinity"}),(0,m.jsxs)(l.azJ,{children:[(0,m.jsxs)(l.azJ,{sx:{...v},children:[(0,m.jsx)(l.mZW,{label:"Type",value:b}),null!==(d=C.affinity)&&void 0!==d&&d.nodeAffinity&&null!==(c=C.affinity)&&void 0!==c&&c.podAntiAffinity?(0,m.jsx)(l.mZW,{label:"With Pod Anti affinity",value:"Yes"}):(0,m.jsx)("span",{})]}),(null===(x=C.affinity)||void 0===x?void 0:x.nodeAffinity)&&(0,m.jsxs)(t.Fragment,{children:[(0,m.jsx)(l._xt,{separator:!0,children:"Labels"}),(0,m.jsx)("ul",{children:null===(p=C.affinity)||void 0===p||null===(f=p.nodeAffinity)||void 0===f||null===(j=f.requiredDuringSchedulingIgnoredDuringExecution)||void 0===j?void 0:j.nodeSelectorTerms.map((e=>{var n;return null===(n=e.matchExpressions)||void 0===n?void 0:n.map((e=>{var n;return(0,m.jsxs)("li",{children:[e.key," - ",null===(n=e.values)||void 0===n?void 0:n.join(", ")]})}))}))})]})]}),C.tolerations&&C.tolerations.length>0&&(0,m.jsxs)(t.Fragment,{children:[(0,m.jsx)(l._xt,{separator:!0,children:"Tolerations"}),(0,m.jsx)(l.azJ,{children:(0,m.jsx)("ul",{children:C.tolerations.map((e=>{var n,s;return(0,m.jsx)("li",{children:"Equal"===e.operator?(0,m.jsxs)(t.Fragment,{children:["If ",(0,m.jsx)("strong",{children:e.key})," is equal to"," ",(0,m.jsx)("strong",{children:e.value})," then"," ",(0,m.jsx)("strong",{children:e.effect})," after"," ",(0,m.jsx)("strong",{children:(null===(n=e.tolerationSeconds)||void 0===n?void 0:n.seconds)||0})," ","seconds"]}):(0,m.jsxs)(t.Fragment,{children:["If ",(0,m.jsx)("strong",{children:e.key})," exists then"," ",(0,m.jsx)("strong",{children:e.effect})," after"," ",(0,m.jsx)("strong",{children:(null===(s=e.tolerationSeconds)||void 0===s?void 0:s.seconds)||0})," ","seconds"]})})}))})})]})]})})},j=()=>{const e=(0,a.jL)(),n=(0,r.Zp)(),{pathname:s=""}=(0,r.zy)(),d=(0,o.d4)((e=>e.tenants.selectedPool)),u=(0,o.d4)((e=>e.tenants.poolDetailsOpen));return(0,m.jsxs)(t.Fragment,{children:[u&&(0,m.jsx)(l.azJ,{children:(0,m.jsx)(l.EGL,{label:"Pools list",onClick:()=>{n(s),e((0,i.VG)(!1))}})}),(0,m.jsx)(l._xt,{separator:!0,sx:{marginBottom:15},children:u?"Pool Details - ".concat(d||""):"Pools"}),(0,m.jsx)(l.azJ,{children:u?(0,m.jsx)(f,{}):(0,m.jsx)(p,{setPoolDetailsView:()=>{e((0,i.VG)(!0))}})})]})}}}]); +//# sourceMappingURL=415.6349f8fe.chunk.js.map \ No newline at end of file diff --git a/web-app/build/static/js/822.accdc1fc.chunk.js.map b/web-app/build/static/js/415.6349f8fe.chunk.js.map similarity index 99% rename from web-app/build/static/js/822.accdc1fc.chunk.js.map rename to web-app/build/static/js/415.6349f8fe.chunk.js.map index ba5d1d13b6f..2a4183fc06b 100644 --- a/web-app/build/static/js/822.accdc1fc.chunk.js.map +++ b/web-app/build/static/js/415.6349f8fe.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/822.accdc1fc.chunk.js","mappings":"0HAkBO,MAAMA,EAAc,CACzBC,MAAO,CACLC,MAAO,UACPC,SAAU,GACVC,UAAW,SACXC,WAAY,SACZ,wBAAyB,CACvBC,WAAY,KAGhBN,YAAa,CACXO,QAAS,OACTC,eAAgB,gBAChBC,aAAc,OACdC,WAAY,SACZ,WAAY,CACVC,SAAU,EACVL,WAAY,KAKLM,EAAuB,CAClCC,eAAgB,CACdC,UAAW,GACXP,QAAS,OACTG,WAAY,SACZF,eAAgB,WAEhB,WAAY,CACVO,YAAa,IAEf,sBAAuB,CACrBA,YAAa,I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AAA,EAAAA,MAEpBnD,GAAe3E,EAAAA,EAAAA,KAClBC,GAAoBA,EAAMC,QAAQyE,eAE/BoD,GAAkB/H,EAAAA,EAAAA,KACrBC,GAAoBA,EAAMC,QAAQ6H,kBAGrC,OACExG,EAAAA,EAAAA,MAACC,EAAAA,SAAQ,CAAAC,SAAA,CACNsG,IACC5I,EAAAA,EAAAA,KAAC8F,EAAAA,IAAG,CAAAxD,UACFtC,EAAAA,EAAAA,KAAC6I,EAAAA,IAAQ,CACPvK,MAAO,aACP2D,QAASA,KACPvB,EAASgI,GACTlI,GAASsI,EAAAA,EAAAA,KAAmB,GAAO,OAK3C9I,EAAAA,EAAAA,KAACkG,EAAAA,IAAY,CAACC,WAAS,EAACpG,GAAI,CAAEjB,aAAc,IAAKwD,SAC9CsG,EAAe,kBAAA9F,OAAqB0C,GAAgB,IAAO,WAG9DxF,EAAAA,EAAAA,KAAC8F,EAAAA,IAAG,CAAAxD,SACDsG,GACC5I,EAAAA,EAAAA,KAAC4E,EAAW,KAEZ5E,EAAAA,EAAAA,KAAC+I,EAAY,CACXxI,mBAAoBA,KAClBC,GAASsI,EAAAA,EAAAA,KAAmB,GAAM,QAKjC,C","sources":["screens/Console/Common/FormComponents/common/styleLibrary.ts","screens/Console/Common/SearchBox.tsx","screens/Console/Tenants/TenantDetails/Pools/Details/PoolsListing.tsx","screens/Console/Tenants/TenantDetails/Pools/Details/PoolDetails.tsx","screens/Console/Tenants/TenantDetails/PoolsSummary.tsx"],"sourcesContent":["// This file is part of MinIO Operator\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\n// This object contains variables that will be used across form components.\n\nexport const actionsTray = {\n label: {\n color: \"#07193E\",\n fontSize: 13,\n alignSelf: \"center\" as const,\n whiteSpace: \"nowrap\" as const,\n \"&:not(:first-of-type)\": {\n marginLeft: 10,\n },\n },\n actionsTray: {\n display: \"flex\" as const,\n justifyContent: \"space-between\" as const,\n marginBottom: \"1rem\",\n alignItems: \"center\",\n \"& button\": {\n flexGrow: 0,\n marginLeft: 8,\n },\n },\n};\n\nexport const modalStyleUtils: any = {\n modalButtonBar: {\n marginTop: 15,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"flex-end\",\n\n \"& button\": {\n marginRight: 10,\n },\n \"& button:last-child\": {\n marginRight: 0,\n },\n },\n modalFormScrollable: {\n maxHeight: \"calc(100vh - 300px)\",\n overflowY: \"auto\",\n paddingTop: 10,\n },\n};\n","// This file is part of MinIO Operator\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport { InputBox, SearchIcon } from \"mds\";\nimport { CSSObject } from \"styled-components\";\n\ntype SearchBoxProps = {\n placeholder?: string;\n value: string;\n onChange: (value: string) => void;\n overrideClass?: any;\n id?: string;\n label?: string;\n sx?: CSSObject;\n};\n\nconst SearchBox = ({\n placeholder = \"\",\n onChange,\n overrideClass,\n value,\n id = \"search-resource\",\n label = \"\",\n sx,\n}: SearchBoxProps) => {\n return (\n {\n onChange(e.target.value);\n }}\n value={value}\n startIcon={}\n sx={sx}\n />\n );\n};\n\nexport default SearchBox;\n","// This file is part of MinIO Operator\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useEffect, useState } from \"react\";\nimport { AddIcon, Button, DataTable, Grid } from \"mds\";\nimport { useSelector } from \"react-redux\";\nimport { useNavigate } from \"react-router-dom\";\nimport { AppState, useAppDispatch } from \"../../../../../../store\";\nimport { actionsTray } from \"../../../../Common/FormComponents/common/styleLibrary\";\nimport { setSelectedPool } from \"../../../tenantsSlice\";\nimport { Pool } from \"../../../../../../api/operatorApi\";\nimport { niceBytesInt } from \"../../../../../../common/utils\";\nimport TooltipWrapper from \"../../../../Common/TooltipWrapper/TooltipWrapper\";\nimport SearchBox from \"../../../../Common/SearchBox\";\n\ninterface IPoolsSummary {\n setPoolDetailsView: () => void;\n}\n\nconst PoolsListing = ({ setPoolDetailsView }: IPoolsSummary) => {\n const dispatch = useAppDispatch();\n const navigate = useNavigate();\n\n const loadingTenant = useSelector(\n (state: AppState) => state.tenants.loadingTenant,\n );\n const tenant = useSelector((state: AppState) => state.tenants.tenantInfo);\n\n const [pools, setPools] = useState([]);\n const [filter, setFilter] = useState(\"\");\n\n useEffect(() => {\n if (tenant) {\n const resPools = !tenant.pools ? [] : tenant.pools;\n setPools(resPools);\n }\n }, [tenant]);\n\n const filteredPools = pools.filter((pool) => {\n if (pool.name?.toLowerCase().includes(filter.toLowerCase())) {\n return true;\n }\n\n return false;\n });\n\n const listActions = [\n {\n type: \"view\",\n onClick: (selectedValue: Pool) => {\n dispatch(setSelectedPool(selectedValue.name!));\n setPoolDetailsView();\n },\n },\n ];\n\n return (\n \n \n {\n setFilter(value);\n }}\n placeholder={\"Filter\"}\n id=\"search-resource\"\n />\n \n {\n navigate(\n `/namespaces/${tenant?.namespace || \"\"}/tenants/${\n tenant?.name || \"\"\n }/add-pool`,\n );\n }}\n icon={}\n variant={\"callAction\"}\n />\n \n \n \n \n niceBytesInt(\n x.volumes_per_server *\n x.servers *\n x.volume_configuration.size,\n ),\n },\n { label: \"Servers\", elementKey: \"servers\" },\n { label: \"Volumes/Server\", elementKey: \"volumes_per_server\" },\n ]}\n isLoading={loadingTenant}\n records={filteredPools}\n entityName=\"Servers\"\n idField=\"name\"\n customEmptyMessage=\"No Pools found\"\n customPaperHeight={\"calc(100vh - 400px)\"}\n />\n \n \n );\n};\n\nexport default PoolsListing;\n","// This file is part of MinIO Operator\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { useNavigate } from \"react-router-dom\";\nimport { AppState } from \"../../../../../../store\";\nimport { niceBytesInt } from \"../../../../../../common/utils\";\nimport {\n Box,\n breakPoints,\n Button,\n EditTenantIcon,\n SectionTitle,\n ValuePair,\n} from \"mds\";\nimport { NodeSelectorTerm } from \"../../../../../../api/operatorApi\";\n\nconst twoColCssGridLayoutConfig = {\n display: \"grid\",\n gridTemplateColumns: \"2fr 1fr\",\n gridAutoFlow: \"row\",\n gap: 2,\n padding: \"15px\",\n [`@media (max-width: ${breakPoints.sm}px)`]: {\n gridTemplateColumns: \"1fr\",\n gridAutoFlow: \"dense\",\n },\n};\n\nconst PoolDetails = () => {\n const navigate = useNavigate();\n\n const tenant = useSelector((state: AppState) => state.tenants.tenantInfo);\n const selectedPool = useSelector(\n (state: AppState) => state.tenants.selectedPool,\n );\n if (tenant === null) {\n return ;\n }\n\n const poolInformation =\n tenant.pools?.find((pool) => pool.name === selectedPool) || null;\n\n if (poolInformation === null) {\n return null;\n }\n\n let affinityType = \"None\";\n\n if (poolInformation.affinity) {\n if (poolInformation.affinity.nodeAffinity) {\n affinityType = \"Node Selector\";\n } else {\n affinityType = \"Default (Pod Anti-Affinity)\";\n }\n }\n\n return (\n \n \n }\n onClick={() => {\n navigate(\n `/namespaces/${tenant?.namespace || \"\"}/tenants/${\n tenant?.name || \"\"\n }/edit-pool`,\n );\n }}\n label={\"Edit Pool\"}\n id={\"editPool\"}\n />\n }\n >\n Pool Configuration\n \n \n \n \n \n \n \n \n Resources\n \n {poolInformation.resources && (\n \n \n \n \n )}\n \n \n \n {poolInformation.securityContext &&\n (poolInformation.securityContext.runAsNonRoot ||\n poolInformation.securityContext.runAsUser ||\n poolInformation.securityContext.runAsGroup ||\n poolInformation.securityContext.fsGroup) && (\n \n Security Context\n \n {poolInformation.securityContext.runAsNonRoot !== null && (\n \n \n \n )}\n \n {poolInformation.securityContext.runAsUser && (\n \n )}\n {poolInformation.securityContext.runAsGroup && (\n \n )}\n {poolInformation.securityContext.fsGroup && (\n \n )}\n \n \n \n )}\n Affinity\n \n \n \n {poolInformation.affinity?.nodeAffinity &&\n poolInformation.affinity?.podAntiAffinity ? (\n \n ) : (\n \n )}\n \n {poolInformation.affinity?.nodeAffinity && (\n \n Labels\n
    \n {poolInformation.affinity?.nodeAffinity?.requiredDuringSchedulingIgnoredDuringExecution?.nodeSelectorTerms.map(\n (term: NodeSelectorTerm) => {\n return term.matchExpressions?.map((trm) => {\n return (\n
  • \n {trm.key} - {trm.values?.join(\", \")}\n
  • \n );\n });\n },\n )}\n
\n
\n )}\n
\n {poolInformation.tolerations &&\n poolInformation.tolerations.length > 0 && (\n \n Tolerations\n \n
    \n {poolInformation.tolerations.map((tolItem) => {\n return (\n
  • \n {tolItem.operator === \"Equal\" ? (\n \n If {tolItem.key} is equal to{\" \"}\n {tolItem.value} then{\" \"}\n {tolItem.effect} after{\" \"}\n \n {tolItem.tolerationSeconds?.seconds || 0}\n {\" \"}\n seconds\n \n ) : (\n \n If {tolItem.key} exists then{\" \"}\n {tolItem.effect} after{\" \"}\n \n {tolItem.tolerationSeconds?.seconds || 0}\n {\" \"}\n seconds\n \n )}\n
  • \n );\n })}\n
\n
\n
\n )}\n \n
\n );\n};\n\nexport default PoolDetails;\n","// This file is part of MinIO Operator\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment } from \"react\";\nimport { BackLink, SectionTitle, Box } from \"mds\";\nimport { useSelector } from \"react-redux\";\nimport { useLocation, useNavigate } from \"react-router-dom\";\nimport { AppState, useAppDispatch } from \"../../../../store\";\nimport { setOpenPoolDetails } from \"../tenantsSlice\";\nimport PoolsListing from \"./Pools/Details/PoolsListing\";\nimport PoolDetails from \"./Pools/Details/PoolDetails\";\n\nconst PoolsSummary = () => {\n const dispatch = useAppDispatch();\n const navigate = useNavigate();\n\n const { pathname = \"\" } = useLocation();\n\n const selectedPool = useSelector(\n (state: AppState) => state.tenants.selectedPool,\n );\n const poolDetailsOpen = useSelector(\n (state: AppState) => state.tenants.poolDetailsOpen,\n );\n\n return (\n \n {poolDetailsOpen && (\n \n {\n navigate(pathname);\n dispatch(setOpenPoolDetails(false));\n }}\n />\n \n )}\n \n {poolDetailsOpen ? `Pool Details - ${selectedPool || \"\"}` : \"Pools\"}\n \n\n \n {poolDetailsOpen ? (\n \n ) : (\n {\n dispatch(setOpenPoolDetails(true));\n }}\n />\n )}\n \n \n );\n};\n\nexport default PoolsSummary;\n"],"names":["actionsTray","label","color","fontSize","alignSelf","whiteSpace","marginLeft","display","justifyContent","marginBottom","alignItems","flexGrow","modalStyleUtils","modalButtonBar","marginTop","marginRight","modalFormScrollable","maxHeight","overflowY","paddingTop","_ref","placeholder","onChange","overrideClass","value","id","sx","_jsx","InputBox","className","e","target","startIcon","SearchIcon","setPoolDetailsView","dispatch","useAppDispatch","navigate","useNavigate","loadingTenant","useSelector","state","tenants","tenant","tenantInfo","pools","setPools","useState","filter","setFilter","useEffect","resPools","filteredPools","pool","_pool$name","name","toLowerCase","includes","listActions","type","onClick","selectedValue","setSelectedPool","_jsxs","Fragment","children","Grid","item","xs","SearchBox","TooltipWrapper","tooltip","Button","concat","namespace","icon","AddIcon","variant","DataTable","itemActions","columns","elementKey","renderFullObject","renderFunction","x","niceBytesInt","volumes_per_server","servers","volume_configuration","size","isLoading","records","entityName","idField","customEmptyMessage","customPaperHeight","twoColCssGridLayoutConfig","gridTemplateColumns","gridAutoFlow","gap","padding","breakPoints","sm","PoolDetails","_tenant$pools","_poolInformation$reso","_poolInformation$reso2","_poolInformation$reso3","_poolInformation$reso4","_poolInformation$affi","_poolInformation$affi2","_poolInformation$affi3","_poolInformation$affi4","_poolInformation$affi5","_poolInformation$affi6","selectedPool","poolInformation","find","affinityType","affinity","nodeAffinity","Box","withBorders","customBorderPadding","width","SectionTitle","separator","actions","EditTenantIcon","ValuePair","runtimeClassName","resources","requests","cpu","memory","storage_class_name","securityContext","runAsNonRoot","runAsUser","runAsGroup","fsGroup","md","lg","podAntiAffinity","requiredDuringSchedulingIgnoredDuringExecution","nodeSelectorTerms","map","term","_term$matchExpression","matchExpressions","trm","_trm$values","key","values","join","tolerations","length","tolItem","_tolItem$tolerationSe","_tolItem$tolerationSe2","operator","effect","tolerationSeconds","seconds","PoolsSummary","pathname","useLocation","poolDetailsOpen","BackLink","setOpenPoolDetails","PoolsListing"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/415.6349f8fe.chunk.js","mappings":"0HAkBO,MAAMA,EAAc,CACzBC,MAAO,CACLC,MAAO,UACPC,SAAU,GACVC,UAAW,SACXC,WAAY,SACZ,wBAAyB,CACvBC,WAAY,KAGhBN,YAAa,CACXO,QAAS,OACTC,eAAgB,gBAChBC,aAAc,OACdC,WAAY,SACZ,WAAY,CACVC,SAAU,EACVL,WAAY,KAKLM,EAAuB,CAClCC,eAAgB,CACdC,UAAW,GACXP,QAAS,OACTG,WAAY,SACZF,eAAgB,WAEhB,WAAY,CACVO,YAAa,IAEf,sBAAuB,CACrBA,YAAa,IAGjBC,oBAAqB,CACnBC,UAAW,sBACXC,UAAW,OACXC,WAAY,I,iEC3BhB,MAyBA,EAzBkBC,IAQK,IARJ,YACjBC,EAAc,GAAE,SAChBC,EAAQ,cACRC,EAAa,MACbC,EAAK,GACLC,EAAK,kBAAiB,MACtBxB,EAAQ,GAAE,GACVyB,GACeN,EACf,OACEO,EAAAA,EAAAA,KAACC,EAAAA,IAAQ,CACPP,YAAaA,EACbQ,UAAWN,GAAgC,GAC3CE,GAAIA,EACJxB,MAAOA,EACPqB,SAAWQ,IACTR,EAASQ,EAAEC,OAAOP,MAAM,EAE1BA,MAAOA,EACPQ,WAAWL,EAAAA,EAAAA,KAACM,EAAAA,IAAU,IACtBP,GAAIA,GACJ,C,gKCnBN,MA+FA,EA/FqBN,IAA4C,IAA3C,mBAAEc,GAAmCd,EACzD,MAAMe,GAAWC,EAAAA,EAAAA,MACXC,GAAWC,EAAAA,EAAAA,MAEXC,GAAgBC,EAAAA,EAAAA,KACnBC,GAAoBA,EAAMC,QAAQH,gBAE/BI,GAASH,EAAAA,EAAAA,KAAaC,GAAoBA,EAAMC,QAAQE,cAEvDC,EAAOC,IAAYC,EAAAA,EAAAA,UAAiB,KACpCC,EAAQC,IAA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ents/common/styleLibrary.ts","screens/Console/Common/SearchBox.tsx","screens/Console/Tenants/TenantDetails/Pools/Details/PoolsListing.tsx","screens/Console/Tenants/TenantDetails/Pools/Details/PoolDetails.tsx","screens/Console/Tenants/TenantDetails/PoolsSummary.tsx"],"sourcesContent":["// This file is part of MinIO Operator\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\n// This object contains variables that will be used across form components.\n\nexport const actionsTray = {\n label: {\n color: \"#07193E\",\n fontSize: 13,\n alignSelf: \"center\" as const,\n whiteSpace: \"nowrap\" as const,\n \"&:not(:first-of-type)\": {\n marginLeft: 10,\n },\n },\n actionsTray: {\n display: \"flex\" as const,\n justifyContent: \"space-between\" as const,\n marginBottom: \"1rem\",\n alignItems: \"center\",\n \"& button\": {\n flexGrow: 0,\n marginLeft: 8,\n },\n },\n};\n\nexport const modalStyleUtils: any = {\n modalButtonBar: {\n marginTop: 15,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"flex-end\",\n\n \"& button\": {\n marginRight: 10,\n },\n \"& button:last-child\": {\n marginRight: 0,\n },\n },\n modalFormScrollable: {\n maxHeight: \"calc(100vh - 300px)\",\n overflowY: \"auto\",\n paddingTop: 10,\n },\n};\n","// This file is part of MinIO Operator\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport { InputBox, SearchIcon } from \"mds\";\nimport { CSSObject } from \"styled-components\";\n\ntype SearchBoxProps = {\n placeholder?: string;\n value: string;\n onChange: (value: string) => void;\n overrideClass?: any;\n id?: string;\n label?: string;\n sx?: CSSObject;\n};\n\nconst SearchBox = ({\n placeholder = \"\",\n onChange,\n overrideClass,\n value,\n id = \"search-resource\",\n label = \"\",\n sx,\n}: SearchBoxProps) => {\n return (\n {\n onChange(e.target.value);\n }}\n value={value}\n startIcon={}\n sx={sx}\n />\n );\n};\n\nexport default SearchBox;\n","// This file is part of MinIO Operator\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useEffect, useState } from \"react\";\nimport { AddIcon, Button, DataTable, Grid } from \"mds\";\nimport { useSelector } from \"react-redux\";\nimport { useNavigate } from \"react-router-dom\";\nimport { AppState, useAppDispatch } from \"../../../../../../store\";\nimport { actionsTray } from \"../../../../Common/FormComponents/common/styleLibrary\";\nimport { setSelectedPool } from \"../../../tenantsSlice\";\nimport { Pool } from \"../../../../../../api/operatorApi\";\nimport { niceBytesInt } from \"../../../../../../common/utils\";\nimport TooltipWrapper from \"../../../../Common/TooltipWrapper/TooltipWrapper\";\nimport SearchBox from \"../../../../Common/SearchBox\";\n\ninterface IPoolsSummary {\n setPoolDetailsView: () => void;\n}\n\nconst PoolsListing = ({ setPoolDetailsView }: IPoolsSummary) => {\n const dispatch = useAppDispatch();\n const navigate = useNavigate();\n\n const loadingTenant = useSelector(\n (state: AppState) => state.tenants.loadingTenant,\n );\n const tenant = useSelector((state: AppState) => state.tenants.tenantInfo);\n\n const [pools, setPools] = useState([]);\n const [filter, setFilter] = useState(\"\");\n\n useEffect(() => {\n if (tenant) {\n const resPools = !tenant.pools ? [] : tenant.pools;\n setPools(resPools);\n }\n }, [tenant]);\n\n const filteredPools = pools.filter((pool) => {\n if (pool.name?.toLowerCase().includes(filter.toLowerCase())) {\n return true;\n }\n\n return false;\n });\n\n const listActions = [\n {\n type: \"view\",\n onClick: (selectedValue: Pool) => {\n dispatch(setSelectedPool(selectedValue.name!));\n setPoolDetailsView();\n },\n },\n ];\n\n return (\n \n \n {\n setFilter(value);\n }}\n placeholder={\"Filter\"}\n id=\"search-resource\"\n />\n \n {\n navigate(\n `/namespaces/${tenant?.namespace || \"\"}/tenants/${\n tenant?.name || \"\"\n }/add-pool`,\n );\n }}\n icon={}\n variant={\"callAction\"}\n />\n \n \n \n \n niceBytesInt(\n x.volumes_per_server *\n x.servers *\n x.volume_configuration.size,\n ),\n },\n { label: \"Servers\", elementKey: \"servers\" },\n { label: \"Volumes/Server\", elementKey: \"volumes_per_server\" },\n ]}\n isLoading={loadingTenant}\n records={filteredPools}\n entityName=\"Servers\"\n idField=\"name\"\n customEmptyMessage=\"No Pools found\"\n customPaperHeight={\"calc(100vh - 400px)\"}\n />\n \n \n );\n};\n\nexport default PoolsListing;\n","// This file is part of MinIO Operator\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { useNavigate } from \"react-router-dom\";\nimport { AppState } from \"../../../../../../store\";\nimport { niceBytesInt } from \"../../../../../../common/utils\";\nimport {\n Box,\n breakPoints,\n Button,\n EditTenantIcon,\n SectionTitle,\n ValuePair,\n} from \"mds\";\nimport { NodeSelectorTerm } from \"../../../../../../api/operatorApi\";\n\nconst twoColCssGridLayoutConfig = {\n display: \"grid\",\n gridTemplateColumns: \"2fr 1fr\",\n gridAutoFlow: \"row\",\n gap: 2,\n padding: \"15px\",\n [`@media (max-width: ${breakPoints.sm}px)`]: {\n gridTemplateColumns: \"1fr\",\n gridAutoFlow: \"dense\",\n },\n};\n\nconst PoolDetails = () => {\n const navigate = useNavigate();\n\n const tenant = useSelector((state: AppState) => state.tenants.tenantInfo);\n const selectedPool = useSelector(\n (state: AppState) => state.tenants.selectedPool,\n );\n if (tenant === null) {\n return ;\n }\n\n const poolInformation =\n tenant.pools?.find((pool) => pool.name === selectedPool) || null;\n\n if (poolInformation === null) {\n return null;\n }\n\n let affinityType = \"None\";\n\n if (poolInformation.affinity) {\n if (poolInformation.affinity.nodeAffinity) {\n affinityType = \"Node Selector\";\n } else {\n affinityType = \"Default (Pod Anti-Affinity)\";\n }\n }\n\n return (\n \n \n }\n onClick={() => {\n navigate(\n `/namespaces/${tenant?.namespace || \"\"}/tenants/${\n tenant?.name || \"\"\n }/edit-pool`,\n );\n }}\n label={\"Edit Pool\"}\n id={\"editPool\"}\n />\n }\n >\n Pool Configuration\n \n \n \n \n \n \n \n \n Resources\n \n {poolInformation.resources && (\n \n \n \n \n )}\n \n \n \n {poolInformation.securityContext &&\n (poolInformation.securityContext.runAsNonRoot ||\n poolInformation.securityContext.runAsUser ||\n poolInformation.securityContext.runAsGroup ||\n poolInformation.securityContext.fsGroup) && (\n \n Security Context\n \n {poolInformation.securityContext.runAsNonRoot !== null && (\n \n \n \n )}\n \n {poolInformation.securityContext.runAsUser && (\n \n )}\n {poolInformation.securityContext.runAsGroup && (\n \n )}\n {poolInformation.securityContext.fsGroup && (\n \n )}\n \n \n \n )}\n Affinity\n \n \n \n {poolInformation.affinity?.nodeAffinity &&\n poolInformation.affinity?.podAntiAffinity ? (\n \n ) : (\n \n )}\n \n {poolInformation.affinity?.nodeAffinity && (\n \n Labels\n
    \n {poolInformation.affinity?.nodeAffinity?.requiredDuringSchedulingIgnoredDuringExecution?.nodeSelectorTerms.map(\n (term: NodeSelectorTerm) => {\n return term.matchExpressions?.map((trm) => {\n return (\n
  • \n {trm.key} - {trm.values?.join(\", \")}\n
  • \n );\n });\n },\n )}\n
\n
\n )}\n
\n {poolInformation.tolerations &&\n poolInformation.tolerations.length > 0 && (\n \n Tolerations\n \n
    \n {poolInformation.tolerations.map((tolItem) => {\n return (\n
  • \n {tolItem.operator === \"Equal\" ? (\n \n If {tolItem.key} is equal to{\" \"}\n {tolItem.value} then{\" \"}\n {tolItem.effect} after{\" \"}\n \n {tolItem.tolerationSeconds?.seconds || 0}\n {\" \"}\n seconds\n \n ) : (\n \n If {tolItem.key} exists then{\" \"}\n {tolItem.effect} after{\" \"}\n \n {tolItem.tolerationSeconds?.seconds || 0}\n {\" \"}\n seconds\n \n )}\n
  • \n );\n })}\n
\n
\n
\n )}\n \n
\n );\n};\n\nexport default PoolDetails;\n","// This file is part of MinIO Operator\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment } from \"react\";\nimport { BackLink, SectionTitle, Box } from \"mds\";\nimport { useSelector } from \"react-redux\";\nimport { useLocation, useNavigate } from \"react-router-dom\";\nimport { AppState, useAppDispatch } from \"../../../../store\";\nimport { setOpenPoolDetails } from \"../tenantsSlice\";\nimport PoolsListing from \"./Pools/Details/PoolsListing\";\nimport PoolDetails from \"./Pools/Details/PoolDetails\";\n\nconst PoolsSummary = () => {\n const dispatch = useAppDispatch();\n const navigate = useNavigate();\n\n const { pathname = \"\" } = useLocation();\n\n const selectedPool = useSelector(\n (state: AppState) => state.tenants.selectedPool,\n );\n const poolDetailsOpen = useSelector(\n (state: AppState) => state.tenants.poolDetailsOpen,\n );\n\n return (\n \n {poolDetailsOpen && (\n \n {\n navigate(pathname);\n dispatch(setOpenPoolDetails(false));\n }}\n />\n \n )}\n \n {poolDetailsOpen ? `Pool Details - ${selectedPool || \"\"}` : \"Pools\"}\n \n\n \n {poolDetailsOpen ? (\n \n ) : (\n {\n dispatch(setOpenPoolDetails(true));\n }}\n />\n )}\n \n \n );\n};\n\nexport default PoolsSummary;\n"],"names":["actionsTray","label","color","fontSize","alignSelf","whiteSpace","marginLeft","display","justifyContent","marginBottom","alignItems","flexGrow","modalStyleUtils","modalButtonBar","marginTop","marginRight","modalFormScrollable","maxHeight","overflowY","paddingTop","_ref","placeholder","onChange","overrideClass","value","id","sx","_jsx","InputBox","className","e","target","startIcon","SearchIcon","setPoolDetailsView","dispatch","useAppDispatch","navigate","useNavigate","loadingTenant","useSelector","state","tenants","tenant","tenantInfo","pools","setPools","useState","filter","setFilter","useEffect","resPools","filteredPools","pool","_pool$name","name","toLowerCase","includes","listActions","type","onClick","selectedValue","setSelectedPool","_jsxs","Fragment","children","Grid","item","xs","SearchBox","TooltipWrapper","tooltip","Button","concat","namespace","icon","AddIcon","variant","DataTable","itemActions","columns","elementKey","renderFullObject","renderFunction","x","niceBytesInt","volumes_per_server","servers","volume_configuration","size","isLoading","records","entityName","idField","customEmptyMessage","customPaperHeight","twoColCssGridLayoutConfig","gridTemplateColumns","gridAutoFlow","gap","padding","breakPoints","sm","PoolDetails","_tenant$pools","_poolInformation$reso","_poolInformation$reso2","_poolInformation$reso3","_poolInformation$reso4","_poolInformation$affi","_poolInformation$affi2","_poolInformation$affi3","_poolInformation$affi4","_poolInformation$affi5","_poolInformation$affi6","selectedPool","poolInformation","find","affinityType","affinity","nodeAffinity","Box","withBorders","customBorderPadding","width","SectionTitle","separator","actions","EditTenantIcon","ValuePair","runtimeClassName","resources","requests","cpu","memory","storage_class_name","securityContext","runAsNonRoot","runAsUser","runAsGroup","fsGroup","md","lg","podAntiAffinity","requiredDuringSchedulingIgnoredDuringExecution","nodeSelectorTerms","map","term","_term$matchExpression","matchExpressions","trm","_trm$values","key","values","join","tolerations","length","tolItem","_tolItem$tolerationSe","_tolItem$tolerationSe2","operator","effect","tolerationSeconds","seconds","PoolsSummary","pathname","useLocation","poolDetailsOpen","BackLink","setOpenPoolDetails","PoolsListing"],"sourceRoot":""} \ No newline at end of file diff --git a/web-app/build/static/js/426.32092f8a.chunk.js b/web-app/build/static/js/426.32092f8a.chunk.js deleted file mode 100644 index 1270a0eabd4..00000000000 --- a/web-app/build/static/js/426.32092f8a.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[426],{426:(e,s,n)=>{n.r(s),n.d(s,{default:()=>p});var t=n(2791),r=n(9434),a=n(9945),c=n(7689),o=n(5248),l=n(1320),i=n(7995),d=n(1207),x=n(5450),j=n(184);const p=()=>{const e=(0,l.TL)(),s=(0,c.UO)(),n=(0,r.v9)((e=>e.tenants.loadingTenant)),[p,h]=(0,t.useState)([]),[m,g]=(0,t.useState)(!0),u=s.tenantName||"",v=s.tenantNamespace||"";return(0,t.useEffect)((()=>{n&&g(!0)}),[n]),(0,t.useEffect)((()=>{m&&d.Z.invoke("GET","/api/v1/namespaces/".concat(v,"/tenants/").concat(u,"/events")).then((e=>{for(let s=0;s{e((0,i.Ih)(s)),g(!1)}))}),[m,v,u,e]),(0,j.jsxs)(t.Fragment,{children:[(0,j.jsx)(a.NZf,{separator:!0,sx:{marginBottom:15},children:"Events"}),(0,j.jsx)(a.rjZ,{item:!0,xs:12,children:(0,j.jsx)(x.Z,{events:p,loading:m})})]})}},5450:(e,s,n)=>{n.d(s,{Z:()=>o});var t=n(2791),r=n(9945),a=n(184);const c=e=>{const{event:s}=e,[n,c]=t.useState(!1);return(0,a.jsxs)(t.Fragment,{children:[(0,a.jsxs)(r.SCH,{sx:{cursor:"pointer"},children:[(0,a.jsx)(r.bil,{scope:"row",onClick:()=>c(!n),sx:{borderBottom:0},children:s.event_type}),(0,a.jsx)(r.pj1,{onClick:()=>c(!n),sx:{borderBottom:0},children:s.reason}),(0,a.jsx)(r.pj1,{onClick:()=>c(!n),sx:{borderBottom:0},children:s.seen}),(0,a.jsx)(r.pj1,{onClick:()=>c(!n),sx:{borderBottom:0},children:s.message.length>=30?"".concat(s.message.slice(0,30),"..."):s.message}),(0,a.jsx)(r.pj1,{onClick:()=>c(!n),sx:{borderBottom:0},children:n?(0,a.jsx)(r.ZyT,{}):(0,a.jsx)(r.ASC,{})})]}),(0,a.jsx)(r.SCH,{children:(0,a.jsx)(r.pj1,{style:{paddingBottom:0,paddingTop:0},colSpan:5,children:n&&(0,a.jsx)(r.xuv,{useBackground:!0,sx:{padding:10,marginBottom:10},children:s.message})})})]})},o=e=>{let{events:s,loading:n}=e;return n?(0,a.jsx)(r.kod,{}):(0,a.jsx)(r.xuv,{withBorders:!0,customBorderPadding:"0px",children:(0,a.jsxs)(r.iA_,{"aria-label":"collapsible table",children:[(0,a.jsx)(r.ssF,{children:(0,a.jsxs)(r.SCH,{children:[(0,a.jsx)(r.pj1,{children:"Type"}),(0,a.jsx)(r.pj1,{children:"Reason"}),(0,a.jsx)(r.pj1,{children:"Age"}),(0,a.jsx)(r.pj1,{children:"Message"}),(0,a.jsx)(r.pj1,{})]})}),(0,a.jsx)(r.RMI,{children:s.map((e=>(0,a.jsx)(c,{event:e},"".concat(e.event_type,"-").concat(e.seen))))})]})})}}}]); -//# sourceMappingURL=426.32092f8a.chunk.js.map \ No newline at end of file diff --git a/web-app/build/static/js/450.be9d2e55.chunk.js b/web-app/build/static/js/450.be9d2e55.chunk.js new file mode 100644 index 00000000000..336881b4334 --- /dev/null +++ b/web-app/build/static/js/450.be9d2e55.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[450],{450:(e,n,t)=>{t.r(n),t.d(n,{default:()=>h});var c=t(5043),a=t(9923),o=t(3216),s=t(5475),r=t(3097),l=t.n(r),i=t(4574),d=t(4770),p=t(579);const u=i.Ay.div((e=>{let{theme:n}=e;return{position:"absolute",left:0,top:80,height:"calc(100vh - 81px)",width:"100%",borderTop:"1px solid ".concat(l()(n,"borderColor","#E2E2E2")),"& .loader":{width:100,margin:"auto",marginTop:80},"& .iframeStyle":{border:0,position:"absolute",height:"calc(100vh - 77px)",width:"100%"}}})),h=()=>{const e=(0,o.Zp)(),n=(0,o.g)(),[t,r]=(0,c.useState)(!0),l=n.tenantName||"",i=n.tenantNamespace||"",h=c.useRef(null);return(0,p.jsxs)(c.Fragment,{children:[(0,p.jsx)(d.A,{label:(0,p.jsxs)(c.Fragment,{children:[(0,p.jsx)(s.N_,{to:"/tenants",children:"Tenants"})," > ",(0,p.jsx)(s.N_,{to:"/namespaces/".concat(i,"/tenants/").concat(l),children:l})," > Management"]}),actions:(0,p.jsxs)(c.Fragment,{children:[(0,p.jsx)(a.K0,{onClick:()=>{if(null!==h&&null!==h.current&&null!==h.current.contentDocument){const e=h.current.contentDocument.location.toString();let n="&";if(e.indexOf("?")<0&&(n="?"),e.indexOf("cp=y")<0){const t="".concat(e).concat(n,"cp=y");h.current.contentDocument.location.replace(t)}else h.current.contentDocument.location.reload()}},size:"large",children:(0,p.jsx)(a.fNY,{})}),(0,p.jsx)(a.K0,{onClick:()=>{e("/namespaces/".concat(i,"/tenants/").concat(l))},size:"large",children:(0,p.jsx)(a.Tir,{})})]})}),(0,p.jsxs)(u,{children:[t&&(0,p.jsx)(a.azJ,{className:"loader",children:(0,p.jsx)(a.aHM,{})}),(0,p.jsx)("iframe",{ref:h,className:"iframeStyle",title:"metrics",src:"/api/hop/".concat(i,"/").concat(l,"/?cp=y"),onLoad:e=>{r(!1)}})]})]})}}}]); +//# sourceMappingURL=450.be9d2e55.chunk.js.map \ No newline at end of file diff --git a/web-app/build/static/js/140.49921fb9.chunk.js.map b/web-app/build/static/js/450.be9d2e55.chunk.js.map similarity index 97% rename from web-app/build/static/js/140.49921fb9.chunk.js.map rename to web-app/build/static/js/450.be9d2e55.chunk.js.map index 4edadc601f5..971be7f4422 100644 --- a/web-app/build/static/js/140.49921fb9.chunk.js.map +++ b/web-app/build/static/js/450.be9d2e55.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/140.49921fb9.chunk.js","mappings":"2NAuBA,MAAMA,EAAeC,EAAAA,GAAOC,KAAIC,IAAA,IAAC,MAAEC,GAAOD,EAAA,MAAM,CAC9CE,SAAU,WACVC,KAAM,EACNC,IAAK,GACLC,OAAQ,qBACRC,MAAO,OACPC,UAAU,aAADC,OAAeC,IAAIR,EAAO,cAAe,YAClD,YAAa,CACXK,MAAO,IACPI,OAAQ,OACRC,UAAW,IAEb,iBAAkB,CAChBC,OAAQ,EACRV,SAAU,WACVG,OAAQ,qBACRC,MAAO,QAEV,IAwFD,EAtFYO,KACV,MAAMC,GAAWC,EAAAA,EAAAA,MACXC,GAASC,EAAAA,EAAAA,OAERC,EAASC,IAAcC,EAAAA,EAAAA,WAAkB,GAE1CC,EAAaL,EAAOK,YAAc,GAClCC,EAAkBN,EAAOM,iBAAmB,GAC5CC,EAAeC,EAAAA,OAAgC,MAErD,OACEC,EAAAA,EAAAA,MAACC,EAAAA,SAAQ,CAAAC,SAAA,EACPC,EAAAA,EAAAA,KAACC,EAAAA,EAAiB,CAChBC,OACEL,EAAAA,EAAAA,MAACC,EAAAA,SAAQ,CAAAC,SAAA,EACPC,EAAAA,EA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Console/Tenants/TenantDetails/hop/Hop.tsx"],"sourcesContent":["// This file is part of MinIO Operator\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useState } from \"react\";\nimport { Box, IconButton, Loader, LoginIcon, RefreshIcon } from \"mds\";\nimport { Link, useNavigate, useParams } from \"react-router-dom\";\nimport get from \"lodash/get\";\nimport styled from \"styled-components\";\nimport PageHeaderWrapper from \"../../../Common/PageHeaderWrapper/PageHeaderWrapper\";\n\nconst HopContainer = styled.div(({ theme }) => ({\n position: \"absolute\",\n left: 0,\n top: 80,\n height: \"calc(100vh - 81px)\",\n width: \"100%\",\n borderTop: `1px solid ${get(theme, \"borderColor\", \"#E2E2E2\")}`,\n \"& .loader\": {\n width: 100,\n margin: \"auto\",\n marginTop: 80,\n },\n \"& .iframeStyle\": {\n border: 0,\n position: \"absolute\",\n height: \"calc(100vh - 77px)\",\n width: \"100%\",\n },\n}));\n\nconst Hop = () => {\n const navigate = useNavigate();\n const params = useParams();\n\n const [loading, setLoading] = useState(true);\n\n const tenantName = params.tenantName || \"\";\n const tenantNamespace = params.tenantNamespace || \"\";\n const consoleFrame = React.useRef(null);\n\n return (\n \n \n Tenants\n {` > `}\n \n {tenantName}\n \n {` > Management`}\n \n }\n actions={\n \n {\n if (\n consoleFrame !== null &&\n consoleFrame.current !== null &&\n consoleFrame.current.contentDocument !== null\n ) {\n const loc =\n consoleFrame.current.contentDocument.location.toString();\n\n let add = \"&\";\n\n if (loc.indexOf(\"?\") < 0) {\n add = `?`;\n }\n\n if (loc.indexOf(\"cp=y\") < 0) {\n const next = `${loc}${add}cp=y`;\n consoleFrame.current.contentDocument.location.replace(next);\n } else {\n consoleFrame.current.contentDocument.location.reload();\n }\n }\n }}\n size=\"large\"\n >\n \n \n {\n navigate(\n `/namespaces/${tenantNamespace}/tenants/${tenantName}`,\n );\n }}\n size=\"large\"\n >\n \n \n \n }\n />\n \n {loading && (\n \n \n \n )}\n {\n setLoading(false);\n }}\n />\n \n
\n );\n};\n\nexport default Hop;\n"],"names":["HopContainer","styled","div","_ref","theme","position","left","top","height","width","borderTop","concat","get","margin","marginTop","border","Hop","navigate","useNavigate","params","useParams","loading","setLoading","useState","tenantName","tenantNamespace","consoleFrame","React","_jsxs","Fragment","children","_jsx","PageHeaderWrapper","label","Link","to","actions","IconButton","onClick","current","contentDocument","loc","location","toString","add","indexOf","next","replace","reload","size","RefreshIcon","LoginIcon","Box","className","Loader","ref","title","src","onLoad","val"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/450.be9d2e55.chunk.js","mappings":"0NAuBA,MAAMA,EAAeC,EAAAA,GAAOC,KAAIC,IAAA,IAAC,MAAEC,GAAOD,EAAA,MAAM,CAC9CE,SAAU,WACVC,KAAM,EACNC,IAAK,GACLC,OAAQ,qBACRC,MAAO,OACPC,UAAU,aAADC,OAAeC,IAAIR,EAAO,cAAe,YAClD,YAAa,CACXK,MAAO,IACPI,OAAQ,OACRC,UAAW,IAEb,iBAAkB,CAChBC,OAAQ,EACRV,SAAU,WACVG,OAAQ,qBACRC,MAAO,QAEV,IAwFD,EAtFYO,KACV,MAAMC,GAAWC,EAAAA,EAAAA,MACXC,GAASC,EAAAA,EAAAA,MAERC,EAASC,IAAcC,EAAAA,EAAAA,WAAkB,GAE1CC,EAAaL,EAAOK,YAAc,GAClCC,EAAkBN,EAAOM,iBAAmB,GAC5CC,EAAeC,EAAAA,OAAgC,MAErD,OACEC,EAAAA,EAAAA,MAACC,EAAAA,SAAQ,CAAAC,SAAA,EACPC,EAAAA,EAAAA,KA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G,YAAA9C,OAAcc,EAAe,KAAAd,OAAIa,EAAU,UAC9CkC,OAASC,IACPrC,GAAW,EAAM,SAId,C","sources":["screens/Console/Tenants/TenantDetails/hop/Hop.tsx"],"sourcesContent":["// This file is part of MinIO Operator\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useState } from \"react\";\nimport { Box, IconButton, Loader, LoginIcon, RefreshIcon } from \"mds\";\nimport { Link, useNavigate, useParams } from \"react-router-dom\";\nimport get from \"lodash/get\";\nimport styled from \"styled-components\";\nimport PageHeaderWrapper from \"../../../Common/PageHeaderWrapper/PageHeaderWrapper\";\n\nconst HopContainer = styled.div(({ theme }) => ({\n position: \"absolute\",\n left: 0,\n top: 80,\n height: \"calc(100vh - 81px)\",\n width: \"100%\",\n borderTop: `1px solid ${get(theme, \"borderColor\", \"#E2E2E2\")}`,\n \"& .loader\": {\n width: 100,\n margin: \"auto\",\n marginTop: 80,\n },\n \"& .iframeStyle\": {\n border: 0,\n position: \"absolute\",\n height: \"calc(100vh - 77px)\",\n width: \"100%\",\n },\n}));\n\nconst Hop = () => {\n const navigate = useNavigate();\n const params = useParams();\n\n const [loading, setLoading] = useState(true);\n\n const tenantName = params.tenantName || \"\";\n const tenantNamespace = params.tenantNamespace || \"\";\n const consoleFrame = React.useRef(null);\n\n return (\n \n \n Tenants\n {` > `}\n \n {tenantName}\n \n {` > Management`}\n \n }\n actions={\n \n {\n if (\n consoleFrame !== null &&\n consoleFrame.current !== null &&\n consoleFrame.current.contentDocument !== null\n ) {\n const loc =\n consoleFrame.current.contentDocument.location.toString();\n\n let add = \"&\";\n\n if (loc.indexOf(\"?\") < 0) {\n add = `?`;\n }\n\n if (loc.indexOf(\"cp=y\") < 0) {\n const next = `${loc}${add}cp=y`;\n consoleFrame.current.contentDocument.location.replace(next);\n } else {\n consoleFrame.current.contentDocument.location.reload();\n }\n }\n }}\n size=\"large\"\n >\n \n \n {\n navigate(\n `/namespaces/${tenantNamespace}/tenants/${tenantName}`,\n );\n }}\n size=\"large\"\n >\n \n \n \n }\n />\n \n {loading && (\n \n \n \n )}\n {\n setLoading(false);\n }}\n />\n \n
\n );\n};\n\nexport default Hop;\n"],"names":["HopContainer","styled","div","_ref","theme","position","left","top","height","width","borderTop","concat","get","margin","marginTop","border","Hop","navigate","useNavigate","params","useParams","loading","setLoading","useState","tenantName","tenantNamespace","consoleFrame","React","_jsxs","Fragment","children","_jsx","PageHeaderWrapper","label","Link","to","actions","IconButton","onClick","current","contentDocument","loc","location","toString","add","indexOf","next","replace","reload","size","RefreshIcon","LoginIcon","Box","className","Loader","ref","title","src","onLoad","val"],"sourceRoot":""} \ No newline at end of file diff --git a/web-app/build/static/js/461.dbb22491.chunk.js b/web-app/build/static/js/461.dbb22491.chunk.js new file mode 100644 index 00000000000..d8b82571630 --- /dev/null +++ b/web-app/build/static/js/461.dbb22491.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[461],{5448:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(5043),s=n(649);const l=(e,t)=>{const[n,l]=(0,a.useState)(!1);return[n,(n,a,o,r)=>{l(!0),s.A.invoke(n,a,o,r).then((t=>{l(!1),e(t)})).catch((e=>{l(!1),t(e)}))}]}},8461:(e,t,n)=>{n.r(t),n.d(t,{default:()=>d});var a=n(5043),s=n(9923),l=n(4159),o=n(2961),r=n(5448),c=n(8661),i=n(579);const d=e=>{let{deleteOpen:t,selectedTenant:n,closeDeleteModalAndRefresh:d}=e;const m=(0,o.jL)(),[p,u]=(0,a.useState)(""),[h,x]=(0,a.useState)(!1),[b,j]=(0,r.A)((()=>d(!0)),(e=>m((0,l.C9)(e))));return(0,i.jsx)(c.A,{title:"Delete Tenant",confirmText:"Delete",isOpen:t,titleIcon:(0,i.jsx)(s.xWY,{}),isLoading:b,onConfirm:()=>{p===n.name?j("DELETE","/api/v1/namespaces/".concat(n.namespace,"/tenants/").concat(n.name),{delete_pvcs:h}):(0,l.C9)({errorMessage:"Tenant name is incorrect",detailedError:""})},onClose:()=>d(!1),confirmButtonProps:{disabled:p!==n.name||b},confirmationContent:(0,i.jsxs)(s.Hbc,{withBorders:!1,containerPadding:!1,children:[h&&(0,i.jsx)(s.xA9,{item:!0,xs:12,className:"inputItem",children:(0,i.jsx)(s.Wei,{variant:"error",title:"WARNING",message:"Delete Volumes: Data will be permanently deleted. Please proceed with caution."})}),"To continue please type ",(0,i.jsx)("b",{children:n.name})," in the box.",(0,i.jsxs)(s.xA9,{item:!0,xs:12,children:[(0,i.jsx)(s.cl_,{id:"retype-tenant",name:"retype-tenant",onChange:e=>{u(e.target.value)},label:"",value:p}),(0,i.jsx)(s.dOG,{checked:h,id:"delete-volumes",label:"Delete Volumes",name:"delete-volumes",onChange:()=>{x(!h)}})]})]})})}}}]); +//# sourceMappingURL=461.dbb22491.chunk.js.map \ No newline at end of file diff --git a/web-app/build/static/js/350.8e4c2698.chunk.js.map b/web-app/build/static/js/461.dbb22491.chunk.js.map similarity index 98% rename from web-app/build/static/js/350.8e4c2698.chunk.js.map rename to web-app/build/static/js/461.dbb22491.chunk.js.map index 619a25ceb86..c41b8b49b87 100644 --- a/web-app/build/static/js/350.8e4c2698.chunk.js.map +++ b/web-app/build/static/js/461.dbb22491.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/350.8e4c2698.chunk.js","mappings":"0IAQA,MAuBA,EAvBeA,CACbC,EACAC,KAEA,MAAOC,EAAWC,IAAgBC,EAAAA,EAAAA,WAAkB,GAgBpD,MAAO,CAACF,EA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,4BACsB9B,EAAAA,EAAAA,KAAA,KAAAuB,SAAInC,EAAeqB,OAAS,gBACpDU,EAAAA,EAAAA,MAACK,EAAAA,IAAI,CAACC,MAAI,EAACC,GAAI,GAAGH,SAAA,EAChBvB,EAAAA,EAAAA,KAAC+B,EAAAA,IAAQ,CACPC,GAAG,gBACHvB,KAAK,gBACLwB,SAAWC,IACTzC,EAAgByC,EAAMC,OAAOC,MAAM,EAErCC,MAAM,GACND,MAAO5C,KAETQ,EAAAA,EAAAA,KAACsC,EAAAA,IAAM,CACLC,QAAS7C,EACTsC,GAAE,iBACFK,MAAO,iBACP5B,KAAI,iBACJwB,SAAUA,KACRtC,GAAkBD,EAAc,WAM1C,C","sources":["screens/Console/Common/Hooks/useApi.tsx","screens/Console/Tenants/ListTenants/DeleteTenant.tsx"],"sourcesContent":["import { useState } from \"react\";\nimport api from \"../../../../common/api\";\nimport { ErrorResponseHandler } from \"../../../../common/types\";\n\ntype NoReturnFunction = (param?: any) => void;\ntype ApiMethodToInvoke = (method: string, url: string, data?: any) => void;\ntype IsApiInProgress = boolean;\n\nconst useApi = (\n onSuccess: NoReturnFunction,\n onError: NoReturnFunction,\n): [IsApiInProgress, ApiMethodToInvoke] => {\n const [isLoading, setIsLoading] = useState(false);\n\n const callApi = (method: string, url: string, data?: any, headers?: any) => {\n setIsLoading(true);\n api\n .invoke(method, url, data, headers)\n .then((res: any) => {\n setIsLoading(false);\n onSuccess(res);\n })\n .catch((err: ErrorResponseHandler) => {\n setIsLoading(false);\n onError(err);\n });\n };\n\n return [isLoading, callApi];\n};\n\nexport default useApi;\n","// This file is part of MinIO Operator\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { useState } from \"react\";\nimport {\n ConfirmDeleteIcon,\n FormLayout,\n InformativeMessage,\n InputBox,\n Switch,\n Grid,\n} from \"mds\";\nimport { ErrorResponseHandler } from \"../../../../common/types\";\nimport { setErrorSnackMessage } from \"../../../../systemSlice\";\nimport { useAppDispatch } from \"../../../../store\";\nimport { Tenant } from \"../../../../api/operatorApi\";\nimport useApi from \"../../Common/Hooks/useApi\";\nimport ConfirmDialog from \"../../Common/ModalWrapper/ConfirmDialog\";\n\ninterface IDeleteTenant {\n deleteOpen: boolean;\n selectedTenant: Tenant;\n closeDeleteModalAndRefresh: (refreshList: boolean) => any;\n}\n\nconst DeleteTenant = ({\n deleteOpen,\n selectedTenant,\n closeDeleteModalAndRefresh,\n}: IDeleteTenant) => {\n const dispatch = useAppDispatch();\n const [retypeTenant, setRetypeTenant] = useState(\"\");\n\n const onDelSuccess = () => closeDeleteModalAndRefresh(true);\n const onDelError = (err: ErrorResponseHandler) =>\n dispatch(setErrorSnackMessage(err));\n const onClose = () => closeDeleteModalAndRefresh(false);\n\n const [deleteVolumes, setDeleteVolumes] = useState(false);\n\n const [deleteLoading, invokeDeleteApi] = useApi(onDelSuccess, onDelError);\n\n const onConfirmDelete = () => {\n if (retypeTenant !== selectedTenant.name) {\n setErrorSnackMessage({\n errorMessage: \"Tenant name is incorrect\",\n detailedError: \"\",\n });\n return;\n }\n invokeDeleteApi(\n \"DELETE\",\n `/api/v1/namespaces/${selectedTenant.namespace}/tenants/${selectedTenant.name}`,\n { delete_pvcs: deleteVolumes },\n );\n };\n\n return (\n }\n isLoading={deleteLoading}\n onConfirm={onConfirmDelete}\n onClose={onClose}\n confirmButtonProps={{\n disabled: retypeTenant !== selectedTenant.name || deleteLoading,\n }}\n confirmationContent={\n \n {deleteVolumes && (\n \n \n \n )}\n To continue please type {selectedTenant.name} in the box.\n \n ) => {\n setRetypeTenant(event.target.value);\n }}\n label=\"\"\n value={retypeTenant}\n />\n {\n setDeleteVolumes(!deleteVolumes);\n }}\n />\n \n \n }\n />\n );\n};\n\nexport default DeleteTenant;\n"],"names":["useApi","onSuccess","onError","isLoading","setIsLoading","useState","callApi","method","url","data","headers","api","invoke","then","res","catch","err","_ref","deleteOpen","selectedTenant","closeDeleteModalAndRefresh","dispatch","useAppDispatch","retypeTenant","setRetypeTenant","deleteVolumes","setDeleteVolumes","deleteLoading","invokeDeleteApi","onDelSuccess","setErrorSnackMessage","_jsx","ConfirmDialog","title","confirmText","isOpen","titleIcon","ConfirmDeleteIcon","onConfirm","onConfirmDelete","name","concat","namespace","delete_pvcs","errorMessage","detailedError","onClose","confirmButtonProps","disabled","confirmationContent","_jsxs","FormLayout","withBorders","containerPadding","children","Grid","item","xs","className","InformativeMessage","variant","message","InputBox","id","onChange","event","target","value","label","Switch","checked"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/461.dbb22491.chunk.js","mappings":"yIAQA,MAuBA,EAvBeA,CACbC,EACAC,KAEA,MAAOC,EAAWC,IAAgBC,EAAAA,EAAAA,WAAkB,GAgBpD,MAAO,CAACF,EAdQG,CAACC,EAAgBC,EAAaC,EAAYC,KACxDN,GAAa,GACbO,EAAAA,EACGC,OAAOL,EAAQC,EAAKC,EAAMC,GAC1BG,MAAMC,IACLV,GAAa,GACbH,EAAUa,EAAI,IAEfC,OAAOC,IACNZ,GAAa,GACbF,EAAQc,EAAI,GACZ,EAGqB,C,wHCU7B,MAoFA,EApFqBC,IAIC,IAJA,WACpBC,EAAU,eACVC,EAAc,2BACdC,GACcH,EACd,MAAMI,GAAWC,EAAAA,EAAAA,OACVC,EAAcC,IAAmBnB,EAAAA,EAAAA,UAAS,KAO1CoB,EAAeC,IAAoBrB,EAAAA,EAAAA,WAAkB,IAErDsB,EAAeC,IAAmB5B,EAAAA,EAAAA,IAPpB6B,IAAMT,GAA2B,KAClCJ,GAClBK,GAASS,EAAAA,E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sx"],"sourcesContent":["import { useState } from \"react\";\nimport api from \"../../../../common/api\";\nimport { ErrorResponseHandler } from \"../../../../common/types\";\n\ntype NoReturnFunction = (param?: any) => void;\ntype ApiMethodToInvoke = (method: string, url: string, data?: any) => void;\ntype IsApiInProgress = boolean;\n\nconst useApi = (\n onSuccess: NoReturnFunction,\n onError: NoReturnFunction,\n): [IsApiInProgress, ApiMethodToInvoke] => {\n const [isLoading, setIsLoading] = useState(false);\n\n const callApi = (method: string, url: string, data?: any, headers?: any) => {\n setIsLoading(true);\n api\n .invoke(method, url, data, headers)\n .then((res: any) => {\n setIsLoading(false);\n onSuccess(res);\n })\n .catch((err: ErrorResponseHandler) => {\n setIsLoading(false);\n onError(err);\n });\n };\n\n return [isLoading, callApi];\n};\n\nexport default useApi;\n","// This file is part of MinIO Operator\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { useState } from \"react\";\nimport {\n ConfirmDeleteIcon,\n FormLayout,\n InformativeMessage,\n InputBox,\n Switch,\n Grid,\n} from \"mds\";\nimport { ErrorResponseHandler } from \"../../../../common/types\";\nimport { setErrorSnackMessage } from \"../../../../systemSlice\";\nimport { useAppDispatch } from \"../../../../store\";\nimport { Tenant } from \"../../../../api/operatorApi\";\nimport useApi from \"../../Common/Hooks/useApi\";\nimport ConfirmDialog from \"../../Common/ModalWrapper/ConfirmDialog\";\n\ninterface IDeleteTenant {\n deleteOpen: boolean;\n selectedTenant: Tenant;\n closeDeleteModalAndRefresh: (refreshList: boolean) => any;\n}\n\nconst DeleteTenant = ({\n deleteOpen,\n selectedTenant,\n closeDeleteModalAndRefresh,\n}: IDeleteTenant) => {\n const dispatch = useAppDispatch();\n const [retypeTenant, setRetypeTenant] = useState(\"\");\n\n const onDelSuccess = () => closeDeleteModalAndRefresh(true);\n const onDelError = (err: ErrorResponseHandler) =>\n dispatch(setErrorSnackMessage(err));\n const onClose = () => closeDeleteModalAndRefresh(false);\n\n const [deleteVolumes, setDeleteVolumes] = useState(false);\n\n const [deleteLoading, invokeDeleteApi] = useApi(onDelSuccess, onDelError);\n\n const onConfirmDelete = () => {\n if (retypeTenant !== selectedTenant.name) {\n setErrorSnackMessage({\n errorMessage: \"Tenant name is incorrect\",\n detailedError: \"\",\n });\n return;\n }\n invokeDeleteApi(\n \"DELETE\",\n `/api/v1/namespaces/${selectedTenant.namespace}/tenants/${selectedTenant.name}`,\n { delete_pvcs: deleteVolumes },\n );\n };\n\n return (\n }\n isLoading={deleteLoading}\n onConfirm={onConfirmDelete}\n onClose={onClose}\n confirmButtonProps={{\n disabled: retypeTenant !== selectedTenant.name || deleteLoading,\n }}\n confirmationContent={\n \n {deleteVolumes && (\n \n \n \n )}\n To continue please type {selectedTenant.name} in the box.\n \n ) => {\n setRetypeTenant(event.target.value);\n }}\n label=\"\"\n value={retypeTenant}\n />\n {\n setDeleteVolumes(!deleteVolumes);\n }}\n />\n \n \n }\n />\n );\n};\n\nexport default DeleteTenant;\n"],"names":["useApi","onSuccess","onError","isLoading","setIsLoading","useState","callApi","method","url","data","headers","api","invoke","then","res","catch","err","_ref","deleteOpen","selectedTenant","closeDeleteModalAndRefresh","dispatch","useAppDispatch","retypeTenant","setRetypeTenant","deleteVolumes","setDeleteVolumes","deleteLoading","invokeDeleteApi","onDelSuccess","setErrorSnackMessage","_jsx","ConfirmDialog","title","confirmText","isOpen","titleIcon","ConfirmDeleteIcon","onConfirm","onConfirmDelete","name","concat","namespace","delete_pvcs","errorMessage","detailedError","onClose","confirmButtonProps","disabled","confirmationContent","_jsxs","FormLayout","withBorders","containerPadding","children","Grid","item","xs","className","InformativeMessage","variant","message","InputBox","id","onChange","event","target","value","label","Switch","checked"],"sourceRoot":""} \ No newline at end of file diff --git a/web-app/build/static/js/463.39c0be1b.chunk.js b/web-app/build/static/js/463.39c0be1b.chunk.js deleted file mode 100644 index 95e4fc05758..00000000000 --- a/web-app/build/static/js/463.39c0be1b.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[463],{8182:(e,t,o)=>{function i(e){var t,o,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;tn});const n=function(){for(var e,t,o=0,n="";o{function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}o.d(t,{qj:()=>Q,Z8:()=>ie,t1:()=>ne,aV:()=>we});var n=o(9142);function r(e,t){for(var o=0;o=0&&a===s&&c())}function S(e,t){if(null==e)return{};var o,i,n=function(e,t){if(null==e)return{};var o,i,n={},r=Object.keys(e);for(i=0;i=0||(n[o]=e[o]);return n}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}var C=function(){function e(t){var o=t.cellCount,n=t.cellSizeGetter,r=t.estimatedCellSize;i(this,e),(0,f.Z)(this,"_cellSizeAndPositionData",{}),(0,f.Z)(this,"_lastMeasuredIndex",-1),(0,f.Z)(this,"_lastBatchedIndex",-1),(0,f.Z)(this,"_cellCount",void 0),(0,f.Z)(this,"_cellSizeGetter",void 0),(0,f.Z)(this,"_estimatedCellSize",void 0),this._cellSizeGetter=n,this._cellCount=o,this._estimatedCellSize=r}return l(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(e){var t=e.cellCount,o=e.estimatedCellSize,i=e.cellSizeGetter;this._cellCount=t,this._estimatedCellSize=o,this._cellSizeGetter=i}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(e){if(e<0||e>=this._cellCount)throw Error("Requested index ".concat(e," is outside of range 0..").concat(this._cellCount));if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),o=t.offset+t.size,i=this._lastMeasuredIndex+1;i<=e;i++){var n=this._cellSizeGetter({index:i});if(void 0===n||isNaN(n))throw Error("Invalid size returned for cell ".concat(i," of value ").concat(n));null===n?(this._cellSizeAndPositionData[i]={offset:o,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[i]={offset:o,size:n},o+=n,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,o=void 0===t?"auto":t,i=e.containerSize,n=e.currentOffset,r=e.targetIndex;if(i<=0)return 0;var l,s=this.getSizeAndPositionOfCell(r),a=s.offset,c=a-i+s.size;switch(o){case"start":l=a;break;case"end":l=c;break;case"center":l=a-(i-s.size)/2;break;default:l=Math.max(c,Math.min(a,n))}var d=this.getTotalSize();return Math.max(0,Math.min(d-i,l))}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,o=e.offset;if(0===this.getTotalSize())return{};var i=o+t,n=this._findNearestCell(o),r=this.getSizeAndPositionOfCell(n);o=r.offset+r.size;for(var l=n;oo&&(e=i-1)}return t>0?t-1:0}},{key:"_exponentialSearch",value:function(e,t){for(var o=1;e=e?this._binarySearch(o,0,e):this._exponentialSearch(o,e)}}]),e}(),y=function(){return"undefined"!==typeof window&&window.chrome?16777100:15e5},w=function(){function e(t){var o=t.maxScrollSize,n=void 0===o?y():o,r=S(t,["maxScrollSize"]);i(this,e),(0,f.Z)(this,"_cellSizeAndPositionManager",void 0),(0,f.Z)(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new C(r),this._maxScrollSize=n}return l(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,o=e.offset,i=this._cellSizeAndPositionManager.getTotalSize(),n=this.getTotalSize(),r=this._getOffsetPercentage({containerSize:t,offset:o,totalSize:n});return Math.round(r*(n-i))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,o=void 0===t?"auto":t,i=e.containerSize,n=e.currentOffset,r=e.targetIndex;n=this._safeOffsetToOffset({containerSize:i,offset:n});var l=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:i,currentOffset:n,targetIndex:r});return this._offsetToSafeOffset({containerSize:i,offset:l})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,o=e.offset;return o=this._safeOffsetToOffset({containerSize:t,offset:o}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:o})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,o=e.offset,i=e.totalSize;return i<=t?0:o/(i-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,o=e.offset,i=this._cellSizeAndPositionManager.getTotalSize(),n=this.getTotalSize();if(i===n)return o;var r=this._getOffsetPercentage({containerSize:t,offset:o,totalSize:i});return Math.round(r*(n-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,o=e.offset,i=this._cellSizeAndPositionManager.getTotalSize(),n=this.getTotalSize();if(i===n)return o;var r=this._getOffsetPercentage({containerSize:t,offset:o,totalSize:n});return Math.round(r*(i-t))}}]),e}();function x(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(o){var i=o.callback,n=o.indices,r=Object.keys(n),l=!e||r.every((function(e){var t=n[e];return Array.isArray(t)?t.length>0:t>=0})),s=r.length!==Object.keys(t).length||r.some((function(e){var o=t[e],i=n[e];return Array.isArray(i)?o.join(",")!==i.join(","):o!==i}));t=n,l&&s&&i(n)}}function R(e){var t=e.cellSize,o=e.cellSizeAndPositionManager,i=e.previousCellsCount,n=e.previousCellSize,r=e.previousScrollToAlignment,l=e.previousScrollToIndex,s=e.previousSize,a=e.scrollOffset,c=e.scrollToAlignment,d=e.scrollToIndex,h=e.size,u=e.sizeJustIncreasedFromZero,f=e.updateScrollIndexCallback,p=o.getCellCount(),g=d>=0&&d0&&(ho.getTotalSize()-h&&f(p-1)}const b=!("undefined"===typeof window||!window.document||!window.document.createElement);var T,z;function I(e){if((!T&&0!==T||e)&&b){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),T=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return T}var M,k,P=(z="undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).requestAnimationFrame||z.webkitRequestAnimationFrame||z.mozRequestAnimationFrame||z.oRequestAnimationFrame||z.msRequestAnimationFrame||function(e){return z.setTimeout(e,1e3/60)},O=z.cancelAnimationFrame||z.webkitCancelAnimationFrame||z.mozCancelAnimationFrame||z.oCancelAnimationFrame||z.msCancelAnimationFrame||function(e){z.clearTimeout(e)},Z=P,L=O,G=function(e){return L(e.id)},A=function(e,t){var o;Promise.resolve().then((function(){o=Date.now()}));var i={id:Z((function n(){Date.now()-o>=t?e.call():i.id=Z(n)}))};return i};function H(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function W(e){for(var t=1;t0&&(o._initialScrollTop=o._getCalculatedScrollTop(e,o.state)),e.scrollToColumn>0&&(o._initialScrollLeft=o._getCalculatedScrollLeft(e,o.state)),o}return u(t,e),l(t,[{key:"getOffsetForCell",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,o=void 0===t?this.props.scrollToAlignment:t,i=e.columnIndex,n=void 0===i?this.props.scrollToColumn:i,r=e.rowIndex,l=void 0===r?this.props.scrollToRow:r,s=W({},this.props,{scrollToAlignment:o,scrollToColumn:n,scrollToRow:l});return{scrollLeft:this._getCalculatedScrollLeft(s),scrollTop:this._getCalculatedScrollTop(s)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(e){var t=e.scrollLeft,o=void 0===t?0:t,i=e.scrollTop,n=void 0===i?0:i;if(!(n<0)){this._debounceScrollEnded();var r=this.props,l=r.autoHeight,s=r.autoWidth,a=r.height,c=r.width,d=this.state.instanceProps,h=d.scrollbarSize,u=d.rowSizeAndPositionManager.getTotalSize(),f=d.columnSizeAndPositionManager.getTotalSize(),p=Math.min(Math.max(0,f-c+h),o),g=Math.min(Math.max(0,u-a+h),n);if(this.state.scrollLeft!==p||this.state.scrollTop!==g){var v={isScrolling:!0,scrollDirectionHorizontal:p!==this.state.scrollLeft?p>this.state.scrollLeft?1:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:g!==this.state.scrollTop?g>this.state.scrollTop?1:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:E};l||(v.scrollTop=g),s||(v.scrollLeft=p),v.needToResetStyleCache=!1,this.setState(v)}this._invokeOnScrollMemoizer({scrollLeft:p,scrollTop:g,totalColumnsWidth:f,totalRowsHeight:u})}}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,o=e.rowIndex;this._deferredInvalidateColumnIndex="number"===typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,t):t,this._deferredInvalidateRowIndex="number"===typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,o):o}},{key:"measureAllCells",value:function(){var e=this.props,t=e.columnCount,o=e.rowCount,i=this.state.instanceProps;i.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),i.rowSizeAndPositionManager.getSizeAndPositionOfCell(o-1)}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,i=e.rowIndex,n=void 0===i?0:i,r=this.props,l=r.scrollToColumn,s=r.scrollToRow,a=this.state.instanceProps;a.columnSizeAndPositionManager.resetCell(o),a.rowSizeAndPositionManager.resetCell(n),this._recomputeScrollLeftFlag=l>=0&&(1===this.state.scrollDirectionHorizontal?o<=l:o>=l),this._recomputeScrollTopFlag=s>=0&&(1===this.state.scrollDirectionVertical?n<=s:n>=s),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,o=e.rowIndex,i=this.props.columnCount,n=this.props;i>1&&void 0!==t&&this._updateScrollLeftForScrollToColumn(W({},n,{scrollToColumn:t})),void 0!==o&&this._updateScrollTopForScrollToRow(W({},n,{scrollToRow:o}))}},{key:"componentDidMount",value:function(){var e=this.props,o=e.getScrollbarSize,i=e.height,n=e.scrollLeft,r=e.scrollToColumn,l=e.scrollTop,s=e.scrollToRow,a=e.width,c=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),c.scrollbarSizeMeasured||this.setState((function(e){var t=W({},e,{needToResetStyleCache:!1});return t.instanceProps.scrollbarSize=o(),t.instanceProps.scrollbarSizeMeasured=!0,t})),"number"===typeof n&&n>=0||"number"===typeof l&&l>=0){var d=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:n,scrollTop:l});d&&(d.needToResetStyleCache=!1,this.setState(d))}this._scrollingContainer&&(this._scrollingContainer.scrollLeft!==this.state.scrollLeft&&(this._scrollingContainer.scrollLeft=this.state.scrollLeft),this._scrollingContainer.scrollTop!==this.state.scrollTop&&(this._scrollingContainer.scrollTop=this.state.scrollTop));var h=i>0&&a>0;r>=0&&h&&this._updateScrollLeftForScrollToColumn(),s>=0&&h&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:l||0,totalColumnsWidth:c.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:c.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var o=this,i=this.props,n=i.autoHeight,r=i.autoWidth,l=i.columnCount,s=i.height,a=i.rowCount,c=i.scrollToAlignment,d=i.scrollToColumn,h=i.scrollToRow,u=i.width,f=this.state,p=f.scrollLeft,g=f.scrollPositionChangeReason,v=f.scrollTop,_=f.instanceProps;this._handleInvalidatedGridSize();var m=l>0&&0===e.columnCount||a>0&&0===e.rowCount;g===D&&(!r&&p>=0&&(p!==this._scrollingContainer.scrollLeft||m)&&(this._scrollingContainer.scrollLeft=p),!n&&v>=0&&(v!==this._scrollingContainer.scrollTop||m)&&(this._scrollingContainer.scrollTop=v));var S=(0===e.width||0===e.height)&&s>0&&u>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):R({cellSizeAndPositionManager:_.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:p,scrollToAlignment:c,scrollToIndex:d,size:u,sizeJustIncreasedFromZero:S,updateScrollIndexCallback:function(){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):R({cellSizeAndPositionManager:_.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:v,scrollToAlignment:c,scrollToIndex:h,size:s,sizeJustIncreasedFromZero:S,updateScrollIndexCallback:function(){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),p!==t.scrollLeft||v!==t.scrollTop){var C=_.rowSizeAndPositionManager.getTotalSize(),y=_.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:p,scrollTop:v,totalColumnsWidth:y,totalRowsHeight:C})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&G(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,o=e.autoHeight,i=e.autoWidth,n=e.className,r=e.containerProps,l=e.containerRole,s=e.containerStyle,a=e.height,c=e.id,d=e.noContentRenderer,h=e.role,u=e.style,f=e.tabIndex,g=e.width,m=this.state,S=m.instanceProps,C=m.needToResetStyleCache,y=this._isScrolling(),w={boxSizing:"border-box",direction:"ltr",height:o?"auto":a,position:"relative",width:i?"auto":g,WebkitOverflowScrolling:"touch",willChange:"transform"};C&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var x=S.columnSizeAndPositionManager.getTotalSize(),R=S.rowSizeAndPositionManager.getTotalSize(),b=R>a?S.scrollbarSize:0,T=x>g?S.scrollbarSize:0;T===this._horizontalScrollBarSize&&b===this._verticalScrollBarSize||(this._horizontalScrollBarSize=T,this._verticalScrollBarSize=b,this._scrollbarPresenceChanged=!0),w.overflowX=x+b<=g?"hidden":"auto",w.overflowY=R+T<=a?"hidden":"auto";var z=this._childrenToDisplay,I=0===z.length&&a>0&&g>0;return p.createElement("div",(0,v.Z)({ref:this._setScrollingContainerRef},r,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:(0,_.Z)("ReactVirtualized__Grid",n),id:c,onScroll:this._onScroll,role:h,style:W({},w,{},u),tabIndex:f}),z.length>0&&p.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:l,style:W({width:t?"auto":x,height:R,maxWidth:x,maxHeight:R,overflow:"hidden",pointerEvents:y?"none":"",position:"relative"},s)},z),I&&d())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,o=e.cellRenderer,i=e.cellRangeRenderer,n=e.columnCount,r=e.deferredMeasurementCache,l=e.height,s=e.overscanColumnCount,a=e.overscanIndicesGetter,c=e.overscanRowCount,d=e.rowCount,h=e.width,u=e.isScrollingOptOut,f=t.scrollDirectionHorizontal,p=t.scrollDirectionVertical,g=t.instanceProps,v=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,_=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,m=this._isScrolling(e,t);if(this._childrenToDisplay=[],l>0&&h>0){var S=g.columnSizeAndPositionManager.getVisibleCellRange({containerSize:h,offset:_}),C=g.rowSizeAndPositionManager.getVisibleCellRange({containerSize:l,offset:v}),y=g.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:h,offset:_}),w=g.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:l,offset:v});this._renderedColumnStartIndex=S.start,this._renderedColumnStopIndex=S.stop,this._renderedRowStartIndex=C.start,this._renderedRowStopIndex=C.stop;var x=a({direction:"horizontal",cellCount:n,overscanCellsCount:s,scrollDirection:f,startIndex:"number"===typeof S.start?S.start:0,stopIndex:"number"===typeof S.stop?S.stop:-1}),R=a({direction:"vertical",cellCount:d,overscanCellsCount:c,scrollDirection:p,startIndex:"number"===typeof C.start?C.start:0,stopIndex:"number"===typeof C.stop?C.stop:-1}),b=x.overscanStartIndex,T=x.overscanStopIndex,z=R.overscanStartIndex,I=R.overscanStopIndex;if(r){if(!r.hasFixedHeight())for(var M=z;M<=I;M++)if(!r.has(M,0)){b=0,T=n-1;break}if(!r.hasFixedWidth())for(var k=b;k<=T;k++)if(!r.has(0,k)){z=0,I=d-1;break}}this._childrenToDisplay=i({cellCache:this._cellCache,cellRenderer:o,columnSizeAndPositionManager:g.columnSizeAndPositionManager,columnStartIndex:b,columnStopIndex:T,deferredMeasurementCache:r,horizontalOffsetAdjustment:y,isScrolling:m,isScrollingOptOut:u,parent:this,rowSizeAndPositionManager:g.rowSizeAndPositionManager,rowStartIndex:z,rowStopIndex:I,scrollLeft:_,scrollTop:v,styleCache:this._styleCache,verticalOffsetAdjustment:w,visibleColumnIndices:S,visibleRowIndices:C}),this._columnStartIndex=b,this._columnStopIndex=T,this._rowStartIndex=z,this._rowStopIndex=I}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&G(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=A(this._debounceScrollEndedCallback,e)}},{key:"_handleInvalidatedGridSize",value:function(){if("number"===typeof this._deferredInvalidateColumnIndex&&"number"===typeof this._deferredInvalidateRowIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,o=e.scrollLeft,i=e.scrollTop,n=e.totalColumnsWidth,r=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var o=e.scrollLeft,i=e.scrollTop,l=t.props,s=l.height;(0,l.onScroll)({clientHeight:s,clientWidth:l.width,scrollHeight:r,scrollLeft:o,scrollTop:i,scrollWidth:n})},indices:{scrollLeft:o,scrollTop:i}})}},{key:"_isScrolling",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return Object.hasOwnProperty.call(e,"isScrolling")?Boolean(e.isScrolling):Boolean(t.isScrolling)}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var e=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,e({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(e){var o=e.scrollLeft,i=e.scrollTop,n=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:o,scrollTop:i});n&&(n.needToResetStyleCache=!1,this.setState(n))}},{key:"_getCalculatedScrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollLeft(e,o)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,i=t._getScrollLeftForScrollToColumnStateUpdate(e,o);i&&(i.needToResetStyleCache=!1,this.setState(i))}},{key:"_getCalculatedScrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollTop(e,o)}},{key:"_resetStyleCache",value:function(){var e=this._styleCache,t=this._cellCache,o=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var i=this._rowStartIndex;i<=this._rowStopIndex;i++)for(var n=this._columnStartIndex;n<=this._columnStopIndex;n++){var r="".concat(i,"-").concat(n);this._styleCache[r]=e[r],o&&(this._cellCache[r]=t[r])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,i=t._getScrollTopForScrollToRowStateUpdate(e,o);i&&(i.needToResetStyleCache=!1,this.setState(i))}}],[{key:"getDerivedStateFromProps",value:function(e,o){var i={};0===e.columnCount&&0!==o.scrollLeft||0===e.rowCount&&0!==o.scrollTop?(i.scrollLeft=0,i.scrollTop=0):(e.scrollLeft!==o.scrollLeft&&e.scrollToColumn<0||e.scrollTop!==o.scrollTop&&e.scrollToRow<0)&&Object.assign(i,t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}));var n,r,l=o.instanceProps;return i.needToResetStyleCache=!1,e.columnWidth===l.prevColumnWidth&&e.rowHeight===l.prevRowHeight||(i.needToResetStyleCache=!0),l.columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:t._getEstimatedColumnSize(e),cellSizeGetter:t._wrapSizeGetter(e.columnWidth)}),l.rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:t._getEstimatedRowSize(e),cellSizeGetter:t._wrapSizeGetter(e.rowHeight)}),0!==l.prevColumnCount&&0!==l.prevRowCount||(l.prevColumnCount=0,l.prevRowCount=0),e.autoHeight&&!1===e.isScrolling&&!0===l.prevIsScrolling&&Object.assign(i,{isScrolling:!1}),m({cellCount:l.prevColumnCount,cellSize:"number"===typeof l.prevColumnWidth?l.prevColumnWidth:null,computeMetadataCallback:function(){return l.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:"number"===typeof e.columnWidth?e.columnWidth:null,nextScrollToIndex:e.scrollToColumn,scrollToIndex:l.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){n=t._getScrollLeftForScrollToColumnStateUpdate(e,o)}}),m({cellCount:l.prevRowCount,cellSize:"number"===typeof l.prevRowHeight?l.prevRowHeight:null,computeMetadataCallback:function(){return l.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:"number"===typeof e.rowHeight?e.rowHeight:null,nextScrollToIndex:e.scrollToRow,scrollToIndex:l.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){r=t._getScrollTopForScrollToRowStateUpdate(e,o)}}),l.prevColumnCount=e.columnCount,l.prevColumnWidth=e.columnWidth,l.prevIsScrolling=!0===e.isScrolling,l.prevRowCount=e.rowCount,l.prevRowHeight=e.rowHeight,l.prevScrollToColumn=e.scrollToColumn,l.prevScrollToRow=e.scrollToRow,l.scrollbarSize=e.getScrollbarSize(),void 0===l.scrollbarSize?(l.scrollbarSizeMeasured=!1,l.scrollbarSize=0):l.scrollbarSizeMeasured=!0,i.instanceProps=l,W({},i,{},n,{},r)}},{key:"_getEstimatedColumnSize",value:function(e){return"number"===typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"===typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(e){var t=e.prevState,o=e.scrollLeft,i=e.scrollTop,n={scrollPositionChangeReason:D};return"number"===typeof o&&o>=0&&(n.scrollDirectionHorizontal=o>t.scrollLeft?1:-1,n.scrollLeft=o),"number"===typeof i&&i>=0&&(n.scrollDirectionVertical=i>t.scrollTop?1:-1,n.scrollTop=i),"number"===typeof o&&o>=0&&o!==t.scrollLeft||"number"===typeof i&&i>=0&&i!==t.scrollTop?n:{}}},{key:"_wrapSizeGetter",value:function(e){return"function"===typeof e?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var o=e.columnCount,i=e.height,n=e.scrollToAlignment,r=e.scrollToColumn,l=e.width,s=t.scrollLeft,a=t.instanceProps;if(o>0){var c=o-1,d=r<0?c:Math.min(c,r),h=a.rowSizeAndPositionManager.getTotalSize(),u=a.scrollbarSizeMeasured&&h>i?a.scrollbarSize:0;return a.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:l-u,currentOffset:s,targetIndex:d})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,o){var i=o.scrollLeft,n=t._getCalculatedScrollLeft(e,o);return"number"===typeof n&&n>=0&&i!==n?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:n,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,t){var o=e.height,i=e.rowCount,n=e.scrollToAlignment,r=e.scrollToRow,l=e.width,s=t.scrollTop,a=t.instanceProps;if(i>0){var c=i-1,d=r<0?c:Math.min(c,r),h=a.columnSizeAndPositionManager.getTotalSize(),u=a.scrollbarSizeMeasured&&h>l?a.scrollbarSize:0;return a.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:o-u,currentOffset:s,targetIndex:d})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,o){var i=o.scrollTop,n=t._getCalculatedScrollTop(e,o);return"number"===typeof n&&n>=0&&i!==n?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:-1,scrollTop:n}):{}}}]),t}(p.PureComponent),(0,f.Z)(M,"propTypes",null),k);(0,f.Z)(j,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:function(e){for(var t=e.cellCache,o=e.cellRenderer,i=e.columnSizeAndPositionManager,n=e.columnStartIndex,r=e.columnStopIndex,l=e.deferredMeasurementCache,s=e.horizontalOffsetAdjustment,a=e.isScrolling,c=e.isScrollingOptOut,d=e.parent,h=e.rowSizeAndPositionManager,u=e.rowStartIndex,f=e.rowStopIndex,p=e.styleCache,g=e.verticalOffsetAdjustment,v=e.visibleColumnIndices,_=e.visibleRowIndices,m=[],S=i.areOffsetsAdjusted()||h.areOffsetsAdjusted(),C=!a&&!S,y=u;y<=f;y++)for(var w=h.getSizeAndPositionOfCell(y),x=n;x<=r;x++){var R=i.getSizeAndPositionOfCell(x),b=x>=v.start&&x<=v.stop&&y>=_.start&&y<=_.stop,T="".concat(y,"-").concat(x),z=void 0;C&&p[T]?z=p[T]:l&&!l.has(y,x)?z={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(z={height:w.size,left:R.offset+s,position:"absolute",top:w.offset+g,width:R.size},p[T]=z);var I={columnIndex:x,isScrolling:a,isVisible:b,key:T,parent:d,rowIndex:y,style:z},M=void 0;!c&&!a||s||g?M=o(I):(t[T]||(t[T]=o(I)),M=t[T]),null!=M&&!1!==M&&m.push(M)}return m},containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:I,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:function(e){var t=e.cellCount,o=e.overscanCellsCount,i=e.scrollDirection,n=e.startIndex,r=e.stopIndex;return 1===i?{overscanStartIndex:Math.max(0,n),overscanStopIndex:Math.min(t-1,r+o)}:{overscanStartIndex:Math.max(0,n-o),overscanStopIndex:Math.min(t-1,r)}},overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),(0,g.polyfill)(j);const F=j;function N(e){var t=e.cellCount,o=e.overscanCellsCount,i=e.scrollDirection,n=e.startIndex,r=e.stopIndex;return o=Math.max(1,o),1===i?{overscanStartIndex:Math.max(0,n-1),overscanStopIndex:Math.min(t-1,r+o)}:{overscanStartIndex:Math.max(0,n-o),overscanStopIndex:Math.min(t-1,r+1)}}var U,B;function V(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}var q=(B=U=function(e){function t(){var e,o;i(this,t);for(var n=arguments.length,r=new Array(n),l=0;l div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',i=t.head||t.getElementsByTagName("head")[0],n=t.createElement("style");n.id="detectElementResize",n.type="text/css",null!=e&&n.setAttribute("nonce",e),n.styleSheet?n.styleSheet.cssText=o:n.appendChild(t.createTextNode(o)),i.appendChild(n)}}(r),t.__resizeLast__={},t.__resizeListeners__=[],(t.__resizeTriggers__=r.createElement("div")).className="resize-triggers";var c='
';if(window.trustedTypes){var d=trustedTypes.createPolicy("react-virtualized-auto-sizer",{createHTML:function(){return c}});t.__resizeTriggers__.innerHTML=d.createHTML("")}else t.__resizeTriggers__.innerHTML=c;t.appendChild(t.__resizeTriggers__),s(t),t.addEventListener("scroll",a,!0),h&&(t.__resizeTriggers__.__animationListener__=function(e){e.animationName==v&&s(t)},t.__resizeTriggers__.addEventListener(h,t.__resizeTriggers__.__animationListener__))}t.__resizeListeners__.push(o)}},removeResizeListener:function(e,t){if(n)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(h,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(o){}}}}}var X,Y;function J(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function $(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};i(this,e),(0,f.Z)(this,"_cellHeightCache",{}),(0,f.Z)(this,"_cellWidthCache",{}),(0,f.Z)(this,"_columnWidthCache",{}),(0,f.Z)(this,"_rowHeightCache",{}),(0,f.Z)(this,"_defaultHeight",void 0),(0,f.Z)(this,"_defaultWidth",void 0),(0,f.Z)(this,"_minHeight",void 0),(0,f.Z)(this,"_minWidth",void 0),(0,f.Z)(this,"_keyMapper",void 0),(0,f.Z)(this,"_hasFixedHeight",void 0),(0,f.Z)(this,"_hasFixedWidth",void 0),(0,f.Z)(this,"_columnCount",0),(0,f.Z)(this,"_rowCount",0),(0,f.Z)(this,"columnWidth",(function(e){var o=e.index,i=t._keyMapper(0,o);return void 0!==t._columnWidthCache[i]?t._columnWidthCache[i]:t._defaultWidth})),(0,f.Z)(this,"rowHeight",(function(e){var o=e.index,i=t._keyMapper(o,0);return void 0!==t._rowHeightCache[i]?t._rowHeightCache[i]:t._defaultHeight}));var n=o.defaultHeight,r=o.defaultWidth,l=o.fixedHeight,s=o.fixedWidth,a=o.keyMapper,c=o.minHeight,d=o.minWidth;this._hasFixedHeight=!0===l,this._hasFixedWidth=!0===s,this._minHeight=c||0,this._minWidth=d||0,this._keyMapper=a||re,this._defaultHeight=Math.max(this._minHeight,"number"===typeof n?n:30),this._defaultWidth=Math.max(this._minWidth,"number"===typeof r?r:100)}return l(e,[{key:"clear",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=this._keyMapper(e,t);delete this._cellHeightCache[o],delete this._cellWidthCache[o],this._updateCachedColumnAndRowSizes(e,t)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={},this._rowCount=0,this._columnCount=0}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this._hasFixedHeight)return this._defaultHeight;var o=this._keyMapper(e,t);return void 0!==this._cellHeightCache[o]?Math.max(this._minHeight,this._cellHeightCache[o]):this._defaultHeight}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this._hasFixedWidth)return this._defaultWidth;var o=this._keyMapper(e,t);return void 0!==this._cellWidthCache[o]?Math.max(this._minWidth,this._cellWidthCache[o]):this._defaultWidth}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=this._keyMapper(e,t);return void 0!==this._cellHeightCache[o]}},{key:"set",value:function(e,t,o,i){var n=this._keyMapper(e,t);t>=this._columnCount&&(this._columnCount=t+1),e>=this._rowCount&&(this._rowCount=e+1),this._cellHeightCache[n]=i,this._cellWidthCache[n]=o,this._updateCachedColumnAndRowSizes(e,t)}},{key:"_updateCachedColumnAndRowSizes",value:function(e,t){if(!this._hasFixedWidth){for(var o=0,i=0;i=0){var d=t.getScrollPositionForCell({align:n,cellIndex:r,height:i,scrollLeft:a,scrollTop:c,width:l});d.scrollLeft===a&&d.scrollTop===c||o._setScrollPosition(d)}})),(0,f.Z)((0,a.Z)(o),"_onScroll",(function(e){if(e.target===o._scrollingContainer){o._enablePointerEventsAfterDelay();var t=o.props,i=t.cellLayoutManager,n=t.height,r=t.isScrollingChange,l=t.width,s=o._scrollbarSize,a=i.getTotalSize(),c=a.height,d=a.width,h=Math.max(0,Math.min(d-l+s,e.target.scrollLeft)),u=Math.max(0,Math.min(c-n+s,e.target.scrollTop));if(o.state.scrollLeft!==h||o.state.scrollTop!==u){var f=e.cancelable?ae:ce;o.state.isScrolling||r(!0),o.setState({isScrolling:!0,scrollLeft:h,scrollPositionChangeReason:f,scrollTop:u})}o._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:u,totalWidth:d,totalHeight:c})}})),o._scrollbarSize=I(),void 0===o._scrollbarSize?(o._scrollbarSizeMeasured=!1,o._scrollbarSize=0):o._scrollbarSizeMeasured=!0,o}return u(t,e),l(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.cellLayoutManager,o=e.scrollLeft,i=e.scrollToCell,n=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=I(),this._scrollbarSizeMeasured=!0,this.setState({})),i>=0?this._updateScrollPositionForScrollToCell():(o>=0||n>=0)&&this._setScrollPosition({scrollLeft:o,scrollTop:n}),this._invokeOnSectionRenderedHelper();var r=t.getTotalSize(),l=r.height,s=r.width;this._invokeOnScrollMemoizer({scrollLeft:o||0,scrollTop:n||0,totalHeight:l,totalWidth:s})}},{key:"componentDidUpdate",value:function(e,t){var o=this.props,i=o.height,n=o.scrollToAlignment,r=o.scrollToCell,l=o.width,s=this.state,a=s.scrollLeft,c=s.scrollPositionChangeReason,d=s.scrollTop;c===ce&&(a>=0&&a!==t.scrollLeft&&a!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=a),d>=0&&d!==t.scrollTop&&d!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=d)),i===e.height&&n===e.scrollToAlignment&&r===e.scrollToCell&&l===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,o=e.cellCount,i=e.cellLayoutManager,n=e.className,r=e.height,l=e.horizontalOverscanSize,s=e.id,a=e.noContentRenderer,c=e.style,d=e.verticalOverscanSize,h=e.width,u=this.state,f=u.isScrolling,g=u.scrollLeft,v=u.scrollTop;(this._lastRenderedCellCount!==o||this._lastRenderedCellLayoutManager!==i||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=o,this._lastRenderedCellLayoutManager=i,this._calculateSizeAndPositionDataOnNextUpdate=!1,i.calculateSizeAndPositionData());var m=i.getTotalSize(),S=m.height,C=m.width,y=Math.max(0,g-l),w=Math.max(0,v-d),x=Math.min(C,g+h+l),R=Math.min(S,v+r+d),b=r>0&&h>0?i.cellRenderers({height:R-w,isScrolling:f,width:x-y,x:y,y:w}):[],T={boxSizing:"border-box",direction:"ltr",height:t?"auto":r,position:"relative",WebkitOverflowScrolling:"touch",width:h,willChange:"transform"},z=S>r?this._scrollbarSize:0,I=C>h?this._scrollbarSize:0;return T.overflowX=C+z<=h?"hidden":"auto",T.overflowY=S+I<=r?"hidden":"auto",p.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:(0,_.Z)("ReactVirtualized__Collection",n),id:s,onScroll:this._onScroll,role:"grid",style:se({},T,{},c),tabIndex:0},o>0&&p.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:S,maxHeight:S,maxWidth:C,overflow:"hidden",pointerEvents:f?"none":"",width:C}},b),0===o&&a())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout((function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})}),150)}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,o=e.scrollLeft,i=e.scrollTop,n=e.totalHeight,r=e.totalWidth;this._onScrollMemoizer({callback:function(e){var o=e.scrollLeft,i=e.scrollTop,l=t.props,s=l.height;(0,l.onScroll)({clientHeight:s,clientWidth:l.width,scrollHeight:n,scrollLeft:o,scrollTop:i,scrollWidth:r})},indices:{scrollLeft:o,scrollTop:i}})}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,o=e.scrollTop,i={scrollPositionChangeReason:ce};t>=0&&(i.scrollLeft=t),o>=0&&(i.scrollTop=o),(t>=0&&t!==this.state.scrollLeft||o>=0&&o!==this.state.scrollTop)&&this.setState(i)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 0!==e.cellCount||0===t.scrollLeft&&0===t.scrollTop?e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop?e.scrollTop:t.scrollTop,scrollPositionChangeReason:ce}:null:{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:ce}}}]),t}(p.PureComponent);(0,f.Z)(de,"defaultProps",{"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0}),de.propTypes={},(0,g.polyfill)(de);const he=de;var ue=function(){function e(t){var o=t.height,n=t.width,r=t.x,l=t.y;i(this,e),this.height=o,this.width=n,this.x=r,this.y=l,this._indexMap={},this._indices=[]}return l(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return"".concat(this.x,",").concat(this.y," ").concat(this.width,"x").concat(this.height)}}]),e}(),fe=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;i(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return l(e,[{key:"getCellIndices",value:function(e){var t=e.height,o=e.width,i=e.x,n=e.y,r={};return this.getSections({height:t,width:o,x:i,y:n}).forEach((function(e){return e.getCellIndices().forEach((function(e){r[e]=e}))})),Object.keys(r).map((function(e){return r[e]}))}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,o=e.width,i=e.x,n=e.y,r=Math.floor(i/this._sectionSize),l=Math.floor((i+o-1)/this._sectionSize),s=Math.floor(n/this._sectionSize),a=Math.floor((n+t-1)/this._sectionSize),c=[],d=r;d<=l;d++)for(var h=s;h<=a;h++){var u="".concat(d,".").concat(h);this._sections[u]||(this._sections[u]=new ue({height:this._sectionSize,width:this._sectionSize,x:d*this._sectionSize,y:h*this._sectionSize})),c.push(this._sections[u])}return c}},{key:"getTotalSectionCount",value:function(){return Object.keys(this._sections).length}},{key:"toString",value:function(){var e=this;return Object.keys(this._sections).map((function(t){return e._sections[t].toString()}))}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,o=e.index;this._cellMetadata[o]=t,this.getSections(t).forEach((function(e){return e.addCellIndex({index:o})}))}}]),e}();function pe(e){var t=e.align,o=void 0===t?"auto":t,i=e.cellOffset,n=e.cellSize,r=e.containerSize,l=e.currentOffset,s=i,a=s-r+n;switch(o){case"start":return s;case"end":return a;case"center":return s-(r-n)/2;default:return Math.max(a,Math.min(s,l))}}var ge=function(e){function t(e,o){var n;return i(this,t),(n=c(this,d(t).call(this,e,o)))._cellMetadata=[],n._lastRenderedCellIndices=[],n._cellCache=[],n._isScrollingChange=n._isScrollingChange.bind((0,a.Z)(n)),n._setCollectionViewRef=n._setCollectionViewRef.bind((0,a.Z)(n)),n}return u(t,e),l(t,[{key:"forceUpdate",value:function(){void 0!==this._collectionView&&this._collectionView.forceUpdate()}},{key:"recomputeCellSizesAndPositions",value:function(){this._cellCache=[],this._collectionView.recomputeCellSizesAndPositions()}},{key:"render",value:function(){var e=(0,v.Z)({},this.props);return p.createElement(he,(0,v.Z)({cellLayoutManager:this,isScrollingChange:this._isScrollingChange,ref:this._setCollectionViewRef},e))}},{key:"calculateSizeAndPositionData",value:function(){var e=this.props,t=function(e){for(var t=e.cellCount,o=e.cellSizeAndPositionGetter,i=e.sectionSize,n=[],r=new fe(i),l=0,s=0,a=0;a=0&&oe.length)&&(t=e.length);for(var o=0,i=new Array(t);oo||n1&&void 0!==arguments[1]?arguments[1]:0,o="function"===typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;o?o.call(e,t):e.forceUpdate()}(t._registeredChild,t._lastRenderedStartIndex)}))}))}},{key:"_onRowsRendered",value:function(e){var t=e.startIndex,o=e.stopIndex;this._lastRenderedStartIndex=t,this._lastRenderedStopIndex=o,this._doStuff(t,o)}},{key:"_doStuff",value:function(e,t){var o,i=this,n=this.props,r=n.isRowLoaded,l=n.minimumBatchSize,s=n.rowCount,a=n.threshold,c=function(e){for(var t=e.isRowLoaded,o=e.minimumBatchSize,i=e.rowCount,n=e.startIndex,r=e.stopIndex,l=[],s=null,a=null,c=n;c<=r;c++){t({index:c})?null!==a&&(l.push({startIndex:s,stopIndex:a}),s=a=null):(a=c,null===s&&(s=c))}if(null!==a){for(var d=Math.min(Math.max(a,s+o-1),i-1),h=a+1;h<=d&&!t({index:h});h++)a=h;l.push({startIndex:s,stopIndex:a})}if(l.length)for(var u=l[0];u.stopIndex-u.startIndex+10;){var f=u.startIndex-1;if(t({index:f}))break;u.startIndex=f}return l}({isRowLoaded:r,minimumBatchSize:l,rowCount:s,startIndex:Math.max(0,e-a),stopIndex:Math.min(s-1,t+a)}),d=(o=[]).concat.apply(o,me(c.map((function(e){return[e.startIndex,e.stopIndex]}))));this._loadMoreRowsMemoizer({callback:function(){i._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:d}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(p.PureComponent);(0,f.Z)(Se,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),Se.propTypes={};var Ce,ye,we=(ye=Ce=function(e){function t(){var e,o;i(this,t);for(var n=arguments.length,r=new Array(n),l=0;l0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,i=e.rowIndex,n=void 0===i?0:i;this.Grid&&this.Grid.recomputeGridSize({rowIndex:n,columnIndex:o})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e,columnIndex:0})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,o=e.noRowsRenderer,i=e.scrollToIndex,n=e.width,r=(0,_.Z)("ReactVirtualized__List",t);return p.createElement(F,(0,v.Z)({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:r,columnWidth:n,columnCount:1,noContentRenderer:o,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:i}))}}]),t}(p.PureComponent),(0,f.Z)(Ce,"propTypes",null),ye);function xe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i,n,r,l,s=[],a=!0,c=!1;try{if(r=(o=o.call(e)).next,0===t){if(Object(o)!==o)return;a=!1}else for(;!(a=(i=r.call(o)).done)&&(s.push(i.value),s.length!==t);a=!0);}catch(e){c=!0,n=e}finally{try{if(!a&&null!=o.return&&(l=o.return(),Object(l)!==l))return}finally{if(c)throw n}}return s}}(e,t)||_e(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(0,f.Z)(we,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:N,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});const Re={ge:function(e,t,o,i,n){return"function"===typeof o?function(e,t,o,i,n){for(var r=o+1;t<=o;){var l=t+o>>>1;n(e[l],i)>=0?(r=l,o=l-1):t=l+1}return r}(e,void 0===i?0:0|i,void 0===n?e.length-1:0|n,t,o):function(e,t,o,i){for(var n=o+1;t<=o;){var r=t+o>>>1;e[r]>=i?(n=r,o=r-1):t=r+1}return n}(e,void 0===o?0:0|o,void 0===i?e.length-1:0|i,t)},gt:function(e,t,o,i,n){return"function"===typeof o?function(e,t,o,i,n){for(var r=o+1;t<=o;){var l=t+o>>>1;n(e[l],i)>0?(r=l,o=l-1):t=l+1}return r}(e,void 0===i?0:0|i,void 0===n?e.length-1:0|n,t,o):function(e,t,o,i){for(var n=o+1;t<=o;){var r=t+o>>>1;e[r]>i?(n=r,o=r-1):t=r+1}return n}(e,void 0===o?0:0|o,void 0===i?e.length-1:0|i,t)},lt:function(e,t,o,i,n){return"function"===typeof o?function(e,t,o,i,n){for(var r=t-1;t<=o;){var l=t+o>>>1;n(e[l],i)<0?(r=l,t=l+1):o=l-1}return r}(e,void 0===i?0:0|i,void 0===n?e.length-1:0|n,t,o):function(e,t,o,i){for(var n=t-1;t<=o;){var r=t+o>>>1;e[r]>>1;n(e[l],i)<=0?(r=l,t=l+1):o=l-1}return r}(e,void 0===i?0:0|i,void 0===n?e.length-1:0|n,t,o):function(e,t,o,i){for(var n=t-1;t<=o;){var r=t+o>>>1;e[r]<=i?(n=r,t=r+1):o=r-1}return n}(e,void 0===o?0:0|o,void 0===i?e.length-1:0|i,t)},eq:function(e,t,o,i,n){return"function"===typeof o?function(e,t,o,i,n){for(;t<=o;){var r=t+o>>>1,l=n(e[r],i);if(0===l)return r;l<=0?t=r+1:o=r-1}return-1}(e,void 0===i?0:0|i,void 0===n?e.length-1:0|n,t,o):function(e,t,o,i){for(;t<=o;){var n=t+o>>>1,r=e[n];if(r===i)return n;r<=i?t=n+1:o=n-1}return-1}(e,void 0===o?0:0|o,void 0===i?e.length-1:0|i,t)}};function be(e,t,o,i,n){this.mid=e,this.left=t,this.right=o,this.leftPoints=i,this.rightPoints=n,this.count=(t?t.count:0)+(o?o.count:0)+i.length}var Te=be.prototype;function ze(e,t){e.mid=t.mid,e.left=t.left,e.right=t.right,e.leftPoints=t.leftPoints,e.rightPoints=t.rightPoints,e.count=t.count}function Ie(e,t){var o=He(t);e.mid=o.mid,e.left=o.left,e.right=o.right,e.leftPoints=o.leftPoints,e.rightPoints=o.rightPoints,e.count=o.count}function Me(e,t){var o=e.intervals([]);o.push(t),Ie(e,o)}function ke(e,t){var o=e.intervals([]),i=o.indexOf(t);return i<0?0:(o.splice(i,1),Ie(e,o),1)}function Pe(e,t,o){for(var i=0;i=0&&e[i][1]>=t;--i){var n=o(e[i]);if(n)return n}}function Ze(e,t){for(var o=0;o>1],n=[],r=[],l=[];for(o=0;o3*(t+1)?Me(this,e):this.left.insert(e):this.left=He([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?Me(this,e):this.right.insert(e):this.right=He([e]);else{var o=Re.ge(this.leftPoints,e,Ge),i=Re.ge(this.rightPoints,e,Ae);this.leftPoints.splice(o,0,e),this.rightPoints.splice(i,0,e)}},Te.remove=function(e){var t=this.count-this.leftPoints;if(e[1]3*(t-1)?ke(this,e):2===(r=this.left.remove(e))?(this.left=null,this.count-=1,1):(1===r&&(this.count-=1),r):0;if(e[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(t-1)?ke(this,e):2===(r=this.right.remove(e))?(this.right=null,this.count-=1,1):(1===r&&(this.count-=1),r):0;if(1===this.count)return this.leftPoints[0]===e?2:0;if(1===this.leftPoints.length&&this.leftPoints[0]===e){if(this.left&&this.right){for(var o=this,i=this.left;i.right;)o=i,i=i.right;if(o===this)i.right=this.right;else{var n=this.left,r=this.right;o.count-=i.count,o.right=i.left,i.left=n,i.right=r}ze(this,i),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?ze(this,this.left):ze(this,this.right);return 1}for(n=Re.ge(this.leftPoints,e,Ge);nthis.mid){var o;if(this.right)if(o=this.right.queryPoint(e,t))return o;return Oe(this.rightPoints,e,t)}return Ze(this.leftPoints,t)},Te.queryInterval=function(e,t,o){var i;if(ethis.mid&&this.right&&(i=this.right.queryInterval(e,t,o)))return i;return tthis.mid?Oe(this.rightPoints,e,o):Ze(this.leftPoints,o)};var Ee=We.prototype;Ee.insert=function(e){this.root?this.root.insert(e):this.root=new be(e[0],null,null,[e],[e])},Ee.remove=function(e){if(this.root){var t=this.root.remove(e);return 2===t&&(this.root=null),0!==t}return!1},Ee.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},Ee.queryInterval=function(e,t,o){if(e<=t&&this.root)return this.root.queryInterval(e,t,o)},Object.defineProperty(Ee,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(Ee,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var De,je,Fe=function(){function e(){var t;i(this,e),(0,f.Z)(this,"_columnSizeMap",{}),(0,f.Z)(this,"_intervalTree",t&&0!==t.length?new We(He(t)):new We(null)),(0,f.Z)(this,"_leftMap",{})}return l(e,[{key:"estimateTotalHeight",value:function(e,t,o){var i=e-this.count;return this.tallestColumnSize+Math.ceil(i/t)*o}},{key:"range",value:function(e,t,o){var i=this;this._intervalTree.queryInterval(e,e+t,(function(e){var t=xe(e,3),n=t[0],r=(t[1],t[2]);return o(r,i._leftMap[r],n)}))}},{key:"setPosition",value:function(e,t,o,i){this._intervalTree.insert([o,o+i,e]),this._leftMap[e]=t;var n=this._columnSizeMap,r=n[t];n[t]=void 0===r?o+i:Math.max(r,o+i)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var o in e){var i=e[o];t=0===t?i:Math.min(t,i)}return t}},{key:"tallestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var o in e){var i=e[o];t=Math.max(t,i)}return t}}]),e}();function Ne(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Ue(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};i(this,e),(0,f.Z)(this,"_cellMeasurerCache",void 0),(0,f.Z)(this,"_columnIndexOffset",void 0),(0,f.Z)(this,"_rowIndexOffset",void 0),(0,f.Z)(this,"columnWidth",(function(e){var o=e.index;t._cellMeasurerCache.columnWidth({index:o+t._columnIndexOffset})})),(0,f.Z)(this,"rowHeight",(function(e){var o=e.index;t._cellMeasurerCache.rowHeight({index:o+t._rowIndexOffset})}));var n=o.cellMeasurerCache,r=o.columnIndexOffset,l=void 0===r?0:r,s=o.rowIndexOffset,a=void 0===s?0:s;this._cellMeasurerCache=n,this._columnIndexOffset=l,this._rowIndexOffset=a}return l(e,[{key:"clear",value:function(e,t){this._cellMeasurerCache.clear(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"clearAll",value:function(){this._cellMeasurerCache.clearAll()}},{key:"hasFixedHeight",value:function(){return this._cellMeasurerCache.hasFixedHeight()}},{key:"hasFixedWidth",value:function(){return this._cellMeasurerCache.hasFixedWidth()}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getHeight(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getWidth(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.has(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"set",value:function(e,t,o,i){this._cellMeasurerCache.set(e+this._rowIndexOffset,t+this._columnIndexOffset,o,i)}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}}]),e}();function Ke(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Xe(e){for(var t=1;t0?new qe({cellMeasurerCache:r,columnIndexOffset:0,rowIndexOffset:s}):r,n._deferredMeasurementCacheBottomRightGrid=l>0||s>0?new qe({cellMeasurerCache:r,columnIndexOffset:l,rowIndexOffset:s}):r,n._deferredMeasurementCacheTopRightGrid=l>0?new qe({cellMeasurerCache:r,columnIndexOffset:l,rowIndexOffset:0}):r),n}return u(t,e),l(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,i=e.rowIndex,n=void 0===i?0:i;this._deferredInvalidateColumnIndex="number"===typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,o):o,this._deferredInvalidateRowIndex="number"===typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,n):n}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,i=e.rowIndex,n=void 0===i?0:i,r=this.props,l=r.fixedColumnCount,s=r.fixedRowCount,a=Math.max(0,o-l),c=Math.max(0,n-s);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:c}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:a,rowIndex:c}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:n}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:a,rowIndex:n}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.scrollLeft,o=e.scrollTop;if(t>0||o>0){var i={};t>0&&(i.scrollLeft=t),o>0&&(i.scrollTop=o),this.setState(i)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var e=this.props,t=e.onScroll,o=e.onSectionRendered,i=(e.onScrollbarPresenceChange,e.scrollLeft,e.scrollToColumn),n=(e.scrollTop,e.scrollToRow),r=S(e,["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(this._prepareForRender(),0===this.props.width||0===this.props.height)return null;var l=this.state,s=l.scrollLeft,a=l.scrollTop;return p.createElement("div",{style:this._containerOuterStyle},p.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(r),this._renderTopRightGrid(Xe({},r,{onScroll:t,scrollLeft:s}))),p.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(Xe({},r,{onScroll:t,scrollTop:a})),this._renderBottomRightGrid(Xe({},r,{onScroll:t,onSectionRendered:o,scrollLeft:s,scrollToColumn:i,scrollToRow:n,scrollTop:a}))))}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,o=e.columnWidth;if(null==this._leftGridWidth)if("function"===typeof o){for(var i=0,n=0;n=0?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop&&e.scrollTop>=0?e.scrollTop:t.scrollTop}:null}}]),t}(p.PureComponent);(0,f.Z)(Ye,"defaultProps",{classNameBottomLeftGrid:"",classNameBottomRightGrid:"",classNameTopLeftGrid:"",classNameTopRightGrid:"",enableFixedColumnScroll:!1,enableFixedRowScroll:!1,fixedColumnCount:0,fixedRowCount:0,scrollToColumn:-1,scrollToRow:-1,style:{},styleBottomLeftGrid:{},styleBottomRightGrid:{},styleTopLeftGrid:{},styleTopRightGrid:{},hideTopRightGridScrollbar:!1,hideBottomLeftGridScrollbar:!1}),Ye.propTypes={},(0,g.polyfill)(Ye);(function(e){function t(e,o){var n;return i(this,t),(n=c(this,d(t).call(this,e,o))).state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},n._onScroll=n._onScroll.bind((0,a.Z)(n)),n}return u(t,e),l(t,[{key:"render",value:function(){var e=this.props.children,t=this.state,o=t.clientHeight,i=t.clientWidth,n=t.scrollHeight,r=t.scrollLeft,l=t.scrollTop,s=t.scrollWidth;return e({clientHeight:o,clientWidth:i,onScroll:this._onScroll,scrollHeight:n,scrollLeft:r,scrollTop:l,scrollWidth:s})}},{key:"_onScroll",value:function(e){var t=e.clientHeight,o=e.clientWidth,i=e.scrollHeight,n=e.scrollLeft,r=e.scrollTop,l=e.scrollWidth;this.setState({clientHeight:t,clientWidth:o,scrollHeight:i,scrollLeft:n,scrollTop:r,scrollWidth:l})}}]),t}(p.PureComponent)).propTypes={};function Je(e){var t=e.className,o=e.columns,i=e.style;return p.createElement("div",{className:t,role:"row",style:i},o)}Je.propTypes=null;const $e={ASC:"ASC",DESC:"DESC"};function Qe(e){var t=e.sortDirection,o=(0,_.Z)("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===$e.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===$e.DESC});return p.createElement("svg",{className:o,width:18,height:18,viewBox:"0 0 24 24"},t===$e.ASC?p.createElement("path",{d:"M7 14l5-5 5 5z"}):p.createElement("path",{d:"M7 10l5 5 5-5z"}),p.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function et(e){var t=e.dataKey,o=e.label,i=e.sortBy,n=e.sortDirection,r=i===t,l=[p.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:"string"===typeof o?o:null},o)];return r&&l.push(p.createElement(Qe,{key:"SortIndicator",sortDirection:n})),l}function tt(e){var t=e.className,o=e.columns,i=e.index,n=e.key,r=e.onRowClick,l=e.onRowDoubleClick,s=e.onRowMouseOut,a=e.onRowMouseOver,c=e.onRowRightClick,d=e.rowData,h=e.style,u={"aria-rowindex":i+1};return(r||l||s||a||c)&&(u["aria-label"]="row",u.tabIndex=0,r&&(u.onClick=function(e){return r({event:e,index:i,rowData:d})}),l&&(u.onDoubleClick=function(e){return l({event:e,index:i,rowData:d})}),s&&(u.onMouseOut=function(e){return s({event:e,index:i,rowData:d})}),a&&(u.onMouseOver=function(e){return a({event:e,index:i,rowData:d})}),c&&(u.onContextMenu=function(e){return c({event:e,index:i,rowData:d})})),p.createElement("div",(0,v.Z)({},u,{className:t,key:n,role:"row",style:h}),o)}Qe.propTypes={},et.propTypes=null,tt.propTypes=null;var ot=function(e){function t(){return i(this,t),c(this,d(t).apply(this,arguments))}return u(t,e),t}(p.Component);function it(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function nt(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,i=e.rowIndex,n=void 0===i?0:i;this.Grid&&this.Grid.recomputeGridSize({rowIndex:n,columnIndex:o})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"getScrollbarWidth",value:function(){if(this.Grid){var e=(0,oe.findDOMNode)(this.Grid),t=e.clientWidth||0;return(e.offsetWidth||0)-t}return 0}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,o=t.children,i=t.className,n=t.disableHeader,r=t.gridClassName,l=t.gridStyle,s=t.headerHeight,a=t.headerRowRenderer,c=t.height,d=t.id,h=t.noRowsRenderer,u=t.rowClassName,f=t.rowStyle,g=t.scrollToIndex,m=t.style,S=t.width,C=this.state.scrollbarWidth,y=n?c:c-s,w="function"===typeof u?u({index:-1}):u,x="function"===typeof f?f({index:-1}):f;return this._cachedColumnStyles=[],p.Children.toArray(o).forEach((function(t,o){var i=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[o]=nt({overflow:"hidden"},i)})),p.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":p.Children.toArray(o).length,"aria-rowcount":this.props.rowCount,className:(0,_.Z)("ReactVirtualized__Table",i),id:d,role:"grid",style:m},!n&&a({className:(0,_.Z)("ReactVirtualized__Table__headerRow",w),columns:this._getHeaderColumns(),style:nt({height:s,overflow:"hidden",paddingRight:C,width:S},x)}),p.createElement(F,(0,v.Z)({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:(0,_.Z)("ReactVirtualized__Table__Grid",r),cellRenderer:this._createRow,columnWidth:S,columnCount:1,height:y,id:void 0,noContentRenderer:h,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:C,scrollToRow:g,style:nt({},l,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,o=e.columnIndex,i=e.isScrolling,n=e.parent,r=e.rowData,l=e.rowIndex,s=this.props.onColumnClick,a=t.props,c=a.cellDataGetter,d=a.cellRenderer,h=a.className,u=a.columnData,f=a.dataKey,g=a.id,v=d({cellData:c({columnData:u,dataKey:f,rowData:r}),columnData:u,columnIndex:o,dataKey:f,isScrolling:i,parent:n,rowData:r,rowIndex:l}),m=this._cachedColumnStyles[o],S="string"===typeof v?v:null;return p.createElement("div",{"aria-colindex":o+1,"aria-describedby":g,className:(0,_.Z)("ReactVirtualized__Table__rowColumn",h),key:"Row"+l+"-Col"+o,onClick:function(e){s&&s({columnData:u,dataKey:f,event:e})},role:"gridcell",style:m,title:S},v)}},{key:"_createHeader",value:function(e){var t,o,i,n,r,l=e.column,s=e.index,a=this.props,c=a.headerClassName,d=a.headerStyle,h=a.onHeaderClick,u=a.sort,f=a.sortBy,g=a.sortDirection,v=l.props,m=v.columnData,S=v.dataKey,C=v.defaultSortDirection,y=v.disableSort,w=v.headerRenderer,x=v.id,R=v.label,b=!y&&u,T=(0,_.Z)("ReactVirtualized__Table__headerColumn",c,l.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:b}),z=this._getFlexStyleForColumn(l,nt({},d,{},l.props.headerStyle)),I=w({columnData:m,dataKey:S,disableSort:y,label:R,sortBy:f,sortDirection:g});if(b||h){var M=f!==S?C:g===$e.DESC?$e.ASC:$e.DESC,k=function(e){b&&u({defaultSortDirection:C,event:e,sortBy:S,sortDirection:M}),h&&h({columnData:m,dataKey:S,event:e})};r=l.props["aria-label"]||R||S,n="none",i=0,t=k,o=function(e){"Enter"!==e.key&&" "!==e.key||k(e)}}return f===S&&(n=g===$e.ASC?"ascending":"descending"),p.createElement("div",{"aria-label":r,"aria-sort":n,className:T,id:x,key:"Header-Col"+s,onClick:t,onKeyDown:o,role:"columnheader",style:z,tabIndex:i},I)}},{key:"_createRow",value:function(e){var t=this,o=e.rowIndex,i=e.isScrolling,n=e.key,r=e.parent,l=e.style,s=this.props,a=s.children,c=s.onRowClick,d=s.onRowDoubleClick,h=s.onRowRightClick,u=s.onRowMouseOver,f=s.onRowMouseOut,g=s.rowClassName,v=s.rowGetter,m=s.rowRenderer,S=s.rowStyle,C=this.state.scrollbarWidth,y="function"===typeof g?g({index:o}):g,w="function"===typeof S?S({index:o}):S,x=v({index:o}),R=p.Children.toArray(a).map((function(e,n){return t._createColumn({column:e,columnIndex:n,isScrolling:i,parent:r,rowData:x,rowIndex:o,scrollbarWidth:C})})),b=(0,_.Z)("ReactVirtualized__Table__row",y),T=nt({},l,{height:this._getRowHeight(o),overflow:"hidden",paddingRight:C},w);return m({className:b,columns:R,index:o,isScrolling:i,key:n,onRowClick:c,onRowDoubleClick:d,onRowRightClick:h,onRowMouseOver:u,onRowMouseOut:f,rowData:x,style:T})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o="".concat(e.props.flexGrow," ").concat(e.props.flexShrink," ").concat(e.props.width,"px"),i=nt({},t,{flex:o,msFlex:o,WebkitFlex:o});return e.props.maxWidth&&(i.maxWidth=e.props.maxWidth),e.props.minWidth&&(i.minWidth=e.props.minWidth),i}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,o=t.children;return(t.disableHeader?[]:p.Children.toArray(o)).map((function(t,o){return e._createHeader({column:t,index:o})}))}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"===typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,o=e.scrollHeight,i=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:o,scrollTop:i})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,o=e.rowOverscanStopIndex,i=e.rowStartIndex,n=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:o,startIndex:i,stopIndex:n})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=this.getScrollbarWidth();this.setState({scrollbarWidth:e})}}]),t}(p.PureComponent);(0,f.Z)(rt,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:N,overscanRowCount:10,rowRenderer:tt,headerRowRenderer:Je,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),rt.propTypes={};var lt=[],st=null,at=null;function ct(){at&&(at=null,document.body&&null!=st&&(document.body.style.pointerEvents=st),st=null)}function dt(){ct(),lt.forEach((function(e){return e.__resetIsScrolling()}))}function ht(e){e.currentTarget===window&&null==st&&document.body&&(st=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),function(){at&&G(at);var e=0;lt.forEach((function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)})),at=A(dt,e)}(),lt.forEach((function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()}))}function ut(e,t){lt.some((function(e){return e.props.scrollElement===t}))||t.addEventListener("scroll",ht),lt.push(e)}function ft(e,t){(lt=lt.filter((function(t){return t!==e}))).length||(t.removeEventListener("scroll",ht),at&&(G(at),ct()))}var pt,gt,vt=function(e){return e===window},_t=function(e){return e.getBoundingClientRect()};function mt(e,t){if(e){if(vt(e)){var o=window,i=o.innerHeight,n=o.innerWidth;return{height:"number"===typeof i?i:0,width:"number"===typeof n?n:0}}return _t(e)}return{height:t.serverHeight,width:t.serverWidth}}function St(e){return vt(e)&&document.documentElement?{top:"scrollY"in window?window.scrollY:document.documentElement.scrollTop,left:"scrollX"in window?window.scrollX:document.documentElement.scrollLeft}:{top:e.scrollTop,left:e.scrollLeft}}function Ct(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}var yt=function(){return"undefined"!==typeof window?window:void 0},wt=(gt=pt=function(e){function t(){var e,o;i(this,t);for(var n=arguments.length,r=new Array(n),l=0;l0&&void 0!==arguments[0]?arguments[0]:this.props.scrollElement,t=this.props.onResize,o=this.state,i=o.height,n=o.width,r=this._child||oe.findDOMNode(this);if(r instanceof Element&&e){var l=function(e,t){if(vt(t)&&document.documentElement){var o=document.documentElement,i=_t(e),n=_t(o);return{top:i.top-n.top,left:i.left-n.left}}var r=St(t),l=_t(e),s=_t(t);return{top:l.top+r.top-s.top,left:l.left+r.left-s.left}}(r,e);this._positionFromTop=l.top,this._positionFromLeft=l.left}var s=mt(e,this.props);i===s.height&&n===s.width||(this.setState({height:s.height,width:s.width}),t({height:s.height,width:s.width}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement;this._detectElementResize=K(),this.updatePosition(e),e&&(ut(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){var o=this.props.scrollElement,i=e.scrollElement;i!==o&&null!=i&&null!=o&&(this.updatePosition(o),ft(this,i),ut(this,o),this._unregisterResizeListener(i),this._registerResizeListener(o))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(ft(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var e=this.props.children,t=this.state,o=t.isScrolling,i=t.scrollTop,n=t.scrollLeft,r=t.height,l=t.width;return e({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:r,isScrolling:o,scrollLeft:n,scrollTop:i,width:l})}}]),t}(p.PureComponent),(0,f.Z)(pt,"propTypes",null),gt);(0,f.Z)(wt,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:yt(),serverHeight:0,serverWidth:0})},7326:(e,t,o)=>{function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}o.d(t,{Z:()=>i})},7462:(e,t,o)=>{function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;ti})},9611:(e,t,o)=>{function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}o.d(t,{Z:()=>i})}}]); -//# sourceMappingURL=463.39c0be1b.chunk.js.map \ No newline at end of file diff --git a/web-app/build/static/js/463.39c0be1b.chunk.js.map b/web-app/build/static/js/463.39c0be1b.chunk.js.map deleted file mode 100644 index 7ee1d1cef91..00000000000 --- a/web-app/build/static/js/463.39c0be1b.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/463.39c0be1b.chunk.js","mappings":"iGAAA,SAASA,EAAEC,GAAG,IAAIC,EAAEC,EAAEC,EAAE,GAAG,GAAG,iBAAiBH,GAAG,iBAAiBA,EAAEG,GAAGH,OAAO,GAAG,iBAAiBA,EAAE,GAAGI,MAAMC,QAAQL,GAAG,IAAIC,EAAE,EAAEA,EAAED,EAAEM,OAAOL,IAAID,EAAEC,KAAKC,EAAEH,EAAEC,EAAEC,OAAOE,IAAIA,GAAG,KAAKA,GAAGD,QAAQ,IAAID,KAAKD,EAAEA,EAAEC,KAAKE,IAAIA,GAAG,KAAKA,GAAGF,GAAG,OAAOE,CAAC,C,iBAA2H,QAAnH,WAAgB,IAAI,IAAIH,EAAEC,EAAEC,EAAE,EAAEC,EAAE,GAAGD,EAAEK,UAAUD,SAASN,EAAEO,UAAUL,QAAQD,EAAEF,EAAEC,MAAMG,IAAIA,GAAG,KAAKA,GAAGF,GAAG,OAAOE,CAAC,C,gBCAlV,SAASK,EAAgBC,EAAUC,GAChD,KAAMD,aAAoBC,GACxB,MAAM,IAAIC,UAAU,oCAExB,C,8DCHA,SAASC,EAAkBC,EAAQC,GACjC,IAAK,IAAIC,EAAI,EAAGA,EAAID,EAAMR,OAAQS,IAAK,CACrC,IAAIC,EAAaF,EAAMC,GACvBC,EAAWC,WAAaD,EAAWC,aAAc,EACjDD,EAAWE,cAAe,EACtB,UAAWF,IAAYA,EAAWG,UAAW,GACjDC,OAAOC,eAAeR,GAAQ,EAAAS,EAAA,GAAcN,EAAWO,KAAMP,EAC/D,CACF,CACe,SAASQ,EAAad,EAAae,EAAYC,GAM5D,OALID,GAAYb,EAAkBF,EAAYiB,UAAWF,GACrDC,GAAad,EAAkBF,EAAagB,GAChDN,OAAOC,eAAe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AAuBpM,GAC7C,QAAa,IAATA,EACF,MAAM,IAAIkiC,eAAe,6DAE3B,OAAOliC,CACT,C,iCCLe,SAASwU,IAYtB,OAXAA,EAAWjV,OAAOqY,OAASrY,OAAOqY,OAAOrX,OAAS,SAAUvB,GAC1D,IAAK,IAAIE,EAAI,EAAGA,EAAIR,UAAUD,OAAQS,IAAK,CACzC,IAAIyC,EAASjD,UAAUQ,GACvB,IAAK,IAAIQ,KAAOiC,EACVpC,OAAOO,UAAUqX,eAAelX,KAAK0B,EAAQjC,KAC/CV,EAAOU,GAAOiC,EAAOjC,GAG3B,CACA,OAAOV,CACT,EACOwV,EAAS7I,MAAMrJ,KAAM5D,UAC9B,C,iCCbe,SAASyjC,EAAgB/hC,EAAGutB,GAKzC,OAJAwU,EAAkB5iC,OAAOc,eAAiBd,OAAOc,eAAeE,OAAS,SAAyBH,EAAGutB,GAEnG,OADAvtB,EAAEI,UAAYmtB,EACPvtB,CACT,EACO+hC,EAAgB/hC,EAAGutB,EAC5B,C","sources":["../node_modules/clsx/dist/clsx.m.js","../node_modules/@babel/runtime/helpers/esm/classCallCheck.js","../node_modules/@babel/runtime/helpers/esm/createClass.js","../node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js","../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js","../node_modules/@babel/runtime/helpers/esm/inherits.js","../node_modules/react-virtualized/dist/es/Grid/utils/calculateSizeAndPositionDataAndUpdateScrollOffset.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../node_modules/react-virtualized/dist/es/Grid/types.js","../node_modules/react-virtualized/dist/es/Grid/utils/CellSizeAndPositionManager.js","../node_modules/react-virtualized/dist/es/Grid/utils/maxElementSize.js","../node_modules/react-virtualized/dist/es/Grid/utils/ScalingCellSizeAndPositionManager.js","../node_modules/react-virtualized/dist/es/utils/createCallbackMemoizer.js","../node_modules/react-virtualized/dist/es/Grid/utils/updateScrollIndexHelper.js","../node_modules/dom-helpers/esm/canUseDOM.js","../node_modules/dom-helpers/esm/scrollbarSize.js","../node_modules/react-virtualized/dist/es/utils/animationFrame.js","../node_modules/react-virtualized/dist/es/Grid/Grid.js","../node_modules/react-virtualized/dist/es/utils/requestAnimationTimeout.js","../node_modules/react-virtualized/dist/es/Grid/defaultOverscanIndicesGetter.js","../node_modules/react-virtualized/dist/es/Grid/defaultCellRangeRenderer.js","../node_modules/react-virtualized/dist/es/Grid/accessibilityOverscanIndicesGetter.js","../node_modules/react-virtualized/dist/es/ArrowKeyStepper/types.js","../node_modules/react-virtualized/dist/es/ArrowKeyStepper/ArrowKeyStepper.js","../node_modules/react-virtualized/dist/es/vendor/detectElementResize.js","../node_modules/react-virtualized/dist/es/AutoSizer/AutoSizer.js","../node_modules/react-virtualized/dist/es/CellMeasurer/CellMeasurer.js","../node_modules/react-virtualized/dist/es/CellMeasurer/CellMeasurerCache.js","../node_modules/react-virtualized/dist/es/Collection/CollectionView.js","../node_modules/react-virtualized/dist/es/Collection/types.js","../node_modules/react-virtualized/dist/es/Collection/Section.js","../node_modules/react-virtualized/dist/es/Collection/SectionManager.js","../node_modules/react-virtualized/dist/es/utils/getUpdatedOffsetForIndex.js","../node_modules/react-virtualized/dist/es/Collection/Collection.js","../node_modules/react-virtualized/dist/es/Collection/utils/calculateSizeAndPositionData.js","../node_modules/react-virtualized/dist/es/ColumnSizer/ColumnSizer.js","../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js","../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js","../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js","../node_modules/@babel/runtime/helpers/esm/iterableToArray.js","../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js","../node_modules/react-virtualized/dist/es/InfiniteLoader/InfiniteLoader.js","../node_modules/react-virtualized/dist/es/List/types.js","../node_modules/react-virtualized/dist/es/List/List.js","../node_modules/@babel/runtime/helpers/esm/slicedToArray.js","../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js","../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js","../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js","../node_modules/react-virtualized/dist/es/vendor/binarySearchBounds.js","../node_modules/react-virtualized/dist/es/vendor/intervalTree.js","../node_modules/react-virtualized/dist/es/Masonry/PositionCache.js","../node_modules/react-virtualized/dist/es/Masonry/Masonry.js","../node_modules/react-virtualized/dist/es/MultiGrid/CellMeasurerCacheDecorator.js","../node_modules/react-virtualized/dist/es/MultiGrid/MultiGrid.js","../node_modules/react-virtualized/dist/es/ScrollSync/ScrollSync.js","../node_modules/react-virtualized/dist/es/Table/defaultHeaderRowRenderer.js","../node_modules/react-virtualized/dist/es/Table/SortDirection.js","../node_modules/react-virtualized/dist/es/Table/SortIndicator.js","../node_modules/react-virtualized/dist/es/Table/defaultHeaderRenderer.js","../node_modules/react-virtualized/dist/es/Table/defaultRowRenderer.js","../node_modules/react-virtualized/dist/es/Table/Column.js","../node_modules/react-virtualized/dist/es/Table/Table.js","../node_modules/react-virtualized/dist/es/Table/defaultCellDataGetter.js","../node_modules/react-virtualized/dist/es/Table/defaultCellRenderer.js","../node_modules/react-virtualized/dist/es/WindowScroller/utils/onScroll.js","../node_modules/react-virtualized/dist/es/WindowScroller/utils/dimensions.js","../node_modules/react-virtualized/dist/es/WindowScroller/WindowScroller.js","../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js","../node_modules/@babel/runtime/helpers/esm/extends.js","../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js"],"sourcesContent":["function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e))for(t=0;t